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

Unified Diff: LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html

Issue 879913003: Use IntRect instead of FloatRect for window positions and sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added FIXME comments Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/window-resize-and-move-arguments-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html
diff --git a/LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html b/LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html
index 28f6876616b709ac1c5118f9bf6ade93542ba666..01693ef4713335994e3ec1924b39022b621f8fab 100644
--- a/LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html
+++ b/LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html
@@ -17,7 +17,7 @@
function reset()
{
- window.moveTo(0, 0);
+ window.moveTo(screen.availLeft + 100, screen.availTop + 100);
window.resizeTo(300, 200);
resetWidth = window.outerWidth;
resetHeight = window.outerHeight;
@@ -87,14 +87,14 @@
debug("Testing - moveTo with 0 arguments");
window.moveTo();
- shouldBe('window.screenX', 'screen.availLeft');
- shouldBe('window.screenY', 'screen.availTop');
+ shouldBe('window.screenX', 'resetX');
+ shouldBe('window.screenY', 'resetY');
reset();
debug("Testing - moveTo with 1 argument");
window.moveTo(x);
shouldBe('window.screenX', 'Math.max(x, screen.availLeft)');
- shouldBe('window.screenY', 'screen.availTop');
+ shouldBe('window.screenY', 'resetY');
reset();
debug("Testing - moveTo with more than 2 arguments");
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/window-resize-and-move-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698