Changeset 242231 in webkit
- Timestamp:
- Feb 28, 2019 2:54:38 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r242225 r242231 1 2019-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 1 14 2019-02-28 Devin Rousso <drousso@apple.com> 2 15 -
trunk/LayoutTests/inspector/page/overrideSetting-ICECandidateFilteringEnabled-expected.txt
r240644 r242231 4 4 == Running test suite: Page.overrideSetting 5 5 -- Running test case: Page.overrideSetting.ICECandidateFilteringEnabled 6 PASS: created offer 6 7 PASS: Should not be able to establish a connection when filtering ice candidates. 7 8 Overriding ICECandidateFilteringEnabled to false... 9 PASS: created offer 10 PASS: received ICE candidate. 8 11 PASS: Should be able to establish a connection when filtering ice candidates. 9 12 Removing ICECandidateFilteringEnabled override... 13 PASS: created offer 10 14 PASS: Should not be able to establish a connection when filtering ice candidates. 11 15 -
trunk/LayoutTests/inspector/page/overrideSetting-ICECandidateFilteringEnabled.html
r240644 r242231 11 11 let receivedCandidate = false; 12 12 13 let dc = null; 14 13 15 let pc = new RTCPeerConnection(); 14 pc.createDataChannel("sendDataChannel");15 16 pc.onicecandidate = (event) => { 16 17 if (event.candidate) { 18 if (!receivedCandidate) 19 TestPage.addResult("PASS: received ICE candidate."); 17 20 receivedCandidate = true; 18 21 return; 19 22 } 20 23 24 delete pc.onicecandidate; 25 pc.close(); 26 dc.close(); 27 21 28 if (receivedCandidate) { 22 pc.createOffer().then((offer) => { 23 TestPage.dispatchEventToFrontend("DataChannel", {success: true}); 24 }); 29 TestPage.dispatchEventToFrontend("DataChannel", {success: true}); 25 30 } else 26 31 TestPage.dispatchEventToFrontend("DataChannel", {success: false}); 32 }; 27 33 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); 32 43 }); 33 44 }
Note: See TracChangeset
for help on using the changeset viewer.