Bug 1386807 - Part 4: Add hidden WebExtension window to a11y tests to make them pass r=eeejay
authorDennis Schubert <dschubert@mozilla.com>
Wed, 25 Apr 2018 16:47:30 +0200
changeset 469616 bb6b514d69886a9b7f639859f623f1b5191245de
parent 469615 5e1fe3a9874b5575af9dfc4baf6d42b696aa3d66
child 469617 0d2ed925b49000f0abefb3c03a50e6b4f7e8f8b2
push id9174
push userarchaeopteryx@coole-files.de
push dateMon, 30 Apr 2018 15:33:30 +0000
treeherdermozilla-beta@1b1a8ab75f1f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerseeejay
bugs1386807, 1440106
milestone61.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 1386807 - Part 4: Add hidden WebExtension window to a11y tests to make them pass r=eeejay This is actually a workaround for the test not ignoring hidden windows. There is ongoing work in bug 1440106 that will get rid of this issue altogether, but for now, we need to add hidden windows ourselves. MozReview-Commit-ID: 2rQoz4KLHv3
accessible/tests/mochitest/events/docload/test_docload_root.html
accessible/tests/mochitest/events/docload/test_docload_shutdown.html
--- a/accessible/tests/mochitest/events/docload/test_docload_root.html
+++ b/accessible/tests/mochitest/events/docload/test_docload_root.html
@@ -70,16 +70,19 @@
             {
               role: ROLE_CHROME_WINDOW
             },
             {
               role: ROLE_CHROME_WINDOW
             },
             {
               role: ROLE_CHROME_WINDOW
+            },
+            {
+              role: ROLE_CHROME_WINDOW
             }
           ]
         };
 
         testAccessibleTree(gRootAcc, accTree);
 
         gDialogDoc = gDialog.document;
         ok(isAccessibleInCache(gDialogDoc),
--- a/accessible/tests/mochitest/events/docload/test_docload_shutdown.html
+++ b/accessible/tests/mochitest/events/docload/test_docload_shutdown.html
@@ -86,16 +86,19 @@
             {
               role: ROLE_CHROME_WINDOW
             },
             {
               role: ROLE_CHROME_WINDOW
             },
             {
               role: ROLE_CHROME_WINDOW
+            },
+            {
+              role: ROLE_CHROME_WINDOW
             }
           ]
         };
 
         testAccessibleTree(gRootAcc, accTree);
         // After timeout after event hide for iframe was handled the document
         // accessible for iframe's document should no longer be in cache.
         ok(!isAccessibleInCache(gIframeDoc),