Chromium Code Reviews| Index: LayoutTests/fast/css/computed-offset-with-zoom.html |
| diff --git a/LayoutTests/fast/css/computed-offset-with-zoom.html b/LayoutTests/fast/css/computed-offset-with-zoom.html |
| index 921bc1906cc1ba93ec4cb4d7cae06bedd31f7b54..27d8be4f39b3359f272f64b146caec1a4a90e1dc 100644 |
| --- a/LayoutTests/fast/css/computed-offset-with-zoom.html |
| +++ b/LayoutTests/fast/css/computed-offset-with-zoom.html |
| @@ -51,8 +51,8 @@ |
| function test(zoomLevel) |
| { |
| document.body.style.zoom = zoomLevel; |
| - var windowWidth = "'" + (window.innerWidth / 10 / zoomLevel) + "px'"; |
| - var windowHeight = "'" + (window.innerHeight / 10 / zoomLevel) + "px'"; |
| + var windowWidth = "'" + (window.innerWidth / 10) + "px'"; |
|
kenneth.r.christiansen
2013/12/16 10:08:19
So these were just bugs? Do we have tests testing
Timothy Loh
2013/12/17 05:09:15
Err, turns out the test is actually correct alread
Timothy Loh
2013/12/17 22:58:00
Actually I thought about it a bit more and changed
|
| + var windowHeight = "'" + (window.innerHeight / 10) + "px'"; |
| shouldBe("window.getComputedStyle(fixedElement).top", "'100px'"); |
| shouldBe("window.getComputedStyle(fixedElement).right", "'100px'"); |