diff options
author | Rogan Creswick <creswick@galois.com> | 2012-03-31 08:08:11 -0700 |
---|---|---|
committer | Rogan Creswick <creswick@galois.com> | 2012-03-31 08:08:11 -0700 |
commit | ec532e93339a942a395829ec87f427852cd72e00 (patch) | |
tree | f6ad13ca7f90f26fda9bc23e428ee367f153e3d2 /tools/addon-sdk-1.4/packages/api-utils/tests/test-httpd.js | |
parent | 780bf48de85215f5b0b6fde0df40599ac6f9c037 (diff) |
removed older addon-sdks from tools
Diffstat (limited to 'tools/addon-sdk-1.4/packages/api-utils/tests/test-httpd.js')
-rw-r--r-- | tools/addon-sdk-1.4/packages/api-utils/tests/test-httpd.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tools/addon-sdk-1.4/packages/api-utils/tests/test-httpd.js b/tools/addon-sdk-1.4/packages/api-utils/tests/test-httpd.js deleted file mode 100644 index 42734c1..0000000 --- a/tools/addon-sdk-1.4/packages/api-utils/tests/test-httpd.js +++ /dev/null @@ -1,28 +0,0 @@ -exports.testBasicHTTPServer = function(test) { - var port = 8080; - var data = require("self").data; - var testFilePath = require("url").toFilename(data.url("test-httpd.txt")); - var basePath = require("file").dirname(testFilePath); - var {startServerAsync} = require("httpd"); - - var srv = startServerAsync(port, basePath); - - test.waitUntilDone(); - - // Request this very file. - var Request = require('request').Request; - Request({ - url: "http://localhost:" + port + "/test-httpd.txt", - onComplete: function (response) { - test.assertEqual(response.text, "This is the HTTPD test file.\n"); - done(); - } - }).get(); - - - function done() { - srv.stop(function() { - test.done(); - }); - } -}; |