gecko-dev/toolkit/components/osfile/tests/xpcshell/test_osfile_async.js
David Rajchenbach-Teller fbba29d672 Bug 808428 - Testing that OS.File can be called from xpcshell. r=nfroyd
--HG--
extra : rebase_source : 6dfc9107c4ff2453b47a3df528ca8d0037b91cf8
2012-11-05 07:59:00 -08:00

16 lines
304 B
JavaScript

"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
);
}