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

Side by Side Diff: third_party/WebKit/LayoutTests/scrollingcoordinator/non-fast-scrollable-region-scaled-iframe.html

Issue 2651793012: [RootLayerScrolls] Annotate non-fast-scroll regions to correct layer (Closed)
Patch Set: Get rid of nonFastScrollableRects plumbing. Created 3 years, 10 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 <style> 2 <style>
3 iframe { 3 iframe {
4 position: absolute; 4 position: absolute;
5 left: 100px; 5 left: 100px;
6 top: 100px; 6 top: 100px;
7 height: 120px; 7 height: 120px;
8 width: 120px; 8 width: 120px;
9 padding: 10px; 9 padding: 10px;
10 border: none; 10 border: none;
11 } 11 }
12 .spacer {
13 height: 2000px;
14 }
12 </style> 15 </style>
13 16
14 <iframe src="data:text/html;charset=utf-8,<html><body style='width:1000px;height :1000px;'>Should be covered by a green overlay.</body></html>"></iframe> 17 <iframe src="data:text/html;charset=utf-8,<html><body style='width:1000px;height :1000px;'>Should be covered by a green overlay.</body></html>"></iframe>
15 <div id="console"></div> 18 <div id="console"></div>
19 <div class="spacer"></div>
16 20
17 <script src="../resources/js-test.js"></script> 21 <script src="../resources/js-test.js"></script>
18 <script src="../resources/run-after-layout-and-paint.js"></script> 22 <script src="../resources/run-after-layout-and-paint.js"></script>
19 <script src="resources/non-fast-scrollable-region-testing.js"></script> 23 <script src="resources/non-fast-scrollable-region-testing.js"></script>
20 <script> 24 <script>
21 window.jsTestIsAsync = true; 25 window.jsTestIsAsync = true;
22 description('This test ensures non-fast scrollable areas are calculated ' + 26 description('This test ensures non-fast scrollable areas are calculated ' +
23 'correctly when page is scaled.'); 27 'correctly when page is scaled.');
24 28
25 onload = function() { 29 onload = function() {
26 if (window.internals) 30 if (window.internals)
27 window.internals.setPageScaleFactor(2); 31 window.internals.setPageScaleFactor(2);
28 else 32 else
29 testFailed('This test requires window.internals.setPageScaleFactor to be a vailable.'); 33 testFailed('This test requires window.internals.setPageScaleFactor to be a vailable.');
30 34
31 runAfterLayoutAndPaint(function(){ 35 runAfterLayoutAndPaint(function(){
32 nonFastScrollableRects = window.internals.nonFastScrollableRects(document) ; 36 nonFastScrollableRects = window.internals.nonFastScrollableRects(document) ;
33 shouldBe('nonFastScrollableRects.length', '1'); 37 shouldBe('nonFastScrollableRects.length', '1');
34 shouldBeEqualToString('rectToString(nonFastScrollableRects[0])', '[110, 11 0, 120, 120]'); 38 shouldBeEqualToString('rectToString(nonFastScrollableRects[0])', '[110, 11 0, 120, 120]');
35 39
36 drawNonFastScrollableRegionOverlays(); 40 drawNonFastScrollableRegionOverlays();
37 41
38 finishJSTest(); 42 finishJSTest();
39 }); 43 });
40 }; 44 };
41 </script> 45 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698