X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FLayoutTests%2Ffast%2Fcanvas%2Fscript-tests%2Fcanvas-isPointInPath-winding.js;h=aa03bcb9dffbbccae21f6abdc0f5e9bf2b56bfef;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=20c8a01186262f320a832f1b750afd472c1aad6b;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js b/src/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js index 20c8a01..aa03bcb 100644 --- a/src/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js +++ b/src/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js @@ -79,6 +79,24 @@ function prepareTestScenario() { shouldThrow("ctx.isPointInPath({}, 50, 50, 'nonzero')"); shouldThrow("ctx.isPointInPath({}, 50, 50, 'evenodd')"); debug(''); + + debug("Testing extremely large scale") + ctx.save(); + ctx.scale(Number.MAX_VALUE, Number.MAX_VALUE); + ctx.beginPath(); + ctx.rect(-10, -10, 20, 20); + shouldBeTrue("ctx.isPointInPath(0, 0, 'nonzero')"); + shouldBeTrue("ctx.isPointInPath(0, 0, 'evenodd')"); + ctx.restore(); + + debug("Check with non-invertible ctm.") + ctx.save(); + ctx.scale(0, 0); + ctx.beginPath(); + ctx.rect(-10, -10, 20, 20); + shouldBeFalse("ctx.isPointInPath(0, 0, 'nonzero')"); + shouldBeFalse("ctx.isPointInPath(0, 0, 'evenodd')"); + ctx.restore(); } // Run test and allow variation of results.