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

Unified Diff: LayoutTests/fast/mediastream/RTCIceCandidate.html

Issue 187673002: MediaStream API: Update RTCIceCandidate to match the Spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test Created 6 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 | LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/mediastream/RTCIceCandidate.html
diff --git a/LayoutTests/fast/mediastream/RTCIceCandidate.html b/LayoutTests/fast/mediastream/RTCIceCandidate.html
index 552f0ae129d0b65df3f9e20f9499bddc088e49d5..235f67020103c9b4cc6884fd4d541535365a7593 100644
--- a/LayoutTests/fast/mediastream/RTCIceCandidate.html
+++ b/LayoutTests/fast/mediastream/RTCIceCandidate.html
@@ -12,15 +12,15 @@ description("Tests RTCIceCandidate.");
var initializer = {candidate:"foo", sdpMid:"bar", sdpMLineIndex:6};
var candidate;
shouldNotThrow('candidate = new RTCIceCandidate(initializer);');
-shouldBe('candidate.candidate', '"foo"');
-shouldBe('candidate.sdpMid', '"bar"');
+shouldBeEqualToString('candidate.candidate', 'foo');
+shouldBeEqualToString('candidate.sdpMid', 'bar');
shouldBe('candidate.sdpMLineIndex', '6');
shouldNotThrow('initializer = JSON.parse(JSON.stringify(candidate));');
shouldNotThrow('candidate = new RTCIceCandidate(initializer);');
-shouldBe('candidate.candidate', '"foo"');
-shouldBe('candidate.sdpMid', '"bar"');
+shouldBeEqualToString('candidate.candidate', 'foo');
+shouldBeEqualToString('candidate.sdpMid', 'bar');
shouldBe('candidate.sdpMLineIndex', '6');
shouldThrow('new RTCIceCandidate({});');
@@ -30,6 +30,15 @@ shouldThrow('new RTCIceCandidate({candidate:""});');
shouldNotThrow('new RTCIceCandidate({candidate:"x"});');
+candidate = new RTCIceCandidate(initializer);
+candidate.candidate = "bar";
+candidate.sdpMid = "foo";
+candidate.sdpMLineIndex = 0;
+shouldBeEqualToString('candidate.candidate', 'bar');
+shouldBeEqualToString('candidate.sdpMid', 'foo');
+shouldBe('candidate.sdpMLineIndex', '0');
+
+
window.successfullyParsed = true;
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698