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