From 88cfb5bbcf1d44d602e5985e898ef8cea3ccbba9 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Thu, 6 Apr 2017 22:01:03 -0700 Subject: [PATCH] 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 --- layout/style/test/mochitest.ini | 1 - layout/style/test/test_flexbox_focus_order.html | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/layout/style/test/mochitest.ini b/layout/style/test/mochitest.ini index 2e47e98df6aa..9293545eea0d 100644 --- a/layout/style/test/mochitest.ini +++ b/layout/style/test/mochitest.ini @@ -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] diff --git a/layout/style/test/test_flexbox_focus_order.html b/layout/style/test/test_flexbox_focus_order.html index 75bd7a9040eb..59aacd88d534 100644 --- a/layout/style/test/test_flexbox_focus_order.html +++ b/layout/style/test/test_flexbox_focus_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);