Changeset 235409 in webkit
- Timestamp:
- Aug 27, 2018, 4:31:18 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
fast/harness/full_results.json (modified) (1 diff)
-
fast/harness/results-expected.txt (modified) (1 diff)
-
fast/harness/results.html (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r235390 r235409 1 2018-08-27 Simon Fraser <simon.fraser@apple.com> 2 3 [LayoutTests] results.html shows "no expected results" for text diff failures 4 https://bugs.webkit.org/show_bug.cgi?id=188927 5 6 Reviewed by Alexey Proskuryakov. 7 8 The results.html rewrite confused "is missing all results" with "is missing one type of result", 9 causing tests with a missing image to show as tests with no results. 10 11 Fix by clarifying the types of "missing". 12 13 * fast/harness/full_results.json: 14 * fast/harness/results-expected.txt: 15 * fast/harness/results.html: 16 1 17 2018-08-27 Andy Estes <aestes@apple.com> 2 18 -
trunk/LayoutTests/fast/harness/full_results.json
r235126 r235409 89 89 } 90 90 }, 91 "css1": { 92 "font_properties": { 93 "font_family.html": { 94 "report": "REGRESSION", 95 "expected": "PASS", 96 "actual": "TEXT MISSING", 97 "is_missing_image": true 98 } 99 } 100 }, 91 101 "svg": { 92 102 "batik": { -
trunk/LayoutTests/fast/harness/results-expected.txt
r234993 r235409 10 10 +DumpRenderTree-54888 crash log 11 11 +DumpRenderTree-56804 crash log 12 Tests that failed text/pixel/audio diff ( 2): flag all12 Tests that failed text/pixel/audio diff (3): flag all 13 13 14 14 test results actual failure expected failure history 15 +css1/font_properties/font_family.html expected actual diff pretty diff images text missing history 15 16 +http/tests/storageAccess/request-storage-access-top-frame.html expected actual diff pretty diff text pass timeout history 16 17 +http/wpt/cache-storage/cache-put-keys.https.any.worker.html expected actual diff pretty diff text pass history -
trunk/LayoutTests/fast/harness/results.html
r235126 r235409 330 330 } 331 331 332 isMissing() 332 isMissingAllResults() 333 { 334 return this.info.actual == 'MISSING'; 335 } 336 337 hasMissingResult() 333 338 { 334 339 return this.info.actual.indexOf('MISSING') != -1; … … 400 405 } 401 406 407 isMissingText() 408 { 409 return this.info.is_missing_text; 410 } 411 402 412 isMissingImage() 403 413 { 404 414 return this.info.is_missing_image; 415 } 416 417 isMissingAudio() 418 { 419 return this.info.is_missing_audio; 405 420 } 406 421 … … 486 501 this.hasImageFailures = true; 487 502 488 if (testResult.isMissing ()) {503 if (testResult.isMissingAllResults()) { 489 504 // FIXME: make sure that new-run-webkit-tests spits out an -actual.txt file for tests with MISSING results. 490 505 this.missingResults.push(testResult); … … 1187 1202 this.appendAudioFailureLinks(testResult, resultCell); 1188 1203 1189 if (testResult. isMissing())1204 if (testResult.hasMissingResult()) 1190 1205 this.appendActualOnlyLinks(testResult, resultCell); 1191 1206 … … 1209 1224 if (this._resultsController.testResults.usesExpectationsFile()) { 1210 1225 let expectedCell = document.createElement('td'); 1211 expectedCell.textContent = testResult. isMissing() ? '' : testResult.info.expected;1226 expectedCell.textContent = testResult.hasMissingResult() ? '' : testResult.info.expected; 1212 1227 row.appendChild(expectedCell); 1213 1228 } … … 1236 1251 { 1237 1252 let prefix = Utils.stripExtension(testResult.name); 1238 if (testResult.i nfo.is_missing_audio)1253 if (testResult.isMissingAudio()) 1239 1254 cell.innerHTML += TestResultsController.resultLink(prefix, '-actual.wav', 'audio result'); 1240 1255 1241 if (testResult.i nfo.is_missing_text)1256 if (testResult.isMissingText()) 1242 1257 cell.innerHTML += TestResultsController.resultLink(prefix, '-actual.txt', 'result'); 1243 1258 } … … 1268 1283 } 1269 1284 1270 if (testResult. isMissing() && testResult.isMissingImage())1285 if (testResult.hasMissingResult() && testResult.isMissingImage()) 1271 1286 result += TestResultsController.resultLink(testPrefix, '-actual.png', 'png result'); 1272 1287
Note:
See TracChangeset
for help on using the changeset viewer.