Bug 979995 - Fix reference to non-existing element and re-enable test. r=surkov
authorRik Cabanier <cabanier@adobe.com>
Fri, 07 Mar 2014 09:00:52 -0500
changeset 172557 0f23c9b295ffc1830cb28e70266e52e259aa8cd0
parent 172556 9a83a9b580ab2b452d2f95e8a5d4bc0aa4746441
child 172558 df96e079c8fedf2eaa1e788e4dac3911a00f1eb2
push id26365
push userryanvm@gmail.com
push dateFri, 07 Mar 2014 20:37:53 +0000
treeherdermozilla-central@cd67334b34c5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs979995
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 979995 - Fix reference to non-existing element and re-enable test. r=surkov
accessible/tests/mochitest/hittest/a11y.ini
accessible/tests/mochitest/hittest/test_canvas_hitregion.html
--- a/accessible/tests/mochitest/hittest/a11y.ini
+++ b/accessible/tests/mochitest/hittest/a11y.ini
@@ -1,13 +1,11 @@
 [DEFAULT]
 support-files = zoom_tree.xul
 
 [test_browser.html]
 [test_canvas_hitregion.html]
-# Disabled everywhere because of failures. It appears this test has
-# never executed since its inception.
-skip-if = true || (os == "android" || appname == "b2g")
+skip-if = (os == "android" || appname == "b2g")
 [test_general.html]
 [test_menu.xul]
 [test_zoom.html]
 [test_zoom_text.html]
 [test_zoom_tree.xul]
--- a/accessible/tests/mochitest/hittest/test_canvas_hitregion.html
+++ b/accessible/tests/mochitest/hittest/test_canvas_hitregion.html
@@ -38,17 +38,17 @@
       if (document.activeElement == element)
         context.drawFocusIfNeeded(element);
       context.addHitRegion({control: element});
       context.restore();
     }
 
     function doTest()
     {
-      getNode("hittest").scrollIntoView(true);
+      getNode("hitcanvas").scrollIntoView(true);
 
       var context = document.getElementById("hitcanvas").getContext('2d');
       redrawCheckbox(context, document.getElementById('hitcheck'), 20, 40);
 
       var hitcanvas = getAccessible("hitcanvas");
       var hitcheck = getAccessible("hitcheck");
 
       var [hitX, hitY, hitWidth, hitHeight] = getBounds(hitcanvas);