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

Side by Side Diff: LayoutTests/editing/shadow/shadow-selection-not-exported.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <pre id="console"></pre> 3 <pre id="console"></pre>
4 4
5 <p>This test ensures shadow root won't expose to JS layer.<p> 5 <p>This test ensures shadow root won't expose to JS layer.<p>
6 <div id='div1'>BEFORE</div> 6 <div id='div1'>BEFORE</div>
7 <div id='container'>CONTAINER</div> 7 <div id='container'>CONTAINER</div>
8 <div id='div4'>AFTER</di> 8 <div id='div4'>AFTER</di>
9 <script src="../editing.js"></script> 9 <script src="../editing.js"></script>
10 <script src="../../fast/js/resources/js-test-pre.js"></script> 10 <script src="../../resources/js-test.js"></script>
11 <script> 11 <script>
12 if (window.testRunner) 12 if (window.testRunner)
13 testRunner.dumpAsText(); 13 testRunner.dumpAsText();
14 14
15 var container = document.getElementById('container'); 15 var container = document.getElementById('container');
16 var shadowRoot = container.createShadowRoot(); 16 var shadowRoot = container.createShadowRoot();
17 17
18 var div2 = document.createElement('div'); 18 var div2 = document.createElement('div');
19 div2.appendChild(document.createTextNode('IN SHADOW TREE 1')); 19 div2.appendChild(document.createTextNode('IN SHADOW TREE 1'));
20 var div3 = document.createElement('div'); 20 var div3 = document.createElement('div');
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 selection = window.getSelection(); 72 selection = window.getSelection();
73 shouldBe('assertNotInShadow(selection.anchorNode)', 'true'); 73 shouldBe('assertNotInShadow(selection.anchorNode)', 'true');
74 shouldBe('assertNotInShadow(selection.focusNode)', 'true'); 74 shouldBe('assertNotInShadow(selection.focusNode)', 'true');
75 selection.removeAllRanges(); 75 selection.removeAllRanges();
76 } 76 }
77 77
78 var successfullyParsed = true; 78 var successfullyParsed = true;
79 </script> 79 </script>
80 </html> 80 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/shadow/selection-of-shadowroot.html ('k') | LayoutTests/editing/spelling/copy-paste-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698