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 bytesToString | ( | bytes | ) |
function checkNotSJS | ( | ch, | |
cx, | |||
status, | |||
data | |||
) |
function checkRangeResult | ( | ch, | |
cx | |||
) |
function init | ( | ch | ) |
function onStart | ( | ch, | |
cx | |||
) |
function onStop | ( | ch, | |
cx, | |||
status, | |||
data | |||
) |
function rangeInit | ( | expectedRangeHeader | ) |
Definition at line 191 of file test_sjs.js.
function run_test | ( | ) |
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.
function skipCache | ( | ch | ) |
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.