Index: LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js |
diff --git a/LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js b/LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js |
index f29b8f316d08504a32d150c207471c8f64fa8779..81b284e9c21c30aceb038588cafad57e641dc532 100644 |
--- a/LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js |
+++ b/LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js |
@@ -3,10 +3,10 @@ description("Test the argument bounds of canvas createImageData."); |
var canvas = document.getElementById('canvas'); |
var ctx = canvas.getContext('2d'); |
-shouldThrow("ctx.createImageData(Infinity, Infinity)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.createImageData(Infinity, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.createImageData(-Infinity, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.createImageData(10, Infinity)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.createImageData(10, -Infinity)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.createImageData(NaN, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.createImageData(10, NaN)", '"Error: NotSupportedError: DOM Exception 9"'); |
+shouldThrow("ctx.createImageData(Infinity, Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.createImageData(Infinity, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.createImageData(-Infinity, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.createImageData(10, Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.createImageData(10, -Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.createImageData(NaN, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.createImageData(10, NaN)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |