Skip to content

Commit 9802deb

Browse files
committed
fix(test): native shadow DOM is required (IE11, Firefox)
1 parent 2287938 commit 9802deb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

modules/angular2/test/render/dom/shadow_dom/native_shadow_dom_strategy_spec.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ export function main() {
3030
strategy = new NativeShadowDomStrategy(styleUrlResolver);
3131
});
3232

33-
it('should use the native shadow root', () => {
34-
var host = el('<div><span>original content</span></div>');
35-
expect(strategy.prepareShadowRoot(host)).toBe(DOM.getShadowRoot(host));
36-
});
33+
if (DOM.supportsNativeShadowDOM()) {
34+
it('should use the native shadow root', () => {
35+
var host = el('<div><span>original content</span></div>');
36+
expect(strategy.prepareShadowRoot(host)).toBe(DOM.getShadowRoot(host));
37+
});
38+
}
3739

3840
it('should rewrite style urls', () => {
3941
var styleElement = el('<style>.foo {background-image: url("img.jpg");}</style>');

0 commit comments

Comments
 (0)