diff --git a/.eslintignore b/.eslintignore index b6a27c783443..b4c6ab83cce6 100644 --- a/.eslintignore +++ b/.eslintignore @@ -181,6 +181,7 @@ devtools/server/tests/unit/setBreakpoint* devtools/server/tests/unit/sourcemapped.js # dom/ exclusions +dom/abort/** dom/animation/** dom/archivereader/** dom/asmjscache/** diff --git a/dom/abort/tests/moz.build b/dom/abort/tests/moz.build index 3b13ba431aa9..9df9dda57ecd 100644 --- a/dom/abort/tests/moz.build +++ b/dom/abort/tests/moz.build @@ -5,3 +5,5 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. MOCHITEST_MANIFESTS += ['mochitest.ini'] + +XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini'] diff --git a/dom/abort/tests/unit/test_abort.js b/dom/abort/tests/unit/test_abort.js new file mode 100644 index 000000000000..1c355512c672 --- /dev/null +++ b/dom/abort/tests/unit/test_abort.js @@ -0,0 +1,8 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +function run_test() { + let ac = new AbortController(); + do_check_true(ac instanceof AbortController); + do_check_true(ac.signal instanceof AbortSignal); +} diff --git a/dom/abort/tests/unit/xpcshell.ini b/dom/abort/tests/unit/xpcshell.ini new file mode 100644 index 000000000000..219daa771ab4 --- /dev/null +++ b/dom/abort/tests/unit/xpcshell.ini @@ -0,0 +1,5 @@ +[DEFAULT] +head = +support-files = + +[test_abort.js] diff --git a/dom/webidl/AbortController.webidl b/dom/webidl/AbortController.webidl index 10cd4b67d6e3..19a8f8a63733 100644 --- a/dom/webidl/AbortController.webidl +++ b/dom/webidl/AbortController.webidl @@ -7,7 +7,7 @@ * https://dom.spec.whatwg.org/#abortcontroller */ -[Constructor(), Exposed=(Window,Worker)] +[Constructor(), Exposed=(Window,Worker,System)] interface AbortController { readonly attribute AbortSignal signal; diff --git a/dom/webidl/AbortSignal.webidl b/dom/webidl/AbortSignal.webidl index be8adc70b4b4..6b66f76c4cd9 100644 --- a/dom/webidl/AbortSignal.webidl +++ b/dom/webidl/AbortSignal.webidl @@ -7,7 +7,7 @@ * https://dom.spec.whatwg.org/#abortsignal */ -[Exposed=(Window,Worker)] +[Exposed=(Window,Worker,System)] interface AbortSignal : EventTarget { readonly attribute boolean aborted;