Sha256: dc65ecd4bd4ccf5c0cf8d571bc07281dfd46fd404df7bfd5d3b7074a7df77120
Contents?: true
Size: 975 Bytes
Versions: 2
Compression:
Stored size: 975 Bytes
Contents
import { moduleFor, RenderingTest } from '../../utils/test-case'; import { set } from 'ember-metal'; moduleFor( 'Components test: web component fallback', class extends RenderingTest { ['@test custom elements are rendered']() { let template = `<foo-bar some-attr="123">hello</foo-bar>`; this.render(template); this.assertHTML(template); this.assertStableRerender(); } ['@test custom elements can have bound attributes']() { let template = `<foo-bar some-attr="{{name}}">hello</foo-bar>`; this.render(template, { name: 'Robert' }); this.assertHTML(`<foo-bar some-attr="Robert">hello</foo-bar>`); this.assertStableRerender(); this.runTask(() => set(this.context, 'name', 'Kris')); this.assertHTML(`<foo-bar some-attr="Kris">hello</foo-bar>`); this.runTask(() => set(this.context, 'name', 'Robert')); this.assertHTML(`<foo-bar some-attr="Robert">hello</foo-bar>`); } } );
Version data entries
2 entries across 2 versions & 1 rubygems