source: trunk/openlayers/tests/run-tests.html

Last change on this file was 12378, checked in by marcjansen, 5 years ago

Various enhancements to the testsuite:

  • split resources of the suite (CSS, HTML, JavaScript)
  • dedicated files for our changes to the suite
  • CSS enhancements (e.g. hover colors)
  • a simple quicksearch/filter for the list of testfiles (Only for browsers that support querySelectorAll)
  • links to the testfiles to easily bypass browser cache
  • running time info panel
  • detailed total number of testcases that failed/were ok

Non-functional change (closes #3507)

  • Property svn:eol-style set to native
File size: 8.3 KB
Line 
1<!DOCTYPE html>
2<html>
3    <head>
4        <title>Run the testsuite</title>
5        <noscript>
6            Javascript is disabled in your browser. This page cannot be
7            displayed correctly without Javascript. Sorry.
8            <br/>
9            If you want to view this page, please change your browser settings
10            so that Javascript is enabled.
11        </noscript>
12        <!--
13       
14        Test.AnotherWay version 0.5
15       
16        Copyright (c) 2005 Artem Khodush, http://straytree.org
17       
18        Permission is hereby granted, free of charge, to any person obtaining
19        a copy of this software and associated documentation files (the
20        "Software"), to deal in the Software without restriction, including
21        without limitation the rights to use, copy, modify, merge, publish,
22        distribute, sublicense, and/or sell copies of the Software, and to
23        permit persons to whom the Software is furnished to do so, subject to
24        the following conditions:
25       
26        The above copyright notice and this permission notice shall be
27        included in all copies or substantial portions of the Software.
28       
29        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
32        NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
33        LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
34        OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
35        WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
36       
37        -->
38        <link rel="stylesheet" href="Test.AnotherWay.css" />
39        <script type="text/javascript" src="Test.AnotherWay.js"></script>
40        <script type="text/javascript" src="Test.AnotherWay.baseadditions.js"></script>
41        <script type="text/javascript" src="Test.AnotherWay.xml_eq.js"></script>
42        <script type="text/javascript" src="Test.AnotherWay.geom_eq.js"></script>
43    </head>
44    <body>
45        <div id="col1">
46            <div id="col1_header">
47                Test pages:
48                <input id="quickfilter" placeholder="quick filter">
49            </div>
50            <div id="scroller">
51                <table id="testtable">
52                </table>
53            </div>
54            <div id="run_buttons">
55                <input type="button" value=" clear " id="clear_btn" /><input type="button" value=" run all " id="run_all" /><input type="button" value=" run selected " id="run_selected" /><input type="button" value=" unselect all " id="unselect_all" />
56            </div>
57            <div id="running-time">
58            </div>
59            <input type="checkbox" id="dont_close_test_windows" /> do not close windows opened by tests
60            <div id="error">
61            </div>
62            <div id="record_div">
63                <p id="record_not_supported" style="display:none">
64                </p>
65                <p>
66                    Record mouse input for the page:
67                </p>
68                <p>
69                    <input type="radio" name="record_choose" value="select" checked="checked" />
70                    <select id="record_select">
71                        <option selected="selected">-- select a page: --</option>
72                    </select>
73                </p>
74                <p>
75                    <input type="radio" name="record_choose" value="input" /> or enter page url: <input type="text" id="record_input" />
76                </p>
77                <p>
78                    <input type="button" value=" record " id="record_start" />
79                </p>
80            </div>
81        </div>
82        <div id="col2">
83            <div id="right_header">
84                <span id="results_count">Results: <span id="total"></span></span>
85                <span id="results_tab" class="active_tab" style="visibility:hidden">Results</span>
86                <span id="debug_tab" class="inactive_tab" style="visibility:hidden">Debug</span>
87            </div>
88            <div id="right_frame">
89                <div id="results">
90                </div>
91                <div id="debug">
92                </div>
93            </div>
94        </div>
95        <span style="display:none">
96            <iframe name="list_iframe" onload="Test.AnotherWay._list_iframe_onload();">
97            </iframe>
98            <iframe name="test_iframe" onload="Test.AnotherWay._test_page_onload();">
99            </iframe>
100            <!-- record_control div is to be imported into other documents, so all its styles are inline -->-
101            <div id="record_control" style="position:absolute;bottom:0;left:0;margin:0;padding:0.5em;width:22em;height:22em;border:1px solid;background:#ffd;font: normal normal 8pt sans-serif; color:#000; text-align: left">
102                <p style="margin:0 0 0 0; padding:0">
103                    &nbsp;<span style="display:none;font-weight:bold;color:#408" id="record_indicator">recording. <span style="font-weight:normal">time: <span id="record_time"></span></span><span id="record_pause_indicator">paused</span></span>
104                </p>
105                <div id="record_cursor_over" style="margin:0;padding:2px;width:14em;height:1.1em;overflow:hidden;float:right;border:1px solid #777;background:#fff;font: normal normal 8pt sans-serif;position:relative;top:3px;color:#000;text-align:left;">
106                    &nbsp;
107                </div>
108                <p style="margin:2px 0 0 0; padding:0">
109                    cursor is over
110                </p>
111                <p style="margin:8px 0 0 0; padding:0;">
112                    keyboard control: press<span id="record_ctrl_key" style="border:1px solid #226;background:#adf;padding:0 0.5em">ctrl</span>
113                    -<span id="record_shift_key" style="border:1px solid #226;background:#adf;padding:0 0.5em">shift</span>
114                    -
115                </p>
116                <p style="margin:4px 0 0 0; padding:0">
117                    <span id="record_s" style="border:1px solid #226;background:#adf;width:1.2em;float:left;font-weight:bold;text-align:center;margin-right:0.5em">s</span>
118                    <span id="record_on">to <b>start</b> recording</span>
119                    <span id="record_off" style="display:none">to <b>stop</b> recording</span>
120                </p>
121                <p style="margin:4px 0 0 0; padding:0">
122                    <span id="record_h" style="border:1px solid #226;background:#adf;width:1.2em;float:left;font-weight:bold;text-align:center;margin-right:0.5em">h</span>
123                    <span>to <b>hide/show</b> this window</span>
124                </p>
125                <p style="margin:4px 0 0 0; padding:0">
126                    <span id="record_m" style="border:1px solid #226;background:#adf;width:1.2em;float:left;font-weight:bold;text-align:center;margin-right:0.5em">m</span>
127                    <span id="record_include_mousemove">to <b>record</b> mousemove</span>
128                    <span id="record_omit_mousemove" style="display:none">to <b>omit</b> mousemove</span>
129                </p>
130                <p style="margin:4px 0 0 0; padding:0">
131                    <span id="record_p" style="border:1px solid #226;background:#aaa;width:1.2em;float:left;font-weight:bold;text-align:center;margin-right:0.5em">p</span>
132                    <span id="record_pause_on">to <b>pause</b> recording</span>
133                    <span id="record_pause_off" style="display:none">to <b>continue</b> recording</span>
134                </p>
135                <p style="margin:4px 0 0 0; padding:0">
136                    <span id="record_c" style="border:1px solid #226;background:#aaa;width:1.2em;float:left;font-weight:bold;text-align:center;margin-right:0.5em">c</span>
137                    <span>to add checkpoint</span>
138                </p>
139                <p style="margin:6px 0 0 0; padding:0">
140                    checkpoints:
141                </p>
142                <div id="record_checkpoints" style="position:relative;width:100%;height:6em;overflow:auto;font: normal normal 8pt sans-serif; color:#000; text-align: left">
143                </div>
144            </div>
145        </span>
146        <script>
147            if (/noscroll/.test(location.href)) {
148                document.getElementById('scroller').style.height = 'auto';
149                document.getElementById('right_frame').style.height = 'auto';
150            }
151        </script>
152    </body>
153</html>
Note: See TracBrowser for help on using the repository browser.