blob: 53718055e16543ea4305335d6f09f27979f70c90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* 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);
}
|