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

Side by Side Diff: LayoutTests/fast/autoresize/turn-off-autoresize.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 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 | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <script src='resources/autoresize-util.js'></script> 3 <script src='resources/autoresize-util.js'></script>
4 <script> 4 <script>
5 function runTest() 5 function runTest()
6 { 6 {
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.useUnfortunateSynchronousResizeMode(); 8 testRunner.useUnfortunateSynchronousResizeMode();
9 testRunner.enableAutoResizeMode(10, 10, 1000, 1000); 9 testRunner.enableAutoResizeMode(10, 10, 1000, 1000);
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
11 } 11 }
12 shouldBe('document.body.clientWidth', 'window.innerWidth'); 12 shouldBe('document.body.clientWidth', 'window.innerWidth');
13 shouldBe('document.body.clientHeight', 'window.innerHeight'); 13 shouldBe('document.body.clientHeight', 'window.innerHeight');
14 shouldBe('document.body.scrollWidth', 'window.innerWidth'); 14 shouldBe('document.scrollingElement.scrollWidth', 'window.innerWidth');
15 shouldBe('document.body.scrollHeight', 'window.innerHeight'); 15 shouldBe('document.scrollingElement.scrollHeight', 'window.innerHeight');
16 shouldBe('window.innerWidth', 'window.outerWidth'); 16 shouldBe('window.innerWidth', 'window.outerWidth');
17 shouldBe('window.innerHeight', 'window.outerHeight'); 17 shouldBe('window.innerHeight', 'window.outerHeight');
18 if (window.testRunner) 18 if (window.testRunner)
19 testRunner.disableAutoResizeMode(200, 200); 19 testRunner.disableAutoResizeMode(200, 200);
20 20
21 shouldBe('window.outerWidth', 200); 21 shouldBe('window.outerWidth', 200);
22 shouldBe('window.outerHeight', 200); 22 shouldBe('window.outerHeight', 200);
23 document.body.style.width = '100px'; 23 document.body.style.width = '100px';
24 shouldBe('window.outerWidth', 200); 24 shouldBe('window.outerWidth', 200);
25 25
26 log('DONE'); 26 log('DONE');
27 } 27 }
28 </script> 28 </script>
29 <body onload="runTest()" style="margin:0; width:900px"> 29 <body onload="runTest()" style="margin:0; width:900px">
30 This test verifies that turning off auto resize functions correctly. It only wor ks when run in dumprendertree as it relies on having auto-resize function availa ble. 30 This test verifies that turning off auto resize functions correctly. It only wor ks when run in dumprendertree as it relies on having auto-resize function availa ble.
31 <br> 31 <br>
32 <br> 32 <br>
33 When it succeeds, there should be a series of PASS messages followed by a DONE m essage. 33 When it succeeds, there should be a series of PASS messages followed by a DONE m essage.
34 <br> 34 <br>
35 <br> 35 <br>
36 <div id='result'> 36 <div id='result'>
37 </div> 37 </div>
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/autoresize/basic-expected.txt ('k') | LayoutTests/fast/autoresize/turn-off-autoresize-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698