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);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should use the native shadow root', () => {
|
if (DOM.supportsNativeShadowDOM()) {
|
||||||
var host = el('<div><span>original content</span></div>');
|
it('should use the native shadow root', () => {
|
||||||
expect(strategy.prepareShadowRoot(host)).toBe(DOM.getShadowRoot(host));
|
var host = el('<div><span>original content</span></div>');
|
||||||
});
|
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