Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Unified Diff: LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test-expected.txt

Issue 346003007: Add fillRule option for hit regions on canvas2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test-expected.txt
diff --git a/LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test-expected.txt b/LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..525683e8a097018375443266f00a7fe229b066a1
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test-expected.txt
@@ -0,0 +1,34 @@
+default fillRule(nonzero):
+PASS clickCanvas(1, 1) is 'nonzero'
+PASS clickCanvas(99, 98) is 'nonzero'
+PASS clickCanvas(21, 21) is 'nonzero'
+PASS clickCanvas(50, 50) is 'nonzero'
+
+fillRule = evenodd:
+PASS clickCanvas(1, 1) is 'evenodd'
+PASS clickCanvas(99, 98) is 'evenodd'
+PASS clickCanvas(21, 21) is null
+PASS clickCanvas(50, 50) is null
+
+fillRule = nonzero:
+PASS clickCanvas(1, 1) is 'nonzero'
+PASS clickCanvas(99, 98) is 'nonzero'
+PASS clickCanvas(21, 21) is 'nonzero'
+PASS clickCanvas(50, 50) is 'nonzero'
+
+fillRule = null, falls back to default (nonzero):
+PASS clickCanvas(1, 1) is 'nonzero'
+PASS clickCanvas(99, 98) is 'nonzero'
+PASS clickCanvas(21, 21) is 'nonzero'
+PASS clickCanvas(50, 50) is 'nonzero'
+
+fillRule = undefined, falls back to default (nonzero):
+PASS clickCanvas(1, 1) is 'nonzero'
+PASS clickCanvas(99, 98) is 'nonzero'
+PASS clickCanvas(21, 21) is 'nonzero'
+PASS clickCanvas(50, 50) is 'nonzero'
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test.html ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698