mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 808428 - Testing that OS.File can be called from xpcshell. r=nfroyd
--HG-- extra : rebase_source : 6dfc9107c4ff2453b47a3df528ca8d0037b91cf8
This commit is contained in:
parent
6a3d40f2ec
commit
626301fbda
@ -99,6 +99,7 @@ skip-if = os == "android"
|
||||
[include:browser/devtools/shared/test/unit/xpcshell.ini]
|
||||
[include:extensions/spellcheck/hunspell/tests/unit/xpcshell.ini]
|
||||
[include:toolkit/components/search/tests/xpcshell/xpcshell.ini]
|
||||
[include:toolkit/components/osfile/tests/xpcshell/xpcshell.ini]
|
||||
[include:toolkit/mozapps/shared/test/unit/xpcshell.ini]
|
||||
[include:services/crypto/component/tests/unit/xpcshell.ini]
|
||||
[include:layout/tools/layout-debug/tests/unit/xpcshell.ini]
|
||||
|
@ -11,5 +11,7 @@ relativesrcdir = @relativesrcdir@
|
||||
MODULE = test_osfile
|
||||
DIRS = mochi
|
||||
|
||||
XPCSHELL_TESTS = xpcshell
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
Components.utils.import("resource://gre/modules/osfile.jsm");
|
||||
|
||||
/**
|
||||
* A trivial test ensuring that we can call osfile from xpcshell.
|
||||
* (see bug 808161)
|
||||
*/
|
||||
|
||||
function run_test() {
|
||||
do_test_pending();
|
||||
OS.File.getCurrentDirectory().then(
|
||||
do_test_finished,
|
||||
do_test_finished
|
||||
);
|
||||
}
|
5
toolkit/components/osfile/tests/xpcshell/xpcshell.ini
Normal file
5
toolkit/components/osfile/tests/xpcshell/xpcshell.ini
Normal file
@ -0,0 +1,5 @@
|
||||
[DEFAULT]
|
||||
head =
|
||||
tail =
|
||||
|
||||
[test_osfile_async.js]
|
Loading…
Reference in New Issue
Block a user