Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/ShadowRoot-interface.html

Issue 1854003004: Import web-platform-tests@5a8700479d98852455bee6117558897867eb278a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698