Index: LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js |
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js b/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js |
index 9b4fcadec4538fc022485a4b1bb1295c9f504f77..00884a7e751b899939fab6972043bc6514aebdba 100644 |
--- a/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js |
+++ b/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js |
@@ -2,17 +2,17 @@ description("Test the handling of invalid arguments in canvas getImageData()."); |
ctx = document.createElement('canvas').getContext('2d'); |
-shouldThrow("ctx.getImageData(NaN, 10, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, NaN, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, 10, NaN, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, 10, 10, NaN)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(Infinity, 10, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, Infinity, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, 10, Infinity, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, 10, 10, Infinity)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(undefined, 10, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, undefined, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, 10, undefined, 10)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, 10, 10, undefined)", '"Error: NotSupportedError: DOM Exception 9"'); |
-shouldThrow("ctx.getImageData(10, 10, 0, 10)", '"Error: IndexSizeError: DOM Exception 1"'); |
-shouldThrow("ctx.getImageData(10, 10, 10, 0)", '"Error: IndexSizeError: DOM Exception 1"'); |
+shouldThrow("ctx.getImageData(NaN, 10, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, NaN, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, 10, NaN, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, 10, 10, NaN)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(Infinity, 10, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, Infinity, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, 10, Infinity, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, 10, 10, Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(undefined, 10, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, undefined, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, 10, undefined, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, 10, 10, undefined)", '"NotSupportedError: The implementation did not support the requested type of object or operation."'); |
+shouldThrow("ctx.getImageData(10, 10, 0, 10)", '"IndexSizeError: Index or size was negative, or greater than the allowed value."'); |
+shouldThrow("ctx.getImageData(10, 10, 10, 0)", '"IndexSizeError: Index or size was negative, or greater than the allowed value."'); |