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

Unified Diff: LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html

Issue 237063003: Add StrictTypeChecking to CRC2D ImageData APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 8 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/canvas/canvas-createImageData-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html
diff --git a/LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html b/LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html
index 5adfba08b2c7ca900cb2b5cd03a8e6b53cda0a8e..098f3572d81cc4973d2614a2134aa339058db62e 100644
--- a/LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html
+++ b/LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html
@@ -14,7 +14,7 @@ _addTest(function(canvas, ctx) {
try { var _thrown = false;
ctx.createImageData(null);
-} catch (e) { if (e.code != DOMException.NOT_SUPPORTED_ERR) _fail("Failed assertion: expected exception of type NOT_SUPPORTED_ERR, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type NOT_SUPPORTED_ERR: ctx.createImageData(null)"); }
+} catch (e) { if (!(e instanceof TypeError)) _fail("Failed assertion: expected exception of type TypeError, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type TypeError: ctx.createImageData(null)"); }
});
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-createImageData-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698