From 08b6f8ee1e60a610e5528d609f4dd568337e97ab Mon Sep 17 00:00:00 2001 From: Yura Zenevich Date: Thu, 17 Oct 2019 15:14:50 +0000 Subject: [PATCH] Bug 1543575 - provide an option for running accessibility browser chrome e10s tests in fission process. r=Jamie Differential Revision: https://phabricator.services.mozilla.com/D48549 --HG-- extra : moz-landing-system : lando --- accessible/tests/browser/browser.ini | 1 + .../events/browser_test_focus_browserui.js | 2 +- .../events/browser_test_focus_dialog.js | 4 +- .../browser/fission_document_builder.sjs | 60 +++++ accessible/tests/browser/shared-head.js | 251 ++++++++++++++---- 5 files changed, 269 insertions(+), 49 deletions(-) create mode 100644 accessible/tests/browser/fission_document_builder.sjs diff --git a/accessible/tests/browser/browser.ini b/accessible/tests/browser/browser.ini index f1b5516febd1..2ae284541729 100644 --- a/accessible/tests/browser/browser.ini +++ b/accessible/tests/browser/browser.ini @@ -5,6 +5,7 @@ support-files = *.jsm head.js shared-head.js + fission_document_builder.sjs [browser_shutdown_acc_reference.js] skip-if = (os == 'linux' && debug && bits == 64) #Bug 1421307 diff --git a/accessible/tests/browser/events/browser_test_focus_browserui.js b/accessible/tests/browser/events/browser_test_focus_browserui.js index 616f1e908e6f..98fc73526956 100644 --- a/accessible/tests/browser/events/browser_test_focus_browserui.js +++ b/accessible/tests/browser/events/browser_test_focus_browserui.js @@ -19,7 +19,7 @@ async function runTests(browser, accDoc) { onFocus = waitForEvent(EVENT_FOCUS, "buttonInputDoc"); let url = snippetToURL(``, { - id: "buttonInputDoc", + contentDocBodyAttrs: { id: "buttonInputDoc" }, }); browser.loadURI(url, { triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(), diff --git a/accessible/tests/browser/events/browser_test_focus_dialog.js b/accessible/tests/browser/events/browser_test_focus_dialog.js index 01a9f8694e99..71485a678d83 100644 --- a/accessible/tests/browser/events/browser_test_focus_dialog.js +++ b/accessible/tests/browser/events/browser_test_focus_dialog.js @@ -63,7 +63,9 @@ addAccessibleTask( `