Commit 078ee947 authored by weinig@apple.com's avatar weinig@apple.com

Make this test a bit more robust agains different scrollbar widths.

* fast/overflow/overflow-rtl-vertical-origin.html:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7acf635b
2011-01-25 Sam Weinig <sam@webkit.org>
Make this test a bit more robust agains different scrollbar widths.
* fast/overflow/overflow-rtl-vertical-origin.html:
2011-01-25 Sam Weinig <sam@webkit.org>
Reviewed by David Hyatt.
......
......@@ -15,9 +15,16 @@
layoutTestController.dumpAsText();
var t = document.getElementById("test");
if (t.scrollTop == 115)
var initialTop = t.scrollTop;
// Scroll as far as you can.
t.scrollTop = 1000;
var newTop = t.scrollTop
if (initialTop == newTop)
log("PASS: test.scrollTop is correct.")
else
log("FAIL: test.scrollTop is incorrect. It is " + t.scrollTop + " but should be 115.");
log("FAIL: test.scrollTop is incorrect. It is " + initialTop + " but should be " + newTop + ".");
</script>
</body>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment