diff --git a/accessible/tests/mochitest/elm/a11y.ini b/accessible/tests/mochitest/elm/a11y.ini index 318dee0d1d45..749cb4f4deb5 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 000000000000..d1245ba1bbea --- /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 c73a4ac20032..1402fb7b5953 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

+ + + + + + +