Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2636)

Unified Diff: content/test/data/media/peerconnection-call.html

Issue 12255004: Remove workaround in WebrtcBrowserTest.CallWithDataAndMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed code review comment. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/peerconnection-call.html
diff --git a/content/test/data/media/peerconnection-call.html b/content/test/data/media/peerconnection-call.html
index b7657f9bbb8096b718a543f50166265e40869db4..2a6eded5383ccea77ea7d8d6715e72a0fb581fa4 100644
--- a/content/test/data/media/peerconnection-call.html
+++ b/content/test/data/media/peerconnection-call.html
@@ -105,17 +105,8 @@
// When |secondDataChannel| receive a message, send a message back.
secondDataChannel.onmessage = function(event) {
expectEquals(event.data, sendDataString);
- // TODO(perkj): Currently we sometimes can't send a message here since
- // the the |dataChannel.readyState| has not transitioned to open yet.
- // http://code.google.com/p/webrtc/issues/detail?id=1262
- if (secondDataChannel.readyState == "open") {
- secondDataChannel.send(sendDataString);
- } else {
- secondDataChannel.onopen = function(event) {
- expectEquals('open', secondDataChannel.readyState);
- secondDataChannel.send(sendDataString);
- }
- }
+ expectEquals('open', secondDataChannel.readyState);
+ secondDataChannel.send(sendDataString);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698