From 4d0d3804b9fa60b7133f164e587d1e089ac330ac Mon Sep 17 00:00:00 2001 From: Rik Cabanier Date: Fri, 21 Feb 2014 08:38:02 -0500 Subject: [PATCH] Bug 966591 - Part 7: Bounds + error handling tests. r=surkov --- accessible/tests/mochitest/elm/a11y.ini | 1 + .../tests/mochitest/elm/test_canvas.html | 55 +++++++++++++++++++ content/canvas/test/test_canvas.html | 48 ++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 accessible/tests/mochitest/elm/test_canvas.html diff --git a/accessible/tests/mochitest/elm/a11y.ini b/accessible/tests/mochitest/elm/a11y.ini index 318dee0d1d4..749cb4f4deb 100644 --- a/accessible/tests/mochitest/elm/a11y.ini +++ b/accessible/tests/mochitest/elm/a11y.ini @@ -5,3 +5,4 @@ [test_listbox.xul] [test_nsApplicationAcc.html] [test_plugin.html] +[test_canvas.html] diff --git a/accessible/tests/mochitest/elm/test_canvas.html b/accessible/tests/mochitest/elm/test_canvas.html new file mode 100644 index 00000000000..d1245ba1bbe --- /dev/null +++ b/accessible/tests/mochitest/elm/test_canvas.html @@ -0,0 +1,55 @@ + + + + Accessible boundaries for hit regions + + + + + + + + + + + + + + + + + + + diff --git a/content/canvas/test/test_canvas.html b/content/canvas/test/test_canvas.html index c73a4ac2003..1402fb7b595 100644 --- a/content/canvas/test/test_canvas.html +++ b/content/canvas/test/test_canvas.html @@ -8,6 +8,7 @@ SimpleTest.waitForExplicitFinish(); const Cc = SpecialPowers.Cc; const Cr = SpecialPowers.Cr; +SpecialPowers.setBoolPref("canvas.hitregions.enabled", true); function IsD2DEnabled() { var enabled = false; @@ -21577,6 +21578,46 @@ function test_linedash() { } +

Canvas test: hit regions

+ + + + + + +