mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
Bug 1415682 - Abort API exposed to System, r=qdot
This commit is contained in:
parent
8088ca91a2
commit
bbddef77bd
@ -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/**
|
||||
|
@ -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']
|
||||
|
8
dom/abort/tests/unit/test_abort.js
Normal file
8
dom/abort/tests/unit/test_abort.js
Normal file
@ -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);
|
||||
}
|
5
dom/abort/tests/unit/xpcshell.ini
Normal file
5
dom/abort/tests/unit/xpcshell.ini
Normal file
@ -0,0 +1,5 @@
|
||||
[DEFAULT]
|
||||
head =
|
||||
support-files =
|
||||
|
||||
[test_abort.js]
|
@ -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;
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
* https://dom.spec.whatwg.org/#abortsignal
|
||||
*/
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
[Exposed=(Window,Worker,System)]
|
||||
interface AbortSignal : EventTarget {
|
||||
readonly attribute boolean aborted;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user