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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/repaint-rect-for-vertical-writing-mode-with-positioned-root.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 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <style> 3 <style>
4 #test { 4 #test {
5 position: absolute; 5 position: absolute;
6 left: 0px; 6 left: 0px;
7 top: 200px; 7 top: 200px;
8 -webkit-writing-mode: vertical-rl; 8 -webkit-writing-mode: vertical-rl;
9 width: 200px; 9 width: 200px;
10 height: 300px; 10 height: 300px;
11 border: 1px solid black; 11 border: 1px solid black;
12 outline-style: none; 12 outline-style: none;
13 } 13 }
14 </style> 14 </style>
15 <script> 15 <script>
16 if (window.testRunner)
17 testRunner.dumpAsTextWithPixelResults();
18
19 function repaintTest() { 16 function repaintTest() {
20 var testElement = document.getElementById("test"); 17 var testElement = document.getElementById("test");
21 var selection = window.getSelection(); 18 var selection = window.getSelection();
22 selection.collapse(testElement, 1); 19 selection.collapse(testElement, 1);
23 selection.modify("Extend", "Forward", "Line"); 20 selection.modify("Extend", "Forward", "Line");
24 } 21 }
25 </script> 22 </script>
26 <body onload="runRepaintTest()"> 23 <body onload="runRepaintAndPixelTest()">
27 <div id="test" contenteditable="true"> 24 <div id="test" contenteditable="true">
28 <div>Some text in vertical mode</div> 25 <div>Some text in vertical mode</div>
29 </div> 26 </div>
30 </body> 27 </body>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/LayoutTests/fast/images/repaint-subrect-grid.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698