Code Search for Developers
 
 
  

testRunner.html from cruisecontrol at Krugle


Show testRunner.html syntax highlighted

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JsUnit Test Runner</title>
<script language="JavaScript" type="text/javascript" src="app/xbDebug.js"></script>
<script language="JavaScript" type="text/javascript" src="app/jsUnitCore.js"></script>
<script language="JavaScript" type="text/javascript">
    var DEFAULT_TEST_FRAME_HEIGHT = 250;

    function jsUnitParseParms(string) {
        var i;
        var searchString = unescape(string);
        var parameterHash = new Object();

        if (!searchString) {
            return parameterHash;
        }

        i = searchString.indexOf('?');
        if (i != -1) {
            searchString = searchString.substring(i + 1);
        }

        var parmList = searchString.split('&');
        var a;
        for (i = 0; i < parmList.length; i++) {
            a = parmList[i].split('=');
            a[0] = a[0].toLowerCase();
            if (a.length > 1) {
                parameterHash[a[0]] = a[1];
            }
            else {
                parameterHash[a[0]] = true;
            }
        }
        return parameterHash;
    }

    function jsUnitConstructTestParms() {
        var p;
        var parms = '';

        for (p in jsUnitParmHash) {
            var value = jsUnitParmHash[p];

            if (!value ||
                p == 'testpage' ||
                p == 'autorun' ||
                p == 'submitresults' ||
                p == 'showtestframe' ||
                p == 'resultid') {
                continue;
            }

            if (parms) {
                parms += '&';
            }

            parms += p;

            if (typeof(value) != 'boolean') {
                parms += '=' + value;
            }
        }
        return escape(parms);
    }

    var jsUnitParmHash = jsUnitParseParms(document.location.search);

    // set to true to turn debugging code on, false to turn it off.
    xbDEBUG.on = jsUnitGetParm('debug') ? true : false;
</script>

<script language="JavaScript" type="text/javascript" src="app/jsUnitTestManager.js"></script>
<script language="JavaScript" type="text/javascript" src="app/jsUnitTracer.js"></script>
<script language="JavaScript" type="text/javascript" src="app/jsUnitTestSuite.js"></script>
<script language="JavaScript" type="text/javascript">

    var testManager;
    var utility;
    var tracer;


    if (!Array.prototype.push) {
        Array.prototype.push = function (anObject) {
            this[this.length] = anObject;
        }
    }

    if (!Array.prototype.pop) {
        Array.prototype.pop = function () {
            if (this.length > 0) {
                delete this[this.length - 1];
                this.length--;
            }
        }
    }

    function shouldKickOffTestsAutomatically() {
        return jsUnitGetParm('autorun') == "true";
    }

    function shouldShowTestFrame() {
        return jsUnitGetParm('showtestframe');
    }

    function shouldSubmitResults() {
        return jsUnitGetParm('submitresults');
    }

    function getResultId() {
        if (jsUnitGetParm('resultid'))
            return jsUnitGetParm('resultid');
        return "";
    }

    function submitResults() {
        window.mainFrame.mainData.document.testRunnerForm.runButton.disabled = true;
        window.mainFrame.mainResults.populateHeaderFields(getResultId(), navigator.userAgent, JSUNIT_VERSION, testManager.resolveUserEnteredTestFileName());
        window.mainFrame.mainResults.submitResults();
    }

    function wasResultUrlSpecified() {
        return shouldSubmitResults() && jsUnitGetParm('submitresults') != 'true';
    }

    function getSpecifiedResultUrl() {
        return jsUnitGetParm('submitresults');
    }

    function init() {
        var testRunnerFrameset = document.getElementById('testRunnerFrameset');
        if (shouldShowTestFrame() && testRunnerFrameset) {
            var testFrameHeight;
            if (jsUnitGetParm('showtestframe') == 'true')
                testFrameHeight = DEFAULT_TEST_FRAME_HEIGHT;
            else
                testFrameHeight = jsUnitGetParm('showtestframe');
            testRunnerFrameset.rows = '*,0,' + testFrameHeight;
        }
        testManager = new jsUnitTestManager();
        tracer = new JsUnitTracer(testManager);
        if (shouldKickOffTestsAutomatically()) {
            window.mainFrame.mainData.kickOffTests();
        }
    }


</script>
</head>

<frameset id="testRunnerFrameset" rows="*,0,0" border="0" onload="init()">

    <frame frameborder="0" name="mainFrame" src="./app/main-frame.html">
    <frame frameborder="0" name="documentLoader" src="./app/main-loader.html">
    <frame frameborder="0" name="testContainer" src="./app/testContainer.html">

    <noframes>
        <body>
        <p>Sorry, JsUnit requires support for frames.</p>
        </body>
    </noframes>
</frameset>

</html>



See more files for this project here

cruisecontrol

CruiseControl is a framework for a continuous build process. It includes, but is not limited to, plugins for email notification, Ant, and various source control tools. A web interface is provided to view the details of the current and previous builds.

Project homepage: http://sourceforge.net/projects/cruisecontrol
Programming language(s): Java,XML
License: other

  app/
    css/
      jsUnitStyle.css
      readme
    emptyPage.html
    jsTestHelper.js
    jsUnitCore.js
    jsUnitMockTimeout.js
    jsUnitTestManager.js
    jsUnitTestSuite.js
    jsUnitTracer.js
    jsUnitVersionCheck.js
    main-counts-errors.html
    main-counts-failures.html
    main-counts-runs.html
    main-counts.html
    main-data.html
    main-errors.html
    main-frame.html
    main-loader.html
    main-progress.html
    main-results.html
    main-status.html
    testContainer.html
    testContainerController.html
    xbDebug.js
  css/
    jsUnitStyle.css
  images/
    green.gif
    logo_jsunit.gif
    powerby-transparent.gif
    red.gif
  java/
    bin/
    config/
      farm_xwork.xml
      xwork.xml
    lib/
      ant.jar
      commons-el.jar
      commons-logging.jar
      jasper-compiler.jar
      jasper-runtime.jar
      javax.servlet.jar
      jdom.jar
      jsunit.jar
      junit.jar
      ognl.jar
      org.mortbay.jetty.jar
      oscore.jar
      rife-continuations.jar
      start.jar
      stop.jar
      webwork-2.2-beta-4.jar
      xercesImpl-2.6.2.jar
      xwork-1.1.jar
  licenses/
    JDOM_license.txt
    Jetty_license.html
    MPL-1.1.txt
    gpl-2.txt
    index.html
    lgpl-2.1.txt
    mpl-tri-license-c.txt
    mpl-tri-license-html.txt
  tests/
    ajax_periodical_refresh_active_build_executer_test.html
    ajax_periodical_refresh_active_build_output_executer_oncomplete_test.html
    ajax_periodical_refresh_dashboard_executer_oncomplete_test.html
    ajax_periodical_refresh_dashboard_update_inactive_partial_links_test.htm
    ajax_periodical_refresh_dashboard_update_project_box_test.html
    ajax_refresh_active_build_commit_message_test.html
    ajax_tree_navigator_test.html
    ajax_update_icons_and_invoke_callback_function_test.html
    build_bar_observer_test.html
    build_detail_toggle_tab_content_test.html
    build_profile_observer_test.html
    build_profile_test.html
    cc_status_observer_test.html
    clean_text_node_test.html
    display_toolkit_test.html
    escape_project_name_test.html
    eval_timer_object_test.html
    evaluate_time_to_seconds_test.html
    get_link_by_building_status_test.html
    jsUnitTestSuite.html
    rounded_test.html
    statistics_observer_test.html
    timer_test.html
    toggle_tab_content_test.html
    toggle_tab_test.html
    tooltip_observer_test.html
    word_break_inserter_test.html
  index.jsp
  jsunit.xml
  logging.properties
  testRunner.html