Index: LayoutTests/fast/dom/Window/window-scroll-arguments.html |
diff --git a/LayoutTests/fast/dom/Window/window-scroll-arguments.html b/LayoutTests/fast/dom/Window/window-scroll-arguments.html |
index 22d0ef6c6e1c213315126b5a5bae9b79d68ffa74..ccf125a1199932de68a506c00992f41d89ca24d0 100644 |
--- a/LayoutTests/fast/dom/Window/window-scroll-arguments.html |
+++ b/LayoutTests/fast/dom/Window/window-scroll-arguments.html |
@@ -25,7 +25,7 @@ |
reset(); |
description("This test makes sure that calling the window scrolling\ |
- methods with less than 2 arguments treats the missing arguments as 0."); |
+ methods with less than 2 arguments throws exception."); |
// scrollTo ///////////////////////// |
debug(''); |
@@ -33,15 +33,11 @@ |
debug(''); |
debug("Testing - scrollTo with 0 arguments"); |
- window.scrollTo(); |
- shouldBe('window.scrollX', 'resetX'); |
- shouldBe('window.scrollY', 'resetY'); |
+ shouldThrow('window.scrollTo()'); |
reset(); |
debug("Testing - scrollTo with 1 argument"); |
- window.scrollTo(x); |
- shouldBe('window.scrollX', 'resetX + x'); |
- shouldBe('window.scrollY', 'resetY'); |
+ shouldThrow('window.scrollTo(x)');; |
reset(); |
debug("Testing - scrollTo with more than 2 arguments"); |
@@ -56,15 +52,11 @@ |
debug(''); |
debug("Testing - scroll with 0 arguments"); |
- window.scroll(); |
- shouldBe('window.scrollX', 'resetX'); |
- shouldBe('window.scrollY', 'resetY'); |
+ shouldThrow('window.scroll()');; |
reset(); |
debug("Testing - scroll with 1 argument"); |
- window.scroll(x); |
- shouldBe('window.scrollX', 'resetX + x'); |
- shouldBe('window.scrollY', 'resetY'); |
+ shouldThrow('window.scroll(x)'); |
reset(); |
debug("Testing - scroll with more than 2 arguments"); |
@@ -79,15 +71,11 @@ |
debug(''); |
debug("Testing - scrollBy with 0 arguments"); |
- window.scrollBy(); |
- shouldBe('window.scrollX', 'resetX'); |
- shouldBe('window.scrollY', 'resetY'); |
+ shouldThrow('window.scrollBy()');; |
reset(); |
debug("Testing - scrollBy with 1 argument"); |
- window.scrollBy(x); |
- shouldBe('window.scrollX', 'resetX + x'); |
- shouldBe('window.scrollY', 'resetY'); |
+ shouldThrow('window.scrollBy(x)'); |
reset(); |
debug("Testing - scrollBy with more than 2 arguments"); |