Changeset 235409 in webkit


Ignore:
Timestamp:
Aug 27, 2018, 4:31:18 PM (7 years ago)
Author:
Simon Fraser
Message:

[LayoutTests] results.html shows "no expected results" for text diff failures
https://bugs.webkit.org/show_bug.cgi?id=188927

Reviewed by Alexey Proskuryakov.

The results.html rewrite confused "is missing all results" with "is missing one type of result",
causing tests with a missing image to show as tests with no results.

Fix by clarifying the types of "missing".

  • fast/harness/full_results.json:
  • fast/harness/results-expected.txt:
  • fast/harness/results.html:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r235390 r235409  
     12018-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
    1172018-08-27  Andy Estes  <aestes@apple.com>
    218
  • trunk/LayoutTests/fast/harness/full_results.json

    r235126 r235409  
    8989            }
    9090        },
     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        },
    91101        "svg": {
    92102            "batik": {
  • trunk/LayoutTests/fast/harness/results-expected.txt

    r234993 r235409  
    1010+DumpRenderTree-54888   crash log
    1111+DumpRenderTree-56804   crash log
    12 Tests that failed text/pixel/audio diff (2): flag all
     12Tests that failed text/pixel/audio diff (3): flag all
    1313
    1414 test   results         actual failure  expected failure        history
     15+css1/font_properties/font_family.html  expected actual diff pretty diff        images  text missing            history
    1516+http/tests/storageAccess/request-storage-access-top-frame.html expected actual diff pretty diff                text    pass timeout    history
    1617+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  
    330330    }
    331331   
    332     isMissing()
     332    isMissingAllResults()
     333    {
     334        return this.info.actual == 'MISSING';
     335    }
     336   
     337    hasMissingResult()
    333338    {
    334339        return this.info.actual.indexOf('MISSING') != -1;
     
    400405    }
    401406   
     407    isMissingText()
     408    {
     409        return this.info.is_missing_text;
     410    }
     411
    402412    isMissingImage()
    403413    {
    404414        return this.info.is_missing_image;
     415    }
     416
     417    isMissingAudio()
     418    {
     419        return this.info.is_missing_audio;
    405420    }
    406421   
     
    486501            this.hasImageFailures = true;
    487502
    488         if (testResult.isMissing()) {
     503        if (testResult.isMissingAllResults()) {
    489504            // FIXME: make sure that new-run-webkit-tests spits out an -actual.txt file for tests with MISSING results.
    490505            this.missingResults.push(testResult);
     
    11871202            this.appendAudioFailureLinks(testResult, resultCell);
    11881203           
    1189         if (testResult.isMissing())
     1204        if (testResult.hasMissingResult())
    11901205            this.appendActualOnlyLinks(testResult, resultCell);
    11911206
     
    12091224        if (this._resultsController.testResults.usesExpectationsFile()) {
    12101225            let expectedCell = document.createElement('td');
    1211             expectedCell.textContent = testResult.isMissing() ? '' : testResult.info.expected;
     1226            expectedCell.textContent = testResult.hasMissingResult() ? '' : testResult.info.expected;
    12121227            row.appendChild(expectedCell);
    12131228        }
     
    12361251    {
    12371252        let prefix = Utils.stripExtension(testResult.name);
    1238         if (testResult.info.is_missing_audio)
     1253        if (testResult.isMissingAudio())
    12391254            cell.innerHTML += TestResultsController.resultLink(prefix, '-actual.wav', 'audio result');
    12401255
    1241         if (testResult.info.is_missing_text)
     1256        if (testResult.isMissingText())
    12421257            cell.innerHTML += TestResultsController.resultLink(prefix, '-actual.txt', 'result');
    12431258    }
     
    12681283        }
    12691284       
    1270         if (testResult.isMissing() && testResult.isMissingImage())
     1285        if (testResult.hasMissingResult() && testResult.isMissingImage())
    12711286            result += TestResultsController.resultLink(testPrefix, '-actual.png', 'png result');
    12721287       
Note: See TracChangeset for help on using the changeset viewer.