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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 <style id="stderr-style"></style> | 199 <style id="stderr-style"></style> |
200 <style id="unexpected-style"></style> | 200 <style id="unexpected-style"></style> |
201 | 201 |
202 <script> | 202 <script> |
203 var g_state; | 203 var g_state; |
204 function globalState() | 204 function globalState() |
205 { | 205 { |
206 if (!g_state) { | 206 if (!g_state) { |
207 g_state = { | 207 g_state = { |
208 crashTests: [], | 208 crashTests: [], |
| 209 leakTests: [], |
209 flakyPassTests: [], | 210 flakyPassTests: [], |
210 hasHttpTests: false, | 211 hasHttpTests: false, |
211 hasImageFailures: false, | 212 hasImageFailures: false, |
212 hasTextFailures: false, | 213 hasTextFailures: false, |
213 missingResults: [], | 214 missingResults: [], |
214 results: {}, | 215 results: {}, |
215 shouldToggleImages: true, | 216 shouldToggleImages: true, |
216 failingTests: [], | 217 failingTests: [], |
217 testsWithStderr: [], | 218 testsWithStderr: [], |
218 timeoutTests: [], | 219 timeoutTests: [], |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 globalState().unexpectedPassTests.push(testObject); | 485 globalState().unexpectedPassTests.push(testObject); |
485 } | 486 } |
486 return; | 487 return; |
487 } | 488 } |
488 | 489 |
489 if (actual == 'CRASH') { | 490 if (actual == 'CRASH') { |
490 globalState().crashTests.push(testObject); | 491 globalState().crashTests.push(testObject); |
491 return; | 492 return; |
492 } | 493 } |
493 | 494 |
| 495 if (actual == 'LEAK') { |
| 496 globalState().leakTests.push(testObject); |
| 497 return; |
| 498 } |
| 499 |
494 if (actual == 'TIMEOUT') { | 500 if (actual == 'TIMEOUT') { |
495 globalState().timeoutTests.push(testObject); | 501 globalState().timeoutTests.push(testObject); |
496 return; | 502 return; |
497 } | 503 } |
498 | 504 |
499 globalState().failingTests.push(testObject); | 505 globalState().failingTests.push(testObject); |
500 } | 506 } |
501 | 507 |
502 function toggleImages() | 508 function toggleImages() |
503 { | 509 { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 ((tableId == 'passes-table') ? testLink(test) : testLinkWithExpandBu
tton(test)) + | 680 ((tableId == 'passes-table') ? testLink(test) : testLinkWithExpandBu
tton(test)) + |
675 '</td><td>'; | 681 '</td><td>'; |
676 | 682 |
677 if (tableId == 'stderr-table') | 683 if (tableId == 'stderr-table') |
678 html += resultLink(stripExtension(test), '-stderr.txt', 'stderr'); | 684 html += resultLink(stripExtension(test), '-stderr.txt', 'stderr'); |
679 else if (tableId == 'passes-table') | 685 else if (tableId == 'passes-table') |
680 html += testObject.expected; | 686 html += testObject.expected; |
681 else if (tableId == 'crash-tests-table') { | 687 else if (tableId == 'crash-tests-table') { |
682 html += resultLink(stripExtension(test), '-crash-log.txt', 'crash lo
g'); | 688 html += resultLink(stripExtension(test), '-crash-log.txt', 'crash lo
g'); |
683 html += resultLink(stripExtension(test), '-sample.txt', 'sample'); | 689 html += resultLink(stripExtension(test), '-sample.txt', 'sample'); |
684 } else if (tableId == 'timeout-tests-table') { | 690 } else if (tableId == 'leak-tests-table') |
| 691 html += resultLink(stripExtension(test), '-leak-log.txt', 'leak log'
); |
| 692 else if (tableId == 'timeout-tests-table') { |
685 // FIXME: only include timeout actual/diff results here if we actual
ly spit out results for timeout tests. | 693 // FIXME: only include timeout actual/diff results here if we actual
ly spit out results for timeout tests. |
686 html += textResultLinks(stripExtension(test)); | 694 html += textResultLinks(stripExtension(test)); |
687 } | 695 } |
688 | 696 |
689 html += '</td></tr></tbody>'; | 697 html += '</td></tr></tbody>'; |
690 } | 698 } |
691 html += '</table></div>'; | 699 html += '</table></div>'; |
692 return html; | 700 return html; |
693 } | 701 } |
694 | 702 |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 '<label><input id="show-unexpected-passes" type=checkbox onchange="handl
eUnexpectedPassesChange()">unexpected passes</label>' + | 1331 '<label><input id="show-unexpected-passes" type=checkbox onchange="handl
eUnexpectedPassesChange()">unexpected passes</label>' + |
1324 '<label><input id="show-stderr" type=checkbox onchange="handleStderrChan
ge()">stderr</label>' + | 1332 '<label><input id="show-stderr" type=checkbox onchange="handleStderrChan
ge()">stderr</label>' + |
1325 '</div></div>'; | 1333 '</div></div>'; |
1326 | 1334 |
1327 if (globalState().results.interrupted) | 1335 if (globalState().results.interrupted) |
1328 html += "<p class='stopped-running-early-message'>Testing exited early.<
/p>" | 1336 html += "<p class='stopped-running-early-message'>Testing exited early.<
/p>" |
1329 | 1337 |
1330 if (globalState().crashTests.length) | 1338 if (globalState().crashTests.length) |
1331 html += testList(globalState().crashTests, 'Tests that crashed', 'crash-
tests-table'); | 1339 html += testList(globalState().crashTests, 'Tests that crashed', 'crash-
tests-table'); |
1332 | 1340 |
| 1341 if (globalState().leakTests.length) |
| 1342 html += testList(globalState().leakTests, 'Tests that leaked', 'leak-tes
ts-table'); |
| 1343 |
1333 html += failingTestsTable(globalState().failingTests, | 1344 html += failingTestsTable(globalState().failingTests, |
1334 'Tests that failed text/pixel/audio diff', 'results-table'); | 1345 'Tests that failed text/pixel/audio diff', 'results-table'); |
1335 | 1346 |
1336 html += failingTestsTable(globalState().missingResults, | 1347 html += failingTestsTable(globalState().missingResults, |
1337 'Tests that had no expected results (probably new)', 'missing-table'); | 1348 'Tests that had no expected results (probably new)', 'missing-table'); |
1338 | 1349 |
1339 if (globalState().timeoutTests.length) | 1350 if (globalState().timeoutTests.length) |
1340 html += testList(globalState().timeoutTests, 'Tests that timed out', 'ti
meout-tests-table'); | 1351 html += testList(globalState().timeoutTests, 'Tests that timed out', 'ti
meout-tests-table'); |
1341 | 1352 |
1342 if (globalState().testsWithStderr.length) | 1353 if (globalState().testsWithStderr.length) |
(...skipping 28 matching lines...) Expand all Loading... |
1371 updateTestlistCounts(); | 1382 updateTestlistCounts(); |
1372 | 1383 |
1373 TestNavigator.reset(); | 1384 TestNavigator.reset(); |
1374 OptionWriter.apply(); | 1385 OptionWriter.apply(); |
1375 } | 1386 } |
1376 </script> | 1387 </script> |
1377 <!-- HACK: when json_results_test.js is included, loading this page runs the tes
ts. | 1388 <!-- HACK: when json_results_test.js is included, loading this page runs the tes
ts. |
1378 It is not copied to the layout-test-results output directory. --> | 1389 It is not copied to the layout-test-results output directory. --> |
1379 <script src="resources/results-test.js"></script> | 1390 <script src="resources/results-test.js"></script> |
1380 <body onload="generatePage()"></body> | 1391 <body onload="generatePage()"></body> |
OLD | NEW |