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

Side by Side Diff: LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter.html

Issue 1158163004: Add ShadowRootInit dictionary. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nit fix in layout test Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="host1"></div>
8 <div id="host2"></div>
9 <div id="host3"></div>
10 <div id="host4"></div>
11 </body>
12 <script>
13 debug('Create open shadow root.');
14 var host1 = document.querySelector('#host1');
15 var root1 = host1.createShadowRoot({mode: 'open'});
16 shouldBeNonNull(root1);
17
18 debug('Create closed shadow root.');
19 var host2 = document.querySelector('#host2');
20 // TODO(kochi): Closed mode is not implemented yet. crbug.com/459136
21 shouldThrow("host2.createShadowRoot({mode: 'closed'})");
22
23 debug('Create shadow root with empty parameter.');
24 var host3 = document.querySelector('#host3');
25 var root3 = host3.createShadowRoot({});
26 shouldBeNonNull(root3);
27
28 debug('Create shadow root whose mode is neither open nor closed.');
29 var host4 = document.querySelector('#host4');
30 shouldThrow("host4.createShadowRoot({mode: 'illegal'})");
31 </script>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698