Bug 1353992: Re-enable test_flexbox_focus_order.html on mac, with pref-tweak to allow links to be focused with 'tab' there. (no review, test-only)

MozReview-Commit-ID: B6J2QUoMdyx
This commit is contained in:
Daniel Holbert 2017-04-06 22:01:03 -07:00
Родитель 8ff3505864
Коммит 88cfb5bbcf
2 изменённых файлов: 7 добавлений и 2 удалений

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

@ -190,7 +190,6 @@ skip-if = toolkit == 'android' #bug 536603
[test_flexbox_flex_grow_and_shrink.html]
[test_flexbox_flex_shorthand.html]
[test_flexbox_focus_order.html]
skip-if = toolkit == 'cocoa' # bug 1353992
[test_flexbox_layout.html]
support-files = flexbox_layout_testcases.js
[test_flexbox_order.html]

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

@ -68,8 +68,14 @@ function doTest() {
SimpleTest.finish();
}
// Before we start, we have to bump Mac to make its 'tab'-key focus behavior
// predicatble:
function begin() {
SpecialPowers.pushPrefEnv({ set: [[ "accessibility.tabfocus", 7 ]] }, doTest);
}
SimpleTest.waitForExplicitFinish();
addLoadEvent(doTest);
addLoadEvent(begin);
</script>
</pre>