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

Unified Diff: chrome/test/data/webrtc/manual/peerconnection_manual.js

Issue 405093004: Added dataChannel.id text field to peerconnection.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 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 | « chrome/test/data/webrtc/manual/peerconnection.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/manual/peerconnection_manual.js
diff --git a/chrome/test/data/webrtc/manual/peerconnection_manual.js b/chrome/test/data/webrtc/manual/peerconnection_manual.js
index 1a0b8e6d7902466a3b3624959d2c7de64766ce00..2823e4d1dca12fd6a1851a2fbb32e6e8c99ed21f 100644
--- a/chrome/test/data/webrtc/manual/peerconnection_manual.js
+++ b/chrome/test/data/webrtc/manual/peerconnection_manual.js
@@ -968,6 +968,12 @@ function onDataChannelReadyStateChange_() {
var readyState = global.dataChannel.readyState;
print_('DataChannel state:' + readyState);
global.dataStatusCallback(readyState);
+ // Display dataChannel.id only when dataChannel is active/open.
+ if (global.dataChannel.readyState == 'open') {
+ $('data-channel-id').value = global.dataChannel.id;
+ } else if (global.dataChannel.readyState == 'closed') {
+ $('data-channel-id').value = '';
+ }
}
/**
« no previous file with comments | « chrome/test/data/webrtc/manual/peerconnection.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698