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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/text-color-change.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on compositing/overflow/text-color-change.html --> 1 <!-- Based on compositing/overflow/text-color-change.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutText #text",
7 "InlineTextBox ' Text'",
8 "InlineTextBox '\n'",
9 "InlineTextBox ' Text'",
10 "InlineTextBox '\n'",
11 "InlineTextBox ' Text'",
12 "InlineTextBox '\n'",
13 "InlineTextBox ' Text'",
14 "InlineTextBox '\n'",
15 "InlineTextBox ' Text'",
16 "InlineTextBox '\n'",
17 "InlineTextBox ' Text'",
18 "InlineTextBox '\n'",
19 "InlineTextBox ' Text'",
20 "InlineTextBox '\n'",
21 "InlineTextBox ' Text'",
22 "InlineTextBox '\n'",
23 "InlineTextBox ' Text'",
24 "InlineTextBox '\n'",
25 "InlineTextBox ' Text'",
26 "InlineTextBox '\n'",
27 "InlineTextBox ' Text'",
28 "InlineTextBox '\n'",
29 "InlineTextBox ' Text'",
30 "InlineTextBox '\n'",
31 "InlineTextBox ' Text'",
32 "InlineTextBox '\n'",
33 "InlineTextBox ' Text'",
34 "InlineTextBox '\n'",
35 "InlineTextBox ' Text'",
36 "InlineTextBox '\n'",
37 "InlineTextBox ' Text'",
38 "InlineTextBox '\n'",
39 "InlineTextBox ' Text'",
40 "InlineTextBox '\n'",
41 "InlineTextBox ' Text'",
42 "InlineTextBox '\n'",
43 "InlineTextBox ' Text'",
44 "InlineTextBox '\n'",
45 "InlineTextBox ' Text'",
46 "InlineTextBox '\n'",
47 "InlineTextBox ' Text'",
48 "InlineTextBox '\n'",
49 "InlineTextBox ' Text'",
50 "InlineTextBox '\n'",
51 "InlineTextBox ' Text'",
52 "InlineTextBox '\n'",
53 "InlineTextBox ' Text'",
54 "InlineTextBox '\n'",
55 "InlineTextBox ' Text'",
56 "InlineTextBox '\n'",
57 "InlineTextBox ' Text'",
58 "InlineTextBox '\n'",
59 "InlineTextBox ' Text'",
60 "InlineTextBox '\n'",
61 "InlineTextBox ' Text'",
62 "InlineTextBox '\n'",
63 "InlineTextBox ' Text'",
64 "InlineTextBox '\n'",
65 "InlineTextBox ' Text'",
66 "InlineTextBox '\n'",
67 "InlineTextBox ' Text'",
68 "InlineTextBox '\n'",
69 "InlineTextBox ' Text'",
70 "InlineTextBox '\n'",
71 "InlineTextBox ' Text'",
72 "InlineTextBox '\n'",
73 "InlineTextBox ' Text'",
74 "InlineTextBox '\n'",
75 "InlineTextBox ' Text'",
76 "InlineTextBox '\n'",
77 "InlineTextBox ' Text'",
78 "InlineTextBox '\n'",
79 "InlineTextBox ' Text'",
80 "InlineTextBox '\n'",
81 "InlineTextBox ' Text'",
82 "InlineTextBox '\n'",
83 "InlineTextBox ' Text'",
84 "InlineTextBox '\n'",
85 "InlineTextBox ' Text'",
86 "InlineTextBox '\n'",
87 "InlineTextBox ' Text'",
88 "InlineTextBox '\n'",
89 ];
90 function paintInvalidationTest() { 5 function paintInvalidationTest() {
91 document.getElementById('scroller').style.color = 'green'; 6 document.getElementById('scroller').style.color = 'green';
92 } 7 }
93 onload = runPaintInvalidationTest; 8 onload = runPaintInvalidationTest;
94 </script> 9 </script>
95 Tests invalidation of scrolling text. On composited scrolling, the whole text sh ould be invalidated when the 'color' property of the container changes. 10 Tests invalidation of scrolling text. On composited scrolling, the whole text sh ould be invalidated when the 'color' property of the container changes.
96 <pre id="scroller" style="width: 200px; height: 200px; overflow: scroll; color: red"> 11 <pre id="scroller" style="width: 200px; height: 200px; overflow: scroll; color: red">
97 Text 12 Text
98 Text 13 Text
99 Text 14 Text
(...skipping 29 matching lines...) Expand all
129 Text 44 Text
130 Text 45 Text
131 Text 46 Text
132 Text 47 Text
133 Text 48 Text
134 Text 49 Text
135 Text 50 Text
136 Text 51 Text
137 Text 52 Text
138 </pre> 53 </pre>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698