Sha256: 7d13936d4e672f7f7606522c77e61286aa04f083c15576d534a1c8fb603c6a0b

Contents?: true

Size: 965 Bytes

Versions: 2

Compression:

Stored size: 965 Bytes

Contents

import { compile } from '../../index';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';

moduleFor(
  'ember-template-compiler: transforms dot component invocation',
  class extends AbstractTestCase {
    ['@test Does not throw a compiler error for path components'](assert) {
      assert.expect(0);

      [
        '{{this.modal open}}',
        '{{this.modal isOpen=true}}',
        '{{#this.modal}}Woot{{/this.modal}}',
        '{{c.modal open}}',
        '{{c.modal isOpen=true}}',
        '{{#c.modal}}Woot{{/c.modal}}',
        '{{#my-component as |c|}}{{c.a name="Chad"}}{{/my-component}}',
        '{{#my-component as |c|}}{{c.a "Chad"}}{{/my-component}}',
        '{{#my-component as |c|}}{{#c.a}}{{/c.a}}{{/my-component}}',
        '<input disabled={{true}}>', // GH#15740
        '<td colspan={{3}}></td>', // GH#15217
      ].forEach((layout, i) => {
        compile(layout, { moduleName: `example-${i}` });
      });
    }
  }
);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-template-compiler/tests/plugins/transform-dot-component-invocation-test.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-template-compiler/tests/plugins/transform-dot-component-invocation-test.js