Index: LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html |
diff --git a/LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html b/LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html |
index 5adfba08b2c7ca900cb2b5cd03a8e6b53cda0a8e..098f3572d81cc4973d2614a2134aa339058db62e 100644 |
--- a/LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html |
+++ b/LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html |
@@ -14,7 +14,7 @@ _addTest(function(canvas, ctx) { |
try { var _thrown = false; |
ctx.createImageData(null); |
-} catch (e) { if (e.code != DOMException.NOT_SUPPORTED_ERR) _fail("Failed assertion: expected exception of type NOT_SUPPORTED_ERR, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type NOT_SUPPORTED_ERR: ctx.createImageData(null)"); } |
+} catch (e) { if (!(e instanceof TypeError)) _fail("Failed assertion: expected exception of type TypeError, got: "+e.message); _thrown = true; } finally { _assert(_thrown, "should throw exception of type TypeError: ctx.createImageData(null)"); } |
}); |