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() {
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(http://github.com/"img.jpg");}</style>' ) ;
You can’t perform that action at this time.
0 commit comments