Changeset 250836 in webkit
- Timestamp:
- Oct 8, 2019 9:55:18 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r250824 r250836 1 2019-10-08 Youenn Fablet <youenn@apple.com> 2 3 Simplify data channel buffer amount low tests 4 https://bugs.webkit.org/show_bug.cgi?id=202693 5 6 Reviewed by Eric Carlson. 7 8 Neither of these tests need to handle a remoteChannel. 9 Remove the related code and remove variables that are also unneeded. 10 11 * webrtc/datachannel/bufferedAmountLowThreshold-default.html: 12 * webrtc/datachannel/bufferedAmountLowThreshold.html: 13 1 14 2019-10-08 Wenson Hsieh <wenson_hsieh@apple.com> 2 15 -
trunk/LayoutTests/webrtc/datachannel/bufferedAmountLowThreshold-default.html
r230493 r250836 15 15 16 16 var localChannel; 17 var remoteChannel;18 17 19 18 function closeDataChannels() { 20 19 localChannel.close(); 21 remoteChannel.close();22 20 closeConnections(); 23 21 } … … 33 31 } 34 32 35 function receiveMessages(event) {36 if (++counter === 1)37 return;38 }39 40 33 promise_test((test) => { 41 counter = 0;42 var gotEvent = false;43 34 return new Promise((resolve, reject) => { 44 35 createConnections((localConnection) => { … … 50 41 assert_equals(localChannel.bufferedAmountLowThreshold, 0, "default bufferedAmountLowThreshold value"); 51 42 }, (remoteConnection) => { 52 remoteConnection.ondatachannel = (event) => {53 remoteChannel = event.channel;54 remoteChannel.onmessage = receiveMessages;55 };56 43 }); 57 44 setTimeout(() => reject('timed out'), 5000); -
trunk/LayoutTests/webrtc/datachannel/bufferedAmountLowThreshold.html
r230493 r250836 15 15 16 16 var localChannel; 17 var remoteChannel;18 17 19 18 function closeDataChannels() { 20 19 localChannel.close(); 21 remoteChannel.close();22 20 closeConnections(); 23 21 } … … 26 24 for (var cptr = 0; cptr < 10; ++cptr) 27 25 longString += longString; 28 29 function receiveMessages(event) {30 if (++counter === 1)31 return;32 }33 26 34 27 function sendContinuouslyMessages(channel) … … 44 37 45 38 promise_test((test) => { 46 counter = 0;47 var gotEvent = false;48 39 return new Promise((resolve, reject) => { 49 40 createConnections((localConnection) => { … … 57 48 localChannel.bufferedAmountLowThreshold = 200000; 58 49 }, (remoteConnection) => { 59 remoteConnection.ondatachannel = (event) => {60 remoteChannel = event.channel;61 remoteChannel.onmessage = receiveMessages;62 };63 50 }); 64 51 setTimeout(() => reject('timed out'), 5000);
Note: See TracChangeset
for help on using the changeset viewer.