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

Unified Diff: LayoutTests/canvas/philip/tests/2d.drawImage.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
« no previous file with comments | « no previous file | LayoutTests/canvas/philip/tests/2d.imageData.put.null.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/canvas/philip/tests/2d.drawImage.null.html
diff --git a/LayoutTests/canvas/philip/tests/2d.drawImage.null.html b/LayoutTests/canvas/philip/tests/2d.drawImage.null.html
index 96802274aa25222a39c2484b2244f180bd047443..8a6c9e0e35209dd6dddc8bf22bdc8ac5a4048fb1 100644
--- a/LayoutTests/canvas/philip/tests/2d.drawImage.null.html
+++ b/LayoutTests/canvas/philip/tests/2d.drawImage.null.html
@@ -14,7 +14,7 @@ _addTest(function(canvas, ctx) {
try { var _thrown = false;
ctx.drawImage(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.drawImage(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.drawImage(null, 0, 0)"); }
});
« no previous file with comments | « no previous file | LayoutTests/canvas/philip/tests/2d.imageData.put.null.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698