more test fixes.

This commit is contained in:
Steven Orvell 2017-02-24 21:02:37 -08:00
parent e07f9e1d61
commit f20cc83f7f

View File

@ -337,11 +337,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
assert.equal(el.$.container.domHost, el);
});
test('legacy settings agree with webcomponents settings', function() {
var flags = window.WebComponents.flags;
assert.equal(Polymer.Settings.useShadow, !flags.shadydom);
assert.equal(Polymer.Settings.useNativeCustomElements, !flags.ce);
assert.equal(Polymer.Settings.useNativeCSSProperties, !flags.shimcssproperties);
test('legacy settings', function() {
assert.equal(Polymer.Settings.useShadow, !(window.ShadyDOM));
assert.equal(Polymer.Settings.useNativeCustomElements, !(window.customElements.polyfillWrapFlushCallback));
assert.equal(Polymer.Settings.useNativeCSSProperties, Boolean(!window.ShadyCSS || window.ShadyCSS.nativeCss));
});
})