PageRenderTime 193ms CodeModel.GetById 130ms app.highlight 5ms RepoModel.GetById 57ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/doc/example-jsunit/jsunit/app/main-results.html

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
HTML | 67 lines | 62 code | 5 blank | 0 comment | 0 complexity | 3d485f0997704af0e844023a05da5bba MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 2<html>
 3<head>
 4    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 5    <title>JsUnit main-results.html</title>
 6    <link rel="stylesheet" type="text/css" href="../css/jsUnitStyle.css">
 7</head>
 8
 9<body>
10<script language="javascript" type="text/javascript">
11    var DEFAULT_SUBMIT_WEBSERVER = "localhost:8080";
12
13    function submitUrlFromSpecifiedUrl() {
14        var result = "";
15        var specifiedUrl = top.getSpecifiedResultUrl();
16        if (specifiedUrl.indexOf("http://") != 0)
17            result = "http://";
18        result += specifiedUrl;
19        return result;
20    }
21
22    function submitUrlFromTestRunnerLocation() {
23        var result = "http://";
24        var webserver = top.getWebserver();
25        if (webserver == null) // running over file:///
26            webserver = DEFAULT_SUBMIT_WEBSERVER;
27        result += webserver;
28        result += "/jsunit/acceptor";
29        return result;
30    }
31
32    var submitUrl = "";
33    if (top.wasResultUrlSpecified()) {
34        submitUrl = submitUrlFromSpecifiedUrl();
35    } else {
36        submitUrl = submitUrlFromTestRunnerLocation();
37    }
38
39    var formString = "<form name=\"resultsForm\" action=\"" + submitUrl + "\" method=\"post\" target=\"_top\">";
40    document.write(formString);
41</script>
42<input type="hidden" name="id">
43<input type="hidden" name="userAgent">
44<input type="hidden" name="jsUnitVersion">
45<input type="hidden" name="time">
46<input type="hidden" name="url">
47<input type="hidden" name="cacheBuster">
48<select size="5" name="testCases" multiple></select>
49</form>
50<script language="javascript" type="text/javascript">
51    function populateHeaderFields(id, userAgent, jsUnitVersion, baseURL) {
52        document.resultsForm.id.value = id;
53        document.resultsForm.userAgent.value = userAgent;
54        document.resultsForm.jsUnitVersion.value = jsUnitVersion;
55        document.resultsForm.url.value = baseURL;
56        document.resultsForm.cacheBuster.value = new Date().getTime();
57    }
58    function submitResults() {
59        var testCasesField = document.resultsForm.testCases;
60        for (var i = 0; i < testCasesField.length; i++) {
61            testCasesField[i].selected = true;
62        }
63        document.resultsForm.submit();
64    }
65</script>
66</body>
67</html>