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

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

Issue 2074393002: Clean up shadow-dom layout tests so that they are well organized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/attach-shadow-safelist.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <div id="log"></div> 4 <div id="log"></div>
5 <div id="host1"></div> 5 <div id="host1"></div>
6 <div id="host2"></div> 6 <div id="host2"></div>
7 <div id="host3"></div> 7 <div id="host3"></div>
8 <input id="input"> 8 <input id="input">
9 <script> 9 <script>
10 10
11 test(function() { 11 test(function() {
12 host1.attachShadow({mode : 'open'}); 12 host1.attachShadow({mode : 'open'});
13 var closedShadowRoot = host2.attachShadow({mode : 'closed'}); 13 var closedShadowRoot = host2.attachShadow({mode : 'closed'});
14 host3.createShadowRoot(); 14 host3.createShadowRoot();
15 assert_equals(host1.shadowRoot.mode, 'open'); 15 assert_equals(host1.shadowRoot.mode, 'open');
16 assert_equals(closedShadowRoot.mode, 'closed'); 16 assert_equals(closedShadowRoot.mode, 'closed');
17 assert_equals(host3.shadowRoot.mode, 'open'); 17 assert_equals(host3.shadowRoot.mode, 'open');
18 // Note: mode for V0 shadow and UA shadow is not specified anywhere, 18 // Note: mode for V0 shadow and UA shadow is not specified anywhere,
19 // Blink returns reasonable default values for these. 19 // Blink returns reasonable default values for these.
20 assert_equals(internals.shadowRoot(input).mode, 'closed'); 20 assert_equals(internals.shadowRoot(input).mode, 'closed');
21 }, 'ShadowRoot.mode should return open or closed, and only open if v0.'); 21 }, 'ShadowRoot.mode should return open or closed, and only open if v0.');
22 </script> 22 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/attach-shadow-safelist.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698