Go to the source code of this file.
Functions | |
| function | run_test () |
| function | run_test_2 () |
| function | run_test_3 () |
| function | checkPrimariesThrow (id) |
| function | check400 (data) |
| function | http10Request (request, response) |
| function | check10 (data) |
| tests | push (test) |
| function | http11goodHost (request, response) |
| function | check11goodHost (data) |
| function | http11ipHost (request, response) |
| function | check11ipHost (data) |
| function | checkInaccurate (data) |
| function | check10ip (data) |
| function | http11goodHostWackyPort (request, response) |
| function | check11goodHostWackyPort (data) |
Variables | |
| const | PORT = 4444 |
| const | FAKE_PORT_ONE = 8888 |
| const | FAKE_PORT_TWO = 8889 |
| var | srv |
| var | id |
| const | HTTP_400_LEADER = "HTTP/1.1 400 " |
| const | HTTP_400_LEADER_LENGTH = HTTP_400_LEADER.length |
| var | test = new RawTest("localhost", PORT, data, check10) |
| var | data |
| var | tests = [] |
| function check10 | ( | data | ) |
| function check10ip | ( | data | ) |
| function check11goodHost | ( | data | ) |
Definition at line 425 of file test_host.js.
| function check11goodHostWackyPort | ( | data | ) |
| function check11ipHost | ( | data | ) |
| function check400 | ( | data | ) |
Utility function to check for a 400 response.
Definition at line 297 of file test_host.js.
| function checkInaccurate | ( | data | ) |
| function checkPrimariesThrow | ( | id | ) |
Verifies that all .primary* getters on a server identity correctly throw NS_ERROR_NOT_INITIALIZED.
| id | : nsIHttpServerIdentity the server identity to test |
Definition at line 258 of file test_host.js.
| function http10Request | ( | request, | |
| response | |||
| ) |
Definition at line 319 of file test_host.js.
| function http11goodHost | ( | request, | |
| response | |||
| ) |
Definition at line 417 of file test_host.js.
| function http11goodHostWackyPort | ( | request, | |
| response | |||
| ) |
Definition at line 576 of file test_host.js.
| function http11ipHost | ( | request, | |
| response | |||
| ) |
Definition at line 454 of file test_host.js.
| function run_test | ( | ) |
| function run_test_2 | ( | ) |
Definition at line 127 of file test_host.js.
| function run_test_3 | ( | ) |
Definition at line 190 of file test_host.js.
| data |
Definition at line 314 of file test_host.js.
| const FAKE_PORT_ONE = 8888 |
Definition at line 45 of file test_host.js.
| const FAKE_PORT_TWO = 8889 |
Definition at line 46 of file test_host.js.
| const HTTP_400_LEADER = "HTTP/1.1 400 " |
Definition at line 311 of file test_host.js.
| const HTTP_400_LEADER_LENGTH = HTTP_400_LEADER.length |
Definition at line 312 of file test_host.js.
| var id |
Definition at line 48 of file test_host.js.
| const PORT = 4444 |
Tests that the scheme, host, and port of the server are correctly recorded and used in HTTP requests and responses.
Definition at line 44 of file test_host.js.
| var srv |
Definition at line 48 of file test_host.js.
Definition at line 314 of file test_host.js.
| var tests = [] |
Definition at line 315 of file test_host.js.