forked from mirrors/gecko-dev
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35919 --HG-- extra : source : afa5bd771feba466ba7670c58f3d93233a14e202
18 lines
415 B
JavaScript
18 lines
415 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
/**
|
|
* Ensure httpd.js can be imported as a module and that a server starts.
|
|
*/
|
|
function run_test() {
|
|
const { HttpServer } = ChromeUtils.import(
|
|
"resource://testing-common/httpd.js"
|
|
);
|
|
|
|
let server = new HttpServer();
|
|
server.start(-1);
|
|
|
|
do_test_pending();
|
|
|
|
server.stop(do_test_finished);
|
|
}
|