File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
modules/angular2/test/render/dom/shadow_dom Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,12 @@ export function main() {
30
30
strategy = new NativeShadowDomStrategy ( styleUrlResolver ) ;
31
31
} ) ;
32
32
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
+ }
37
39
38
40
it ( 'should rewrite style urls' , ( ) => {
39
41
var styleElement = el ( '<style>.foo {background-image: url("img.jpg");}</style>' ) ;
You can’t perform that action at this time.
0 commit comments