From 2a8c0625882e402edea42af118470eb565a466a5 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Wed, 9 Sep 2015 00:19:54 -0700 Subject: [PATCH] Add a test for empty arcs --- test/example/emptyArc.js | 12 ++++++++++++ test/playground.html | 4 ++-- test/testrunner.html | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 test/example/emptyArc.js diff --git a/test/example/emptyArc.js b/test/example/emptyArc.js new file mode 100644 index 0000000..0ad71f9 --- /dev/null +++ b/test/example/emptyArc.js @@ -0,0 +1,12 @@ +window.C2S_EXAMPLES['emptyArc'] = function(ctx) { + + // Draw shapes + for (i = 0; i < 4; i++) { + for (j = 0; j < 3; j++) { + ctx.beginPath(); + ctx.arc(100, 100, 100, Math.PI, Math.PI); + ctx.fill(); + } + } + +}; diff --git a/test/playground.html b/test/playground.html index 6ccf53c..ab1cad2 100644 --- a/test/playground.html +++ b/test/playground.html @@ -20,7 +20,7 @@
- +
@@ -64,7 +64,7 @@ -
+
-
+