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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/delete-into-nested-block.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 3 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function repaintTest() 5 function repaintTest()
6 { 6 {
7 document.execCommand("Delete"); 7 document.execCommand("Delete");
8 } 8 }
9 </script> 9 </script>
10 </head> 10 </head>
11 <body onload="runRepaintTest()"> 11 <body onload="runRepaintAndPixelTest()">
12 <h4>Deleting into a nested block (was Radar 4056100)</h4> 12 <h4>Deleting into a nested block (was Radar 4056100)</h4>
13 <div style="width:400px;"> 13 <div style="width:400px;">
14 The bug's symptom was that the visual result were two instances of the w ord "three", because the original was not erased. Resize cleared it up. 14 The bug's symptom was that the visual result were two instances of the w ord "three", because the original was not erased. Resize cleared it up.
15 </div> 15 </div>
16 <hr> 16 <hr>
17 <div contenteditable style="height: 100px;"> 17 <div contenteditable style="height: 100px;">
18 <div id="one">one</div> 18 <div id="one">one</div>
19 <div id="two"> 19 <div id="two">
20 <div>two</div> 20 <div>two</div>
21 <div>three</div> 21 <div>three</div>
22 </div> 22 </div>
23 </div> 23 </div>
24 <script type="text/javascript"> 24 <script type="text/javascript">
25 var sel = window.getSelection(); 25 var sel = window.getSelection();
26 var one = document.getElementById("one"); 26 var one = document.getElementById("one");
27 var two = document.getElementById("two"); 27 var two = document.getElementById("two");
28 sel.setBaseAndExtent(one, 0, two, 2); 28 sel.setBaseAndExtent(one, 0, two, 2);
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698