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

Unified Diff: LayoutTests/canvas/philip/tests/2d.imageData.put.null.html

Issue 234903003: Should throw TypeError instead of TypeMismatchError (canvas) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: LayoutTests/canvas/philip/tests/2d.imageData.put.null.html
diff --git a/LayoutTests/canvas/philip/tests/2d.imageData.put.null.html b/LayoutTests/canvas/philip/tests/2d.imageData.put.null.html
index 85f23a6310255a957b462d0a9c9bc5b13df34c82..42f09051149c84720623b36197819e73932d3813 100644
--- a/LayoutTests/canvas/philip/tests/2d.imageData.put.null.html
+++ b/LayoutTests/canvas/philip/tests/2d.imageData.put.null.html
@@ -14,7 +14,7 @@ _addTest(function(canvas, ctx) {
try { var _thrown = false;
ctx.putImageData(null, 0, 0);
-} catch (e) { if (e.code != DOMException.TYPE_MISMATCH_ERR) _fail("Failed assertion: expected exception of type TYPE_MISMATCH_ERR, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type TYPE_MISMATCH_ERR: ctx.putImageData(null, 0, 0)"); }
+} catch (e) { if (e.name != "TypeError") _fail("Failed assertion: expected exception of type TypeError, got: "+e.name); _thrown = true; } finally { _assert(_thrown, "should throw exception of type TypeError: ctx.putImageData(null, 0, 0)"); }
});
« no previous file with comments | « LayoutTests/canvas/philip/tests/2d.drawImage.null.html ('k') | LayoutTests/canvas/philip/tests/2d.pattern.image.null.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698