test_headers.js File Reference

Go to the source code of this file.

Functions

function assertValidHeader (fieldName, fieldValue, headers)
 
function assertInvalidHeader (fieldName, fieldValue, headers)
 
function run_test ()
 
function testHeaderValidity ()
 
function testGetHeader ()
 
function testHeaderEnumerator ()
 
function testHasHeader ()
 

Function Documentation

function assertInvalidHeader (   fieldName,
  fieldValue,
  headers 
)

Ensures that a fieldname-fieldvalue combination is not a valid header.

Parameters
fieldNamethe name of the header
fieldValuethe value of the header
headersan nsHttpHeaders object to use to check validity

Definition at line 76 of file test_headers.js.

Here is the caller graph for this function:

function assertValidHeader (   fieldName,
  fieldValue,
  headers 
)

Ensures that a fieldname-fieldvalue combination is a valid header.

Parameters
fieldNamethe name of the header
fieldValuethe value of the header
headersan nsHttpHeaders object to use to check validity

Definition at line 54 of file test_headers.js.

Here is the caller graph for this function:

function run_test ( )

Definition at line 92 of file test_headers.js.

Here is the call graph for this function:

function testGetHeader ( )

Definition at line 137 of file test_headers.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function testHasHeader ( )

Definition at line 199 of file test_headers.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function testHeaderEnumerator ( )

Definition at line 172 of file test_headers.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function testHeaderValidity ( )

Definition at line 100 of file test_headers.js.

Here is the call graph for this function:

Here is the caller graph for this function: