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

Side by Side Diff: LayoutTests/fast/scrolling/html-element-client-rect-excludes-scrollbars.html

Issue 1310323003: Update Element methods for root layer scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/html-element-client-rect-excludes-scrollbars-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 ::-webkit-scrollbar {
5 width: 20px;
6 height: 20px;
7 }
8 #space {
9 height: 1000px;
10 width: 1000px;
11 }
12 </style>
13 <div id="space"></div>
14 <script>
15
16 description(
17 'Tests that the html element excludes scrollbars when reporting ' +
18 'clientWidth and clientHeight, and that it implements scroll() ' +
19 'by scrolling the frame.');
20
21 var htmlElement = document.documentElement;
22 shouldBe(String(htmlElement.clientWidth), String(innerWidth - 20));
eae 2015/08/25 20:42:42 If you change this to shouldBe("htmlElement.clien
skobes 2015/08/25 20:51:25 Done.
23 shouldBe(String(htmlElement.clientHeight), String(innerHeight - 20));
24
25 htmlElement.scroll(10, 10);
26 shouldBe(String(scrollX), '10');
27 shouldBe(String(scrollY), '10');
28
29 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/html-element-client-rect-excludes-scrollbars-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698