Skip to content

Commit

Permalink
Bug 1843694 Default a11y mochitest to runByManifest and set test_math…
Browse files Browse the repository at this point in the history
…ml pref in manifest. r=emilio,ahal

Enabling the preference in the test file seems to be causing some
flakiness, so do it in the manifest instead. Tweak the runner to make
that possible for a11y tests.

Differential Revision: https://phabricator.services.mozilla.com/D183722
  • Loading branch information
fred-wang committed Jul 19, 2023
1 parent 3238601 commit 4cb1405
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions accessible/tests/mochitest/textattrs/a11y.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[DEFAULT]
prefs =
mathml.legacy_mathvariant_attribute.disabled=true
support-files =
!/accessible/tests/mochitest/*.js
!/accessible/tests/mochitest/moz.png
Expand Down
6 changes: 1 addition & 5 deletions accessible/tests/mochitest/textattrs/test_mathml.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@
}

SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv({
set: [["mathml.legacy_mathvariant_attribute.disabled", true]],
}).then(() => {
addA11yLoadEvent(doTest);
});
addA11yLoadEvent(doTest);
</script>
</head>
<body style="font-size: 12pt">
Expand Down
2 changes: 1 addition & 1 deletion testing/mochitest/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4104,7 +4104,7 @@ def run_test_harness(parser, options):
)

options.runByManifest = False
if options.flavor in ("plain", "browser", "chrome"):
if options.flavor in ("plain", "a11y", "browser", "chrome"):
options.runByManifest = True

if options.verify or options.verify_fission:
Expand Down

0 comments on commit 4cb1405

Please sign in to comment.