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

Side by Side Diff: LayoutTests/fast/scroll-behavior/main-frame-scroll-in-standards-mode.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 <head> 3 <head>
4 <style> 4 <style>
5 #content { 5 #content {
6 width: 7500px; 6 width: 7500px;
7 height: 7500px; 7 height: 7500px;
8 background-color: blue; 8 background-color: blue;
9 } 9 }
10 </style> 10 </style>
11 <script src="../../resources/js-test.js"></script> 11 <script src="../../resources/js-test.js"></script>
12 <script> 12 <script>
13 onload = function() { 13 onload = function() {
14 description('Test that calling scroll methods on the body element does not scroll the viewport in standards mode'); 14 description('Test that calling scroll methods on the body element does not scroll the viewport in standards mode. Currently expected to fail: crbug.com/1 57855');
15
15 16
16 debug('Test that "scroll" on the body element does not scroll'); 17 debug('Test that "scroll" on the body element does not scroll');
17 document.body.scroll(100, 100); 18 document.body.scroll(100, 100);
18 shouldBe("document.body.scrollTop", "0"); 19 shouldBe("document.body.scrollTop", "0");
19 shouldBe("document.body.scrollLeft", "0"); 20 shouldBe("document.body.scrollLeft", "0");
20 shouldBe("document.documentElement.scrollTop", "0"); 21 shouldBe("document.documentElement.scrollTop", "0");
21 shouldBe("document.documentElement.scrollLeft", "0"); 22 shouldBe("document.documentElement.scrollLeft", "0");
22 23
23 debug(''); 24 debug('');
24 debug('Test that "scrollTo" on the body element does not scroll'); 25 debug('Test that "scrollTo" on the body element does not scroll');
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 shouldBe("document.documentElement.scrollTop", "300"); 61 shouldBe("document.documentElement.scrollTop", "300");
61 shouldBe("document.documentElement.scrollLeft", "750"); 62 shouldBe("document.documentElement.scrollLeft", "750");
62 } 63 }
63 </script> 64 </script>
64 </head> 65 </head>
65 66
66 <body> 67 <body>
67 <div id="content"></div> 68 <div id="content"></div>
68 </body> 69 </body>
69 </html> 70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698