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

Unified Diff: LayoutTests/imported/web-platform-tests/webrtc/promises-call.html

Issue 1188583004: update-w3c-deps import using blink 9d3793ee56e5bb1aa1eef078d848e1b0e6e4d355: (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
Index: LayoutTests/imported/web-platform-tests/webrtc/promises-call.html
diff --git a/LayoutTests/imported/web-platform-tests/webrtc/promises-call.html b/LayoutTests/imported/web-platform-tests/webrtc/promises-call.html
index e52be7502222917fff4216129a3d9c96fe2cafbb..24c83f95bb775515201365884f3e6e3756e86f5d 100644
--- a/LayoutTests/imported/web-platform-tests/webrtc/promises-call.html
+++ b/LayoutTests/imported/web-platform-tests/webrtc/promises-call.html
@@ -19,9 +19,7 @@ This test uses data only, and thus does not require fake media devices.
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../resources/vendor-prefix.js"
data-prefixed-objects=
- '[{"ancestors":["window"], "name":"RTCPeerConnection"},
- {"ancestors":["window"], "name":"RTCSessionDescription"},
- {"ancestors":["window"], "name":"RTCIceCandidate"}]'
+ '[{"ancestors":["window"], "name":"RTCPeerConnection"}]'
>
</script>
<script type="text/javascript">
@@ -33,15 +31,13 @@ This test uses data only, and thus does not require fake media devices.
var onIceCandidateToFirst = test.step_func(function(event) {
// If event.candidate is null = no more candidates.
if (event.candidate) {
- var candidate = new RTCIceCandidate(event.candidate);
- gSecondConnection.addIceCandidate(candidate);
+ gSecondConnection.addIceCandidate(event.candidate);
}
});
var onIceCandidateToSecond = test.step_func(function(event) {
if (event.candidate) {
- var candidate = new RTCIceCandidate(event.candidate);
- gFirstConnection.addIceCandidate(candidate);
+ gFirstConnection.addIceCandidate(event.candidate);
}
});
@@ -105,7 +101,7 @@ This test uses data only, and thus does not require fake media devices.
})
.then(function() {
atStep = 'Create answer';
- return gSecondConnection.createAnswer()
+ return gSecondConnection.createAnswer();
})
.then(function(answer) {
atStep = 'Set local description at second';

Powered by Google App Engine
This is Rietveld 408576698