Changeset 244280 in webkit
- Timestamp:
- Apr 15, 2019 12:46:34 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r244276 r244280 1 2019-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 1 12 2019-04-15 Said Abou-Hallawa <said@apple.com> 2 13 -
trunk/LayoutTests/inspector/page/overrideSetting-ICECandidateFilteringEnabled-expected.txt
r242231 r244280 4 4 == Running test suite: Page.overrideSetting 5 5 -- Running test case: Page.overrideSetting.ICECandidateFilteringEnabled 6 PASS: created offer7 PASS: Should not be able to establish a connection when filtering ice candidates.8 6 Overriding ICECandidateFilteringEnabled to false... 7 Creating data channel... 9 8 PASS: created offer 10 9 PASS: received ICE candidate. 11 10 PASS: Should be able to establish a connection when filtering ice candidates. 12 11 Removing ICECandidateFilteringEnabled override... 12 Creating data channel... 13 13 PASS: created offer 14 14 PASS: Should not be able to establish a connection when filtering ice candidates. -
trunk/LayoutTests/inspector/page/overrideSetting-ICECandidateFilteringEnabled.html
r242231 r244280 13 13 let dc = null; 14 14 15 let pc = new RTCPeerConnection ();15 let pc = new RTCPeerConnection; 16 16 pc.onicecandidate = (event) => { 17 17 if (event.candidate) { … … 22 22 } 23 23 24 TestPage.dispatchEventToFrontend("DataChannel", {success: !!receivedCandidate}); 25 24 26 delete pc.onicecandidate; 25 27 pc.close(); 26 28 dc.close(); 27 28 if (receivedCandidate) {29 TestPage.dispatchEventToFrontend("DataChannel", {success: true});30 } else31 TestPage.dispatchEventToFrontend("DataChannel", {success: false});32 29 }; 33 30 31 TestPage.addResult("Creating data channel..."); 34 32 dc = pc.createDataChannel("sendDataChannel"); 35 33 … … 46 44 function test() 47 45 { 46 InspectorTest.debug(); 47 48 48 let suite = InspectorTest.createAsyncSuite("Page.overrideSetting"); 49 49 … … 52 52 description: "Test that changing whether ice candidate filtering is enabled has an effect.", 53 53 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 60 54 InspectorTest.log("Overriding ICECandidateFilteringEnabled to false..."); 61 55 await PageAgent.overrideSetting(PageAgent.Setting.ICECandidateFilteringEnabled, false); … … 65 59 InspectorTest.evaluateInPage(`createDataChannel()`), 66 60 ]) 67 InspectorTest.expect False(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."); 68 62 69 63 InspectorTest.log("Removing ICECandidateFilteringEnabled override..."); … … 74 68 InspectorTest.evaluateInPage(`createDataChannel()`), 75 69 ]) 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."); 77 71 }, 78 72 });
Note: See TracChangeset
for help on using the changeset viewer.