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

Side by Side Diff: LayoutTests/compositing/iframes/iframe-composited-scrolling.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 iframe { 5 iframe {
6 height: 150px; 6 height: 150px;
7 width: 150px; 7 width: 150px;
8 } 8 }
9 </style> 9 </style>
10 <script> 10 <script>
11 if (window.internals) { 11 if (window.internals) {
12 internals.settings.setForceCompositingMode(true); 12 internals.settings.setForceCompositingMode(true);
13 internals.settings.setAcceleratedCompositingForScrollableFramesEnabled(tru e); 13 internals.settings.setAcceleratedCompositingForScrollableFramesEnabled(tru e);
14 internals.settings.setCompositedScrollingForFramesEnabled(true); 14 internals.settings.setCompositedScrollingForFramesEnabled(true);
15 } 15 }
16 function doTest() 16 function doTest()
17 { 17 {
18 if (window.testRunner) { 18 if (window.testRunner) {
19 testRunner.dumpAsText(false); 19 testRunner.dumpAsText();
20 if (window.internals) 20 if (window.internals)
21 document.getElementById("result").innerText = window.internals.nonFast ScrollableRects(document).length ? "FAIL" : "PASS"; 21 document.getElementById("result").innerText = window.internals.nonFast ScrollableRects(document).length ? "FAIL" : "PASS";
22 } 22 }
23 } 23 }
24 window.addEventListener("load", doTest, false); 24 window.addEventListener("load", doTest, false);
25 </script> 25 </script>
26 </head> 26 </head>
27 <body> 27 <body>
28 <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100 px; height: 100px"></iframe> 28 <iframe id="scrollable-iframe" src="resources/subframe.html" style="width: 100 px; height: 100px"></iframe>
29 <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width: 2000px; height: 2000px"></iframe> 29 <iframe id="non-scrollable-iframe" src="resources/subframe.html" style="width: 2000px; height: 2000px"></iframe>
30 <pre id="result"></pre> 30 <pre id="result"></pre>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/iframes/crash-mouse-event.html ('k') | LayoutTests/compositing/iframes/nested-composited-iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698