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)"); } |
}); |