OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Shadow DOM: ShadowRoot interface</title> | 4 <title>Shadow DOM: ShadowRoot interface</title> |
5 <meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org"> | 5 <meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org"> |
6 <meta name="assert" content="ShadowRoot interface and its attributes must be def
ined"> | 6 <meta name="assert" content="ShadowRoot interface and its attributes must be def
ined"> |
7 <link rel="help" href="https://w3c.github.io/webcomponents/spec/shadow/#the-shad
owroot-interface"> | 7 <link rel="help" href="https://w3c.github.io/webcomponents/spec/shadow/#the-shad
owroot-interface"> |
8 <script src="../../../resources/testharness.js"></script> | 8 <script src="../../../resources/testharness.js"></script> |
9 <script src="../../../resources/testharnessreport.js"></script> | 9 <script src="../../../resources/testharnessreport.js"></script> |
10 <link rel='stylesheet' href='../../../resources/testharness.css'> | |
11 </head> | 10 </head> |
12 <body> | 11 <body> |
13 <div id="log"></div> | 12 <div id="log"></div> |
14 <script> | 13 <script> |
15 | 14 |
16 test(function () { | 15 test(function () { |
17 assert_true('ShadowRoot' in window, '"ShadowRoot" exists on window'); | 16 assert_true('ShadowRoot' in window, '"ShadowRoot" exists on window'); |
18 }, 'Check the existence of ShadowRoot interface'); | 17 }, 'Check the existence of ShadowRoot interface'); |
19 | 18 |
20 test(function () { | 19 test(function () { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 assert_equals(shadowRoot.styleSheets[1], styles[1].sheet, 'shadowRoot.st
yleSheets[1] must be the second style element in the shadow root'); | 102 assert_equals(shadowRoot.styleSheets[1], styles[1].sheet, 'shadowRoot.st
yleSheets[1] must be the second style element in the shadow root'); |
104 }, 'ShadowRoot.styleSheets must return a StyleSheetList sequence containing
the shadow root style sheets when shadow root is ' + mode + '.'); | 103 }, 'ShadowRoot.styleSheets must return a StyleSheetList sequence containing
the shadow root style sheets when shadow root is ' + mode + '.'); |
105 } | 104 } |
106 | 105 |
107 testStyleSheets('open'); | 106 testStyleSheets('open'); |
108 testStyleSheets('closed'); | 107 testStyleSheets('closed'); |
109 | 108 |
110 </script> | 109 </script> |
111 </body> | 110 </body> |
112 </html> | 111 </html> |
OLD | NEW |