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

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

Issue 768793002: Revert of IDL: Null values should be converted for non-nullable dictionary members (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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.html
diff --git a/LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test.html b/LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test.html
index 591f7318610c6bad14b844a377ccbb5ae80872cf..5bdbe3cefd829c92a2ee17d099eabca1a6da0be4 100644
--- a/LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test.html
+++ b/LayoutTests/fast/canvas/canvas-hit-regions-fill-rule-test.html
@@ -77,7 +77,19 @@
context.removeHitRegion("nonzero");
- shouldThrow('context.addHitRegion({id : "nonzero", fillRule : null });');
+ context.addHitRegion({
+ id : "nonzero",
+ fillRule : null
+ });
+
+ debug("fillRule = null, falls back to default (nonzero):");
+ shouldBe("clickCanvas(1, 1)", "'nonzero'");
+ shouldBe("clickCanvas(99, 98)", "'nonzero'");
+ shouldBe("clickCanvas(21, 21)", "'nonzero'");
+ shouldBe("clickCanvas(50, 50)", "'nonzero'");
+ debug("");
+
+ context.removeHitRegion("nonzero");
context.addHitRegion({
id : "nonzero",

Powered by Google App Engine
This is Rietveld 408576698