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

Side by Side Diff: LayoutTests/fast/html/nav-element.html

Issue 236693002: Replace Selection.collapse() with Selection.removeAllRanges() in layout tests.. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
1 <!doctype HTML> 1 <!doctype HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test of HTML5 nav element</title> 4 <title>Test of HTML5 nav element</title>
5 5
6 <script> 6 <script>
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 </script> 9 </script>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 <h4>DOM for the above (so this test can dump as text)</h4> 43 <h4>DOM for the above (so this test can dump as text)</h4>
44 <pre id=markupArea> 44 <pre id=markupArea>
45 </pre> 45 </pre>
46 46
47 47
48 <script> 48 <script>
49 var ed = document.getElementById("editable"); 49 var ed = document.getElementById("editable");
50 var selection = window.getSelection(); 50 var selection = window.getSelection();
51 selection.selectAllChildren(ed); 51 selection.selectAllChildren(ed);
52 document.execCommand("FormatBlock", false, "nav"); 52 document.execCommand("FormatBlock", false, "nav");
53 selection.collapse(); 53 selection.removeAllRanges();
54 ed.blur(); 54 ed.blur();
55 55
56 var tests = document.getElementById("testArea"); 56 var tests = document.getElementById("testArea");
57 var markup = document.getElementById("markupArea"); 57 var markup = document.getElementById("markupArea");
58 var textNode = document.createTextNode(testArea.innerHTML); 58 var textNode = document.createTextNode(testArea.innerHTML);
59 markup.appendChild(textNode); 59 markup.appendChild(textNode);
60 60
61 </script> 61 </script>
62 62
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/execCommand/overtype.html ('k') | LayoutTests/fast/html/script-tests/article-element.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698