Changeset 244280 in webkit


Ignore:
Timestamp:
Apr 15, 2019 12:46:34 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:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r244276 r244280  
     12019-04-15  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
    1122019-04-15  Said Abou-Hallawa  <said@apple.com>
    213
  • trunk/LayoutTests/inspector/page/overrideSetting-ICECandidateFilteringEnabled-expected.txt

    r242231 r244280  
    44== Running test suite: Page.overrideSetting
    55-- Running test case: Page.overrideSetting.ICECandidateFilteringEnabled
    6 PASS: created offer
    7 PASS: Should not be able to establish a connection when filtering ice candidates.
    86Overriding ICECandidateFilteringEnabled to false...
     7Creating data channel...
    98PASS: created offer
    109PASS: received ICE candidate.
    1110PASS: Should be able to establish a connection when filtering ice candidates.
    1211Removing ICECandidateFilteringEnabled override...
     12Creating data channel...
    1313PASS: created offer
    1414PASS: Should not be able to establish a connection when filtering ice candidates.
  • trunk/LayoutTests/inspector/page/overrideSetting-ICECandidateFilteringEnabled.html

    r242231 r244280  
    1313    let dc = null;
    1414
    15     let pc = new RTCPeerConnection();
     15    let pc = new RTCPeerConnection;
    1616    pc.onicecandidate = (event) => {
    1717        if (event.candidate) {
     
    2222        }
    2323
     24        TestPage.dispatchEventToFrontend("DataChannel", {success: !!receivedCandidate});
     25
    2426        delete pc.onicecandidate;
    2527        pc.close();
    2628        dc.close();
    27 
    28         if (receivedCandidate) {
    29             TestPage.dispatchEventToFrontend("DataChannel", {success: true});
    30         } else
    31             TestPage.dispatchEventToFrontend("DataChannel", {success: false});
    3229    };
    3330
     31    TestPage.addResult("Creating data channel...");
    3432    dc = pc.createDataChannel("sendDataChannel");
    3533
     
    4644function test()
    4745{
     46    InspectorTest.debug();
     47
    4848    let suite = InspectorTest.createAsyncSuite("Page.overrideSetting");
    4949
     
    5252        description: "Test that changing whether ice candidate filtering is enabled has an effect.",
    5353        async test() {
    54             let [defaultResult] = await Promise.all([
    55                 InspectorTest.awaitEvent("DataChannel"),
    56                 InspectorTest.evaluateInPage(`createDataChannel()`),
    57             ]);
    58             InspectorTest.expectFalse(defaultResult.data.success, "Should not be able to establish a connection when filtering ice candidates.");
    59 
    6054            InspectorTest.log("Overriding ICECandidateFilteringEnabled to false...");
    6155            await PageAgent.overrideSetting(PageAgent.Setting.ICECandidateFilteringEnabled, false);
     
    6559                InspectorTest.evaluateInPage(`createDataChannel()`),
    6660            ])
    67             InspectorTest.expectFalse(defaultResult.data.success, "Should be able to establish a connection when filtering ice candidates.");
     61            InspectorTest.expectThat(overriddenResult.data.success, "Should be able to establish a connection when filtering ice candidates.");
    6862
    6963            InspectorTest.log("Removing ICECandidateFilteringEnabled override...");
     
    7468                InspectorTest.evaluateInPage(`createDataChannel()`),
    7569            ])
    76             InspectorTest.expectFalse(defaultResult.data.success, "Should not be able to establish a connection when filtering ice candidates.");
     70            InspectorTest.expectFalse(originalResult.data.success, "Should not be able to establish a connection when filtering ice candidates.");
    7771        },
    7872    });
Note: See TracChangeset for help on using the changeset viewer.