fix(test): native shadow DOM is required (IE11, Firefox)
This commit is contained in:
parent
2287938f5a
commit
9802debf71
|
@ -30,10 +30,12 @@ export function main() {
|
||||||
strategy = new NativeShadowDomStrategy(styleUrlResolver);
|
strategy = new NativeShadowDomStrategy(styleUrlResolver);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (DOM.supportsNativeShadowDOM()) {
|
||||||
it('should use the native shadow root', () => {
|
it('should use the native shadow root', () => {
|
||||||
var host = el('<div><span>original content</span></div>');
|
var host = el('<div><span>original content</span></div>');
|
||||||
expect(strategy.prepareShadowRoot(host)).toBe(DOM.getShadowRoot(host));
|
expect(strategy.prepareShadowRoot(host)).toBe(DOM.getShadowRoot(host));
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
it('should rewrite style urls', () => {
|
it('should rewrite style urls', () => {
|
||||||
var styleElement = el('<style>.foo {background-image: url("img.jpg");}</style>');
|
var styleElement = el('<style>.foo {background-image: url("img.jpg");}</style>');
|
||||||
|
|
Loading…
Reference in New Issue