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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/shadowroot-mode.html

Issue 1841353002: Implement ShadowRoot.mode (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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-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 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <div id="log"></div>
5 <div id = "host1"></div>
6 <div id = "host2"></div>
7 <div id = "host3"></div>
kochi 2016/03/31 08:38:42 nit: Please be consistent on whitespaces around "=
yuzuchan 2016/03/31 09:32:25 Done.
8 <input id="input">
9 <script>
10
11 test(function() {
12 var host1 = document.getElementById('host1');
kochi 2016/03/31 08:38:42 nit: it's okay to explicitly have this and followi
yuzuchan 2016/03/31 09:32:25 Done.
13 var host2 = document.getElementById('host2');
14 var host3 = document.getElementById('host3');
15 var input = document.getElementById('input');
16 host1.attachShadow({mode : 'open'});
17 var closedShadowRoot = host2.attachShadow({mode : 'closed'});
18 host3.createShadowRoot();
19 assert_equals(host1.shadowRoot.mode, 'open');
20 assert_equals(closedShadowRoot.mode, 'closed');
21 assert_equals(host3.shadowRoot.mode, 'open');
kochi 2016/03/31 08:38:42 Strictly speaking, mode for V0 shadow root and UA
yuzuchan 2016/03/31 09:32:25 Done.
22 assert_equals(internals.shadowRoot(input).mode, 'closed');
23 }, 'ShadowRoot.mode should return open or closed, and only open if v0.');
24 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698