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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/selection-partial-invalidation-between-blocks.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <table width="100%"> 2 <table width="100%">
3 <tr> 3 <tr>
4 <td id="firstCell">First cell</td> 4 <td id="firstCell">First cell</td>
5 </tr> 5 </tr>
6 <tr> 6 <tr>
7 <td id="secondCell">Second cell</td> 7 <td id="secondCell">Second cell</td>
8 </tr> 8 </tr>
9 </table> 9 </table>
10 <script src="../../resources/run-after-layout-and-paint.js" type="text/javascrip t"></script> 10 <script src="../../resources/run-after-layout-and-paint.js" type="text/javascrip t"></script>
11 <script src="resources/text-based-repaint.js" type="text/javascript"></script> 11 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
12 <script> 12 <script>
13 window.testIsAsync = true; 13 window.testIsAsync = true;
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.waitUntilDone(); 15 testRunner.waitUntilDone();
16 16
17 document.execCommand("selectAll"); 17 document.execCommand("selectAll");
18 18
19 function repaintTest() { 19 function repaintTest() {
20 var selection = window.getSelection(); 20 var selection = window.getSelection();
21 var firstCell = document.getElementById("firstCell"); 21 var firstCell = document.getElementById("firstCell");
22 selection.setBaseAndExtent(firstCell, 0, firstCell, 1); 22 selection.setBaseAndExtent(firstCell, 0, firstCell, 1);
23 finishRepaintTest(); 23 finishRepaintTest();
24 } 24 }
25 runAfterLayoutAndPaint(runRepaintTest); 25 runAfterLayoutAndPaint(runRepaintAndPixelTest);
26 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698