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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/caret-invalidation-in-overflow-scroll.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="resources/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <body onload="runRepaintTest()"> 3 <body onload="runRepaintAndPixelTest()">
4 The caret to the right should be blinking before the period. 4 The caret to the right should be blinking before the period.
5 <input id="target" style="width: 20px;" type="text" value="This is some really l ong text."> 5 <input id="target" style="width: 20px;" type="text" value="This is some really l ong text.">
6 <script> 6 <script>
7 var target = document.getElementById("target"); 7 var target = document.getElementById("target");
8 target.selectionStart = 30; 8 target.selectionStart = 30;
9 target.selectionEnd = 30; 9 target.selectionEnd = 30;
10 target.focus() 10 target.focus()
11 11
12 function repaintTest() 12 function repaintTest()
13 { 13 {
14 target.selectionStart = 29; 14 target.selectionStart = 29;
15 target.selectionEnd = 29; 15 target.selectionEnd = 29;
16 } 16 }
17 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698