test_sjs.js File Reference

Go to the source code of this file.

Functions

function bytesToString (bytes)
 
function skipCache (ch)
 
function setupTests (throwing)
 
function init (ch)
 
function checkNotSJS (ch, cx, status, data)
 
tests push (test)
 
function rangeInit (expectedRangeHeader)
 
function checkRangeResult (ch, cx)
 
function setupFileMapping (ch)
 
function onStart (ch, cx)
 
function onStop (ch, cx, status, data)
 
function run_test ()
 

Variables

const BASE = "http://localhost:4444"
 
var sjs = do_get_file("data/sjs/cgi.sjs")
 
var srv
 
var test = new Test(BASE + "/sjs", init, null, checkNotSJS)
 
var tests = []
 

Function Documentation

function bytesToString (   bytes)

Definition at line 53 of file test_sjs.js.

Here is the caller graph for this function:

function checkNotSJS (   ch,
  cx,
  status,
  data 
)

Definition at line 180 of file test_sjs.js.

Here is the call graph for this function:

function checkRangeResult (   ch,
  cx 
)

Definition at line 199 of file test_sjs.js.

Here is the call graph for this function:

function init (   ch)

Definition at line 172 of file test_sjs.js.

Here is the call graph for this function:

function onStart (   ch,
  cx 
)

Definition at line 245 of file test_sjs.js.

Here is the call graph for this function:

function onStop (   ch,
  cx,
  status,
  data 
)

Definition at line 250 of file test_sjs.js.

Here is the call graph for this function:

tests push ( test  )
function rangeInit (   expectedRangeHeader)

Definition at line 191 of file test_sjs.js.

function run_test ( )

Definition at line 263 of file test_sjs.js.

Here is the call graph for this function:

function setupFileMapping (   ch)

Definition at line 240 of file test_sjs.js.

setupTests ( throwing  )

Adds the set of tests defined in here, differentiating between tests with a SJS which throws an exception and creates a server error and tests with a normal, successful SJS.

Definition at line 73 of file test_sjs.js.

Here is the call graph for this function:

function skipCache (   ch)

Definition at line 58 of file test_sjs.js.

Here is the caller graph for this function:

Variable Documentation

const BASE = "http://localhost:4444"

Definition at line 41 of file test_sjs.js.

var sjs = do_get_file("data/sjs/cgi.sjs")

Definition at line 43 of file test_sjs.js.

var srv

Definition at line 44 of file test_sjs.js.

test = new Test(BASE + "/sjs", init, null, checkNotSJS)

Definition at line 45 of file test_sjs.js.

var tests = []

Definition at line 46 of file test_sjs.js.