Bug 1602692: Enable a11y tests for Fission which depend on TakeFocus. r=yzen

nsFocusManager::SetFocus (and thus Accessible::TakeFocus) was fixed for Fission in bug 1556627.
Most of these tests now pass without modification.
browser_caching_value.js needed to be tweaked slightly to synthesize a key in the OOP iframe instead of the top level document.

Differential Revision: https://phabricator.services.mozilla.com/D64254

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Teh 2020-02-26 00:36:02 +00:00
Родитель a53a9a89f5
Коммит 515c09fa73
3 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -15,20 +15,17 @@ support-files =
# Caching tests
[browser_caching_attributes.js]
skip-if = fission # Bug 1556627
[browser_caching_description.js]
[browser_caching_name.js]
skip-if = (os == "linux" && bits == 64) || (debug && os == "mac") || (debug && os == "win") #Bug 1388256
[browser_caching_relations.js]
[browser_caching_states.js]
[browser_caching_value.js]
skip-if = fission # Bug 1556627
# Events tests
[browser_events_announcement.js]
skip-if = e10s && os == 'win' # Bug 1288839
[browser_events_caretmove.js]
skip-if = fission # Bug 1556627
[browser_events_hide.js]
[browser_events_show.js]
[browser_events_statechange.js]
@ -52,7 +49,6 @@ skip-if = e10s && os == 'win' # Bug 1288839
[browser_treeupdate_optgroup.js]
[browser_treeupdate_removal.js]
[browser_treeupdate_select_dropdown.js]
skip-if = fission # Bug 1556627
[browser_treeupdate_table.js]
[browser_treeupdate_textleaf.js]
[browser_treeupdate_visibility.js]

Просмотреть файл

@ -136,7 +136,13 @@ const valueTests = [
id: "range",
async action(browser) {
await invokeFocus(browser, "range");
await BrowserTestUtils.synthesizeKey("VK_LEFT", {}, browser);
await invokeContentTask(browser, [], () => {
const { ContentTaskUtils } = ChromeUtils.import(
"resource://testing-common/ContentTaskUtils.jsm"
);
const EventUtils = ContentTaskUtils.getEventUtils(content);
EventUtils.synthesizeKey("VK_LEFT", {}, content);
});
},
waitFor: EVENT_VALUE_CHANGE,
expected: "5",

Просмотреть файл

@ -12,4 +12,3 @@ support-files =
[browser_reframe_visibility.js]
[browser_src_change.js]
[browser_take_focus.js]
skip-if = fission # Bug 1556627