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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/selection-within-composited-scroller.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 paint/selection/selection-within-composited-scroller.html --> 1 <!-- Based on paint/selection/selection-within-composited-scroller.html -->
2 <!doctype HTML> 2 <!doctype HTML>
3 <div id="scroller" style="width: 200px; height: 200px; overflow: scroll; backgro und: lightgray; will-change: transform"> 3 <div id="scroller" style="width: 200px; height: 200px; overflow: scroll; backgro und: lightgray; will-change: transform">
4 <div style="width: 100px; height: 600px; background: lightblue; margin-bottom: 1 0px"></div> 4 <div style="width: 100px; height: 600px; background: lightblue; margin-bottom: 1 0px"></div>
5 <div id="target" style="width: 200px; height: 1000px; background: lightblue; mar gin-bottom: 10px">test</div> 5 <div id="target" style="width: 200px; height: 1000px; background: lightblue; mar gin-bottom: 10px">test</div>
6 </div> 6 </div>
7 <script src="resources/paint-invalidation-test.js"></script> 7 <script src="resources/paint-invalidation-test.js"></script>
8 <script> 8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsTextWithPixelResults();
11 scroller.scrollTop = 450; 9 scroller.scrollTop = 450;
12 window.expectedPaintInvalidationObjects = [
13 "LayoutBlockFlow HTML",
14 "LayoutBlockFlow BODY",
15 "LayoutBlockFlow DIV id='scroller'",
16 "LayoutBlockFlow DIV id='target'",
17 "LayoutText #text",
18 "InlineTextBox 'test'",
19 ];
20 function paintInvalidationTest() { 10 function paintInvalidationTest() {
21 var range = document.createRange(); 11 var range = document.createRange();
22 range.selectNode(target); 12 range.selectNode(target);
23 window.getSelection().addRange(range); 13 window.getSelection().addRange(range);
24 } 14 }
25 onload = runPaintInvalidationTest; 15 onload = runPaintInvalidationTest;
26 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698