Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / canvas / script-tests / canvas-overloads-drawImage.js
index 94ebd42..9db3cc5 100644 (file)
@@ -6,7 +6,7 @@ function ExpectedNotEnoughArgumentsMessage(num) {
     return "\"TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': 3 arguments required, but only " + num + " present.\"";
 }
 
-var TypeError = '"TypeError: Failed to execute \'drawImage\' on \'CanvasRenderingContext2D\': No function was found that matched the signature provided."';
+var TypeError = "TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.";
 
 var imageElement = document.createElement("img");
 shouldThrow("ctx.drawImage()", ExpectedNotEnoughArgumentsMessage(0));
@@ -31,6 +31,6 @@ shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0)", "undefined");
 shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0)", "TypeError");
 shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0)", "TypeError");
 shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0)", "TypeError");
-shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0)", '"IndexSizeError: Failed to execute \'drawImage\' on \'CanvasRenderingContext2D\': The source width is 0."');
+shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
 shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "TypeError");
 shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "TypeError");