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

Unified Diff: LayoutTests/fast/canvas/canvas-lose-restore-googol-size.html

Issue 1350883002: Fix bug where setting canvas size to 0 was treated as if context was lost (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix layout test Created 5 years, 3 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 | « LayoutTests/fast/canvas/bug532148-expected.html ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/canvas-lose-restore-googol-size.html
diff --git a/LayoutTests/fast/canvas/canvas-lose-restore-googol-size.html b/LayoutTests/fast/canvas/canvas-lose-restore-googol-size.html
index 8f1d8a9aaf30e61e7605f127c013c5bff79e609b..f8d7bd12fe96006419438e64465bc2102263226a 100644
--- a/LayoutTests/fast/canvas/canvas-lose-restore-googol-size.html
+++ b/LayoutTests/fast/canvas/canvas-lose-restore-googol-size.html
@@ -19,11 +19,11 @@ var ctx = canvas.getContext('2d');
var lostEventHasFired = false;
verifyContextLost(false);
-var googol = Math.pow(10,100);
-canvas.width = googol;
-canvas.height = googol;
+var bigsize = 1000000000;
+canvas.width = bigsize;
+canvas.height = bigsize;
verifyContextLost(true);
-canvas.width = googol;
+canvas.width = bigsize;
verifyContextLost(true);
canvas.width = 100;
canvas.height = 100;
« no previous file with comments | « LayoutTests/fast/canvas/bug532148-expected.html ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698