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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/inline-outline-repaint.html

Issue 1972273002: Let repaint tests test pixels by default (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 PUBLIC "-//W3C//DTD HTML 4.01//EN" 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd"> 2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html lang="en"> 3 <html lang="en">
4 <head> 4 <head>
5 <script src="../../editing/editing.js"></script> 5 <script src="../../editing/editing.js"></script>
6 <script src="resources/text-based-repaint.js"></script> 6 <script src="resources/repaint.js"></script>
7 <script> 7 <script>
8 function repaintTest() 8 function repaintTest()
9 { 9 {
10 var elem = document.getElementById("test"); 10 var elem = document.getElementById("test");
11 var selection = window.getSelection(); 11 var selection = window.getSelection();
12 selection.collapse(elem, 1); 12 selection.collapse(elem, 1);
13 for (i = 0; i < 9; i++) 13 for (i = 0; i < 9; i++)
14 document.execCommand("Delete"); 14 document.execCommand("Delete");
15 } 15 }
16 </script> 16 </script>
(...skipping 10 matching lines...) Expand all
27 As the words &ldquo;sit amet&rdquo; will be deleted, the blue outline will leave 27 As the words &ldquo;sit amet&rdquo; will be deleted, the blue outline will leave
28 trails behind as it shrinks to fit the remaining text. 28 trails behind as it shrinks to fit the remaining text.
29 </p> 29 </p>
30 30
31 <div contenteditable style="width: 100px; outline: none;"> 31 <div contenteditable style="width: 100px; outline: none;">
32 <span id="test" style="outline: blue solid;">Lorem ipsum dolor sit amet&nbsp;</s pan> 32 <span id="test" style="outline: blue solid;">Lorem ipsum dolor sit amet&nbsp;</s pan>
33 </div> 33 </div>
34 34
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698