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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/selection-after-delete.html

Issue 1988313004: Test pixel results for repaint tests testing selection, etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <script src="resources/text-based-repaint.js" type="text/javascript"></script> 1 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
2 <script type="text/javascript"> 2 <script type="text/javascript">
3 function repaintTest() { 3 function repaintTest() {
4 document.execCommand("Delete"); 4 document.execCommand("Delete");
5 } 5 }
6 </script> 6 </script>
7 <body onload="runRepaintTest();" contenteditable="true"> 7 <body onload="runRepaintAndPixelTest();" contenteditable="true">
8 <p>This tests to see if selection gaps are removed when the selection is deleted . Nothing should be selected below. A caret should be inside the red div.</p> 8 <p>This tests to see if selection gaps are removed when the selection is deleted . Nothing should be selected below. A caret should be inside the red div.</p>
9 <div id="test" style="width: 150px; border: 1px solid red; margin: 30px;">hello world hello world hello world hello world hello world hello world hello world he llo world hello<br></div> 9 <div id="test" style="width: 150px; border: 1px solid red; margin: 30px;">hello world hello world hello world hello world hello world hello world hello world he llo world hello<br></div>
10 <script> 10 <script>
11 var s = window.getSelection(); 11 var s = window.getSelection();
12 var e = document.getElementById("test"); 12 var e = document.getElementById("test");
13 s.setBaseAndExtent(e, 0, e, e.childNodes.length); 13 s.setBaseAndExtent(e, 0, e, e.childNodes.length);
14 </script> 14 </script>
15 </body> 15 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698