| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 html { | 3 html { |
| 4 height: 100%; | 4 height: 100%; |
| 5 } | 5 } |
| 6 body { | 6 body { |
| 7 margin: 0; | 7 margin: 0; |
| 8 font-family: Helvetica, sans-serif; | 8 font-family: Helvetica, sans-serif; |
| 9 font-size: 11pt; | 9 font-size: 11pt; |
| 10 display: -webkit-flex; | 10 display: -webkit-flex; |
| (...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 | 1286 |
| 1287 function generatePage() | 1287 function generatePage() |
| 1288 { | 1288 { |
| 1289 forEachTest(processGlobalStateFor); | 1289 forEachTest(processGlobalStateFor); |
| 1290 | 1290 |
| 1291 var html = '<div class=content-container><div id=toolbar>' + | 1291 var html = '<div class=content-container><div id=toolbar>' + |
| 1292 '<div class="note">Use the i, j, k and l keys to navigate, e, c to expan
d and collapse, and f to flag</div>' + | 1292 '<div class="note">Use the i, j, k and l keys to navigate, e, c to expan
d and collapse, and f to flag</div>' + |
| 1293 '<a href="javascript:void()" onclick="expandAllExpectations()">expand al
l</a> ' + | 1293 '<a href="javascript:void()" onclick="expandAllExpectations()">expand al
l</a> ' + |
| 1294 '<a href="javascript:void()" onclick="collapseAllExpectations()">collaps
e all</a> ' + | 1294 '<a href="javascript:void()" onclick="collapseAllExpectations()">collaps
e all</a> ' + |
| 1295 '<label><input id="toggle-images" type=checkbox checked onchange="handle
ToggleImagesChange()">Toggle images</label>' + | 1295 '<label><input id="toggle-images" type=checkbox checked onchange="handle
ToggleImagesChange()">Toggle images</label>' + |
| 1296 '</div>'; | 1296 '<div id=container>Show: '+ |
| 1297 '<label><input id="show-expected-failures" type=checkbox onchange="handl
eUnexpectedResultsChange()">expected failures</label>' + |
| 1298 '<label><input id="show-flaky-failures" type=checkbox onchange="handleFl
akyFailuresChange()">flaky failures</label>' + |
| 1299 '<label><input id="show-unexpected-passes" type=checkbox onchange="handl
eUnexpectedPassesChange()">unexpected passes</label>' + |
| 1300 '<label><input id="show-stderr" type=checkbox onchange="handleStderrChan
ge()">stderr</label>' + |
| 1301 '</div></div>'; |
| 1297 | 1302 |
| 1298 if (globalState().results.interrupted) | 1303 if (globalState().results.interrupted) |
| 1299 html += "<p class='stopped-running-early-message'>Testing exited early.<
/p>" | 1304 html += "<p class='stopped-running-early-message'>Testing exited early.<
/p>" |
| 1300 | 1305 |
| 1301 if (globalState().crashTests.length) | 1306 if (globalState().crashTests.length) |
| 1302 html += testList(globalState().crashTests, 'Tests that crashed', 'crash-
tests-table'); | 1307 html += testList(globalState().crashTests, 'Tests that crashed', 'crash-
tests-table'); |
| 1303 | 1308 |
| 1304 html += failingTestsTable(globalState().failingTests, | 1309 html += failingTestsTable(globalState().failingTests, |
| 1305 'Tests that failed text/pixel/audio diff', 'results-table'); | 1310 'Tests that failed text/pixel/audio diff', 'results-table'); |
| 1306 | 1311 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1317 'Flaky tests (failed the first run and passed on retry)', 'flaky-tests-t
able'); | 1322 'Flaky tests (failed the first run and passed on retry)', 'flaky-tests-t
able'); |
| 1318 | 1323 |
| 1319 if (globalState().unexpectedPassTests.length) | 1324 if (globalState().unexpectedPassTests.length) |
| 1320 html += testList(globalState().unexpectedPassTests, 'Tests expected to f
ail but passed', 'passes-table'); | 1325 html += testList(globalState().unexpectedPassTests, 'Tests expected to f
ail but passed', 'passes-table'); |
| 1321 | 1326 |
| 1322 if (globalState().hasHttpTests) { | 1327 if (globalState().hasHttpTests) { |
| 1323 html += '<p>httpd access log: <a href="access_log.txt">access_log.txt</a
></p>' + | 1328 html += '<p>httpd access log: <a href="access_log.txt">access_log.txt</a
></p>' + |
| 1324 '<p>httpd error log: <a href="error_log.txt">error_log.txt</a></p>'; | 1329 '<p>httpd error log: <a href="error_log.txt">error_log.txt</a></p>'; |
| 1325 } | 1330 } |
| 1326 | 1331 |
| 1327 html += '</div><div>' + | 1332 html += '</div>'; |
| 1328 '<label><input id="show-expected-failures" type=checkbox onchange="handl
eUnexpectedResultsChange()">Show expected failures</label>' + | |
| 1329 '<label><input id="show-flaky-failures" type=checkbox onchange="handleFl
akyFailuresChange()">Show flaky failures</label>' + | |
| 1330 '<label><input id="show-unexpected-passes" type=checkbox onchange="handl
eUnexpectedPassesChange()">Show unexpected passes</label>' + | |
| 1331 '<label><input id="show-stderr" type=checkbox onchange="handleStderrChan
ge()">Show stderr</label>' + | |
| 1332 '</div>'; | |
| 1333 | 1333 |
| 1334 document.body.innerHTML = html; | 1334 document.body.innerHTML = html; |
| 1335 | 1335 |
| 1336 if (document.getElementById('results-table')) { | 1336 if (document.getElementById('results-table')) { |
| 1337 document.getElementById('results-table').addEventListener('click', Table
Sorter.handleClick, false); | 1337 document.getElementById('results-table').addEventListener('click', Table
Sorter.handleClick, false); |
| 1338 TableSorter.sortColumn(0); | 1338 TableSorter.sortColumn(0); |
| 1339 if (!globalState().hasTextFailures) | 1339 if (!globalState().hasTextFailures) |
| 1340 document.getElementById('text-results-header').textContent = ''; | 1340 document.getElementById('text-results-header').textContent = ''; |
| 1341 if (!globalState().hasImageFailures) { | 1341 if (!globalState().hasImageFailures) { |
| 1342 document.getElementById('image-results-header').textContent = ''; | 1342 document.getElementById('image-results-header').textContent = ''; |
| 1343 parentOfType(document.getElementById('toggle-images'), 'label').styl
e.display = 'none'; | 1343 parentOfType(document.getElementById('toggle-images'), 'label').styl
e.display = 'none'; |
| 1344 } | 1344 } |
| 1345 } | 1345 } |
| 1346 | 1346 |
| 1347 updateTestlistCounts(); | 1347 updateTestlistCounts(); |
| 1348 | 1348 |
| 1349 TestNavigator.reset(); | 1349 TestNavigator.reset(); |
| 1350 OptionWriter.apply(); | 1350 OptionWriter.apply(); |
| 1351 } | 1351 } |
| 1352 </script> | 1352 </script> |
| 1353 <!-- HACK: when json_results_test.js is included, loading this page runs the tes
ts. | 1353 <!-- HACK: when json_results_test.js is included, loading this page runs the tes
ts. |
| 1354 It is not copied to the layout-test-results output directory. --> | 1354 It is not copied to the layout-test-results output directory. --> |
| 1355 <script src="resources/results-test.js"></script> | 1355 <script src="resources/results-test.js"></script> |
| 1356 <body onload="generatePage()"></body> | 1356 <body onload="generatePage()"></body> |
| OLD | NEW |