Changeset 85757 in webkit
- Timestamp:
- May 4, 2011 10:37:54 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r85752 r85757 1 2011-05-04 Ojan Vafai <ojan@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [results.html] bucket crashes/timeouts into their own test lists 6 https://bugs.webkit.org/show_bug.cgi?id=60181 7 8 Also, don't show the "expected to fail but passed" table for ports 9 that don't use an expectation file. 10 11 * fast/harness/resources/results-test.js: 12 * fast/harness/results.html: 13 1 14 2011-05-04 Andrey Kosyakov <caseq@chromium.org> 2 15 -
trunk/LayoutTests/fast/harness/resources/results-test.js
r85654 r85757 157 157 subtree['bar1.html'] = mockExpectation('CRASH', 'PASS'); 158 158 subtree['bar2.html'] = mockExpectation('IMAGE', 'PASS'); 159 subtree['crash.html'] = mockExpectation('IMAGE', 'CRASH'); 160 subtree['timeout.html'] = mockExpectation('IMAGE', 'TIMEOUT'); 159 161 runTest(results, function() { 160 162 assertTrue(!document.getElementById('results-table')); … … 169 171 assertTrue(expectationTypes[1].textContent == 'CRASH'); 170 172 assertTrue(expectationTypes[2].textContent == 'IMAGE'); 173 174 assertTrue(document.getElementById('crash-tests-table')); 175 assertTrue(document.getElementById('crash-tests-table').textContent.indexOf('stack') != -1); 176 assertTrue(document.getElementById('timeout-tests-table')); 177 assertTrue(document.getElementById('timeout-tests-table').textContent.indexOf('expected actual diff') != -1); 171 178 }); 172 179 … … 228 235 runDefaultSingleRowTest('bar-flaky-fail.html', 'PASS FAIL', 'TEXT', true, 'expected actual diff ', ''); 229 236 runDefaultSingleRowTest('bar-flaky-fail-unexpected.html', 'PASS TEXT', 'IMAGE', false, '', 'images diff '); 230 runDefaultSingleRowTest('bar-crash.html', 'TEXT', 'CRASH', false, 'stack ', '');231 237 runDefaultSingleRowTest('bar-audio.html', 'TEXT', 'AUDIO', false, 'expected audio actual audio ', ''); 232 runDefaultSingleRowTest('bar-timeout.html', 'TEXT', 'TIMEOUT', false, 'expected actual diff ', '');233 238 runDefaultSingleRowTest('bar-image.html', 'TEXT', 'IMAGE', false, '', 'images diff '); 234 239 runDefaultSingleRowTest('bar-image-plus-text.html', 'TEXT', 'IMAGE+TEXT', false, 'expected actual diff ', 'images diff '); … … 275 280 var subtree = results.tests['foo'] = {} 276 281 subtree['bar.html'] = mockExpectation('TEXT', 'TEXT'); 282 subtree['bar1.html'] = mockExpectation('CRASH', 'PASS'); 283 subtree['bar2.html'] = mockExpectation('IMAGE', 'PASS'); 277 284 results.uses_expectations_file = false; 278 285 runTest(results, function() { 279 assertTrue(document.querySelectorAll('tbody td').length == 4); 280 assertTrue(document.querySelector('tbody').className.indexOf('expected') == -1); 286 assertTrue(document.querySelectorAll('#results-table tbody td').length == 4); 287 assertTrue(!document.querySelector('tbody.expected')); 288 assertTrue(!document.getElementById('passes-table')); 281 289 }); 282 290 … … 374 382 shouldUseTracLinks = oldShouldUseTracLinks; 375 383 376 runDefaultSingleRowTest('bar-flaky-crash.html', 'TEXT', 'TIMEOUT CRASH AUDIO', false, 'expected actual diff stack expected audio actual audio ', '');377 378 384 results = mockResults(); 379 385 results.tests['bar.html'] = mockExpectation('PASS', 'IMAGE'); -
trunk/LayoutTests/fast/harness/results-expected.txt
r85675 r85757 10 10 TEST-3: PASS 11 11 TEST-3: PASS 12 TEST-4: PASS 13 TEST-4: PASS 14 TEST-4: PASS 15 TEST-4: PASS 12 16 TEST-4: PASS 13 17 TEST-4: PASS … … 91 95 TEST-15: PASS 92 96 TEST-15: PASS 93 TEST-15: PASS94 TEST-15: PASS95 TEST-15: PASS96 TEST-16: PASS97 TEST-16: PASS98 TEST-16: PASS99 TEST-16: PASS100 97 TEST-16: PASS 101 98 TEST-16: PASS 102 99 TEST-17: PASS 103 100 TEST-17: PASS 104 TEST-1 7: PASS101 TEST-18: PASS 105 102 TEST-18: PASS 106 103 TEST-18: PASS … … 110 107 TEST-20: PASS 111 108 TEST-21: PASS 112 TEST-21: PASS113 109 TEST-22: PASS 114 110 TEST-22: PASS 115 111 TEST-23: PASS 116 112 TEST-24: PASS 117 TEST-24: PASS118 113 TEST-25: PASS 119 114 TEST-26: PASS 115 TEST-26: PASS 116 TEST-26: PASS 120 117 TEST-27: PASS 121 TEST-28: PASS 122 TEST-28: PASS 123 TEST-28: PASS 124 TEST-28: PASS 125 TEST-28: PASS 126 TEST-28: PASS 127 TEST-29: PASS 128 TEST-29: PASS 129 TEST-29: PASS 130 TEST-30: PASS 131 TEST-30: PASS 118 TEST-27: PASS -
trunk/LayoutTests/fast/harness/results.html
r85654 r85757 148 148 if (!g_state) { 149 149 g_state = { 150 crashTests: [], 150 151 hasHttpTests: false, 151 152 hasImageFailures: false, … … 155 156 shouldToggleImages: true, 156 157 testsWithStderr: [], 158 timeoutTests: [], 157 159 unexpectedPassTests: [] 158 160 } … … 386 388 return; 387 389 } 388 390 389 391 var expected = testObject.expected || 'PASS'; 390 392 testObject.isExpected = true; … … 403 405 if (actual == 'PASS' && expected != 'PASS') 404 406 globalState().unexpectedPassTests.push(test); 407 408 if (globalState().results.uses_expectations_file && testObject.isExpected) 409 return; 410 411 // FIXME: Show some indication in the UI for a test that doesn't crash on the first run but crashes on the second run. 412 if (actual.indexOf('CRASH') != -1) { 413 globalState().crashTests.push(test); 414 return; 415 } 416 417 // FIXME: Show some indication in the UI for a test only times out on one run? 418 if (actual.indexOf('TIMEOUT') != -1) 419 globalState().timeoutTests.push(test); 405 420 } 406 421 … … 422 437 } 423 438 439 function textResultLinks(prefix) 440 { 441 var html = resultLink(prefix, '-expected.txt', 'expected') + 442 resultLink(prefix, '-actual.txt', 'actual') + 443 resultLink(prefix, '-diff.txt', 'diff'); 444 445 if (globalState().results.has_pretty_patch) 446 html += resultLink(prefix, '-pretty-diff.html', 'pretty diff'); 447 448 if (globalState().results.has_wdiff) 449 html += resultLink(prefix, '-wdiff.html', 'wdiff'); 450 451 return html; 452 } 453 424 454 function tableRow(testObject) 425 455 { … … 435 465 436 466 var actual = testObject.actual; 437 if (actual.indexOf('TEXT') != -1 || actual.indexOf('TIMEOUT') != -1) { 438 // FIXME: only include timeout actual/expected results here if we actually spit out results for timeout tests. 467 if (actual.indexOf('TEXT') != -1) { 439 468 globalState().hasTextFailures = true; 440 row += resultLink(test_prefix, '-expected.txt', 'expected') + 441 resultLink(test_prefix, '-actual.txt', 'actual') + 442 resultLink(test_prefix, '-diff.txt', 'diff'); 443 444 if (globalState().results.has_pretty_patch) 445 row += resultLink(test_prefix, '-pretty-diff.html', 'pretty diff'); 446 447 if (globalState().results.has_wdiff) 448 row += resultLink(test_prefix, '-wdiff.html', 'wdiff'); 449 } 450 451 if (actual.indexOf('CRASH') != -1) 452 row += resultLink(test_prefix, '-stack.txt', 'stack'); 469 row += textResultLinks(test_prefix); 470 } 453 471 454 472 if (actual.indexOf('AUDIO') != -1) { … … 514 532 var test = testObject.name; 515 533 if (globalState().unexpectedPassTests.indexOf(test) == -1 && 516 globalState().newTests.indexOf(test) == -1) 534 globalState().newTests.indexOf(test) == -1 && 535 globalState().crashTests.indexOf(test) == -1 && 536 globalState().timeoutTests.indexOf(test) == -1) 517 537 html += tableRow(testObject); 518 538 }); … … 537 557 else if (tableId == 'passes-table') 538 558 html += testObjectFor(test).expected; 539 else if (tableId == 'new-tests-table') { 559 else if (tableId == 'crash-tests-table') 560 html += resultLink(stripExtension(test), '-stack.txt', 'crash stack'); 561 else if (tableId == 'timeout-tests-table') { 562 // FIXME: only include timeout actual/diff results here if we actually spit out results for timeout tests. 563 html += textResultLinks(stripExtension(test)); 564 } else if (tableId == 'new-tests-table') { 540 565 var testObject = testObjectFor(test); 541 566 if (testObject.is_missing_audio) … … 896 921 } 897 922 923 if (globalState().crashTests.length) 924 html += testList(globalState().crashTests, 'Tests that crashed:', 'crash-tests-table'); 925 926 if (globalState().timeoutTests.length) 927 html += testList(globalState().timeoutTests, 'Tests that timed out:', 'timeout-tests-table'); 928 898 929 if (globalState().newTests.length) 899 930 html += testList(globalState().newTests, 'Tests that had no expected results (probably new):', 'new-tests-table'); … … 902 933 html += testList(globalState().testsWithStderr, 'Tests that had stderr output:', 'stderr-table'); 903 934 904 if (globalState(). unexpectedPassTests.length)935 if (globalState().results.uses_expectations_file && globalState().unexpectedPassTests.length) 905 936 html += testList(globalState().unexpectedPassTests, 'Tests expected to fail but passed:', 'passes-table'); 906 937
Note: See TracChangeset
for help on using the changeset viewer.