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

Unified Diff: LayoutTests/canvas/philip/tests/2d.pattern.image.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.pattern.image.null.html
diff --git a/LayoutTests/canvas/philip/tests/2d.pattern.image.null.html b/LayoutTests/canvas/philip/tests/2d.pattern.image.null.html
index af4eed7b544a44f57c1ad5d6f5fdd2596ec6fcb9..260d36fd64fe149f1edf993e6a9bc9a7089aebe0 100644
--- a/LayoutTests/canvas/philip/tests/2d.pattern.image.null.html
+++ b/LayoutTests/canvas/philip/tests/2d.pattern.image.null.html
@@ -14,7 +14,7 @@ _addTest(function(canvas, ctx) {
try { var _thrown = false;
ctx.createPattern(null, 'repeat');
-} 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.createPattern(null, 'repeat')"); }
+} 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.createPattern(null, 'repeat')"); }
});

Powered by Google App Engine
This is Rietveld 408576698