Changeset 242231 in webkit


Ignore:
Timestamp:
Feb 28, 2019 2:54:38 PM (5 years ago)
Author:
Devin Rousso
Message:

REGRESSION (r240644): Layout Test inspector/page/overrideSetting-ICECandidateFilteringEnabled.html is a flaky timeout
https://bugs.webkit.org/show_bug.cgi?id=194437
<rdar://problem/48008005>

Reviewed by Joseph Pecoraro.

  • inspector/page/overrideSetting-ICECandidateFilteringEnabled.html:
  • inspector/page/overrideSetting-ICECandidateFilteringEnabled-expected.txt:

Make sure to close the peer connection and data channel after each phase of the test.
Also add failure logging.

Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r242225 r242231  
     12019-02-28  Devin Rousso  <drousso@apple.com>
     2
     3        REGRESSION (r240644): Layout Test inspector/page/overrideSetting-ICECandidateFilteringEnabled.html is a flaky timeout
     4        https://bugs.webkit.org/show_bug.cgi?id=194437
     5        <rdar://problem/48008005>
     6
     7        Reviewed by Joseph Pecoraro.
     8
     9        * inspector/page/overrideSetting-ICECandidateFilteringEnabled.html:
     10        * inspector/page/overrideSetting-ICECandidateFilteringEnabled-expected.txt:
     11        Make sure to close the peer connection and data channel after each phase of the test.
     12        Also add failure logging.
     13
    1142019-02-28  Devin Rousso  <drousso@apple.com>
    215
  • trunk/LayoutTests/inspector/page/overrideSetting-ICECandidateFilteringEnabled-expected.txt

    r240644 r242231  
    44== Running test suite: Page.overrideSetting
    55-- Running test case: Page.overrideSetting.ICECandidateFilteringEnabled
     6PASS: created offer
    67PASS: Should not be able to establish a connection when filtering ice candidates.
    78Overriding ICECandidateFilteringEnabled to false...
     9PASS: created offer
     10PASS: received ICE candidate.
    811PASS: Should be able to establish a connection when filtering ice candidates.
    912Removing ICECandidateFilteringEnabled override...
     13PASS: created offer
    1014PASS: Should not be able to establish a connection when filtering ice candidates.
    1115
  • trunk/LayoutTests/inspector/page/overrideSetting-ICECandidateFilteringEnabled.html

    r240644 r242231  
    1111    let receivedCandidate = false;
    1212
     13    let dc = null;
     14
    1315    let pc = new RTCPeerConnection();
    14     pc.createDataChannel("sendDataChannel");
    1516    pc.onicecandidate = (event) => {
    1617        if (event.candidate) {
     18            if (!receivedCandidate)
     19                TestPage.addResult("PASS: received ICE candidate.");
    1720            receivedCandidate = true;
    1821            return;
    1922        }
    2023
     24        delete pc.onicecandidate;
     25        pc.close();
     26        dc.close();
     27
    2128        if (receivedCandidate) {
    22             pc.createOffer().then((offer) => {
    23                 TestPage.dispatchEventToFrontend("DataChannel", {success: true});
    24             });
     29            TestPage.dispatchEventToFrontend("DataChannel", {success: true});
    2530        } else
    2631            TestPage.dispatchEventToFrontend("DataChannel", {success: false});
     32    };
    2733
    28         delete pc.onicecandidate;
    29     };
    30     pc.createOffer().then((offer) => {
    31         pc.setLocalDescription(offer);
     34    dc = pc.createDataChannel("sendDataChannel");
     35
     36    pc.createOffer()
     37    .then((offer) => {
     38        TestPage.addResult("PASS: created offer");
     39        return pc.setLocalDescription(offer);
     40    })
     41    .catch((error) => {
     42        TestPage.addResult("FAIL: " + error);
    3243    });
    3344}
Note: See TracChangeset for help on using the changeset viewer.