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

Side by Side Diff: LayoutTests/editing/shadow/selection-of-orphan-shadowroot.html

Issue 48903019: Delete js-test-post.js. (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 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script src="../../fast/dom/resources/event-sender-util.js"></script> 5 <script src="../../fast/dom/resources/event-sender-util.js"></script>
6 <script src="../../fast/dom/resources/shadow-test-driver.js"></script> 6 <script src="../../fast/dom/resources/shadow-test-driver.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 9
10 <p>Nodes of the selection for an orphan shadow root should return null.</p> 10 <p>Nodes of the selection for an orphan shadow root should return null.</p>
11 11
12 <pre id="console"></pre> 12 <pre id="console"></pre>
13 13
14 <script> 14 <script>
15 var host = document.createElement('div'); 15 var host = document.createElement('div');
16 var shadowRoot = host.createShadowRoot(); 16 var shadowRoot = host.createShadowRoot();
17 shadowRoot.innerHTML = "Kotori Otonashi" 17 shadowRoot.innerHTML = "Kotori Otonashi"
18 18
19 var selection = shadowRoot.getSelection(); 19 var selection = shadowRoot.getSelection();
20 20
21 shouldBe('selection.anchorNode', 'null'); 21 shouldBe('selection.anchorNode', 'null');
22 shouldBe('selection.focusNode', 'null'); 22 shouldBe('selection.focusNode', 'null');
23 shouldBe('selection.baseNode', 'null'); 23 shouldBe('selection.baseNode', 'null');
24 shouldBe('selection.extentNode', 'null'); 24 shouldBe('selection.extentNode', 'null');
25 25
26 var successfullyParsed = true; 26 var successfullyParsed = true;
27 </script> 27 </script>
28 <script src="../../fast/js/resources/js-test-post.js"></script>
29 </body> 28 </body>
30 29
31 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698