forked from mirrors/gecko-dev
Bug 1415682 - Abort API exposed to System, r=qdot
This commit is contained in:
parent
8088ca91a2
commit
bbddef77bd
6 changed files with 18 additions and 2 deletions
|
|
@ -181,6 +181,7 @@ devtools/server/tests/unit/setBreakpoint*
|
||||||
devtools/server/tests/unit/sourcemapped.js
|
devtools/server/tests/unit/sourcemapped.js
|
||||||
|
|
||||||
# dom/ exclusions
|
# dom/ exclusions
|
||||||
|
dom/abort/**
|
||||||
dom/animation/**
|
dom/animation/**
|
||||||
dom/archivereader/**
|
dom/archivereader/**
|
||||||
dom/asmjscache/**
|
dom/asmjscache/**
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,5 @@
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
MOCHITEST_MANIFESTS += ['mochitest.ini']
|
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
|
* https://dom.spec.whatwg.org/#abortcontroller
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Constructor(), Exposed=(Window,Worker)]
|
[Constructor(), Exposed=(Window,Worker,System)]
|
||||||
interface AbortController {
|
interface AbortController {
|
||||||
readonly attribute AbortSignal signal;
|
readonly attribute AbortSignal signal;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
* https://dom.spec.whatwg.org/#abortsignal
|
* https://dom.spec.whatwg.org/#abortsignal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Exposed=(Window,Worker)]
|
[Exposed=(Window,Worker,System)]
|
||||||
interface AbortSignal : EventTarget {
|
interface AbortSignal : EventTarget {
|
||||||
readonly attribute boolean aborted;
|
readonly attribute boolean aborted;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue