test_host.js File Reference

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 Documentation

function check10 (   data)

Definition at line 326 of file test_host.js.

Here is the call graph for this function:

function check10ip (   data)

Definition at line 547 of file test_host.js.

Here is the call graph for this function:

function check11goodHost (   data)

Definition at line 425 of file test_host.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function check11goodHostWackyPort (   data)

Definition at line 584 of file test_host.js.

Here is the call graph for this function:

function check11ipHost (   data)

Definition at line 462 of file test_host.js.

Here is the call graph for this function:

function check400 (   data)

Utility function to check for a 400 response.

Definition at line 297 of file test_host.js.

Here is the call graph for this function:

function checkInaccurate (   data)

Definition at line 529 of file test_host.js.

Here is the call graph for this function:

function checkPrimariesThrow (   id)

Verifies that all .primary* getters on a server identity correctly throw NS_ERROR_NOT_INITIALIZED.

Parameters
id: nsIHttpServerIdentity the server identity to test

Definition at line 258 of file test_host.js.

Here is the caller graph for this function:

function http10Request (   request,
  response 
)

Definition at line 319 of file test_host.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function http11goodHost (   request,
  response 
)

Definition at line 417 of file test_host.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function http11goodHostWackyPort (   request,
  response 
)

Definition at line 576 of file test_host.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function http11ipHost (   request,
  response 
)

Definition at line 454 of file test_host.js.

Here is the call graph for this function:

Here is the caller graph for this function:

tests push ( test  )
function run_test ( )

Definition at line 50 of file test_host.js.

Here is the call graph for this function:

function run_test_2 ( )

Definition at line 127 of file test_host.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function run_test_3 ( )

Definition at line 190 of file test_host.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

data
Initial value:
= "GET /http/1.0-request HTTP/1.0\r\n" +
"\r\n"

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.

test = new RawTest("localhost", PORT, data, check10)

Definition at line 314 of file test_host.js.

var tests = []

Definition at line 315 of file test_host.js.