| Index: LayoutTests/fast/events/scale-and-scroll-body.html
|
| diff --git a/LayoutTests/fast/events/scale-and-scroll-body.html b/LayoutTests/fast/events/scale-and-scroll-body.html
|
| index 81bf0d825024ca95a8da68cc9ea82e0ecbd0be56..b2821e1adb17a5596ddd6c88e3caa62c49d6e641 100644
|
| --- a/LayoutTests/fast/events/scale-and-scroll-body.html
|
| +++ b/LayoutTests/fast/events/scale-and-scroll-body.html
|
| @@ -18,11 +18,11 @@
|
| // The page scale, as set by window.eventSender.setPageScaleFactor should not be apparent
|
| // to javascript. So, we expect scrolling to (100,100) to be page coordinates, rather
|
| // than device pixels.
|
| - document.body.scrollLeft = 100;
|
| - document.body.scrollTop = 100;
|
| + document.scrollingElement.scrollLeft = 100;
|
| + document.scrollingElement.scrollTop = 100;
|
|
|
| - shouldBe("window.document.body.scrollTop", "100");
|
| - shouldBe("window.document.body.scrollLeft", "100");
|
| + shouldBe("window.document.scrollingElement.scrollTop", "100");
|
| + shouldBe("window.document.scrollingElement.scrollLeft", "100");
|
| shouldBe("window.scrollX", "100");
|
| shouldBe("window.scrollY", "100");
|
| }
|
| @@ -32,8 +32,8 @@
|
| // Test that the scroll offset changes even if scaleFactor remains
|
| // the same.
|
| window.eventSender.setPageScaleFactor(1, 30, 30);
|
| - shouldBe("window.document.body.scrollTop", "30");
|
| - shouldBe("window.document.body.scrollLeft", "30");
|
| + shouldBe("window.document.scrollingElement.scrollTop", "30");
|
| + shouldBe("window.document.scrollingElement.scrollLeft", "30");
|
| }
|
| }
|
|
|
|
|