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

Side by Side Diff: LayoutTests/fast/mediastream/RTCIceCandidate.html

Issue 1033983002: Add serializers to RTCIceCandidate and RTCSessionDescription (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-serializer
Patch Set: fix global-interface-listing expectation Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("Tests RTCIceCandidate."); 10 description("Tests RTCIceCandidate.");
11 11
12 var initializer = {candidate:"foo", sdpMid:"bar", sdpMLineIndex:6}; 12 var initializer = {candidate:"foo", sdpMid:"bar", sdpMLineIndex:6};
13 var candidate; 13 var candidate;
14 shouldNotThrow('candidate = new RTCIceCandidate(initializer);'); 14 shouldNotThrow('candidate = new RTCIceCandidate(initializer);');
15 shouldBeEqualToString('candidate.candidate', 'foo'); 15 shouldBeEqualToString('candidate.candidate', 'foo');
16 shouldBeEqualToString('candidate.sdpMid', 'bar'); 16 shouldBeEqualToString('candidate.sdpMid', 'bar');
17 shouldBe('candidate.sdpMLineIndex', '6'); 17 shouldBe('candidate.sdpMLineIndex', '6');
18 18
19 shouldNotThrow('initializer = JSON.parse(stringifyDOMObject(candidate));'); 19 shouldNotThrow('initializer = JSON.parse(JSON.stringify(candidate));');
20 20
21 shouldNotThrow('candidate = new RTCIceCandidate(initializer);'); 21 shouldNotThrow('candidate = new RTCIceCandidate(initializer);');
22 shouldBeEqualToString('candidate.candidate', 'foo'); 22 shouldBeEqualToString('candidate.candidate', 'foo');
23 shouldBeEqualToString('candidate.sdpMid', 'bar'); 23 shouldBeEqualToString('candidate.sdpMid', 'bar');
24 shouldBe('candidate.sdpMLineIndex', '6'); 24 shouldBe('candidate.sdpMLineIndex', '6');
25 25
26 shouldThrow('new RTCIceCandidate({});'); 26 shouldThrow('new RTCIceCandidate({});');
27 shouldThrow('new RTCIceCandidate(5);'); 27 shouldThrow('new RTCIceCandidate(5);');
28 shouldThrow('new RTCIceCandidate("foobar");'); 28 shouldThrow('new RTCIceCandidate("foobar");');
29 shouldThrow('new RTCIceCandidate({candidate:""});'); 29 shouldThrow('new RTCIceCandidate({candidate:""});');
30 30
31 shouldNotThrow('new RTCIceCandidate({candidate:"x"});'); 31 shouldNotThrow('new RTCIceCandidate({candidate:"x"});');
32 32
33 candidate = new RTCIceCandidate(initializer); 33 candidate = new RTCIceCandidate(initializer);
34 candidate.candidate = "bar"; 34 candidate.candidate = "bar";
35 candidate.sdpMid = "foo"; 35 candidate.sdpMid = "foo";
36 candidate.sdpMLineIndex = 0; 36 candidate.sdpMLineIndex = 0;
37 shouldBeEqualToString('candidate.candidate', 'bar'); 37 shouldBeEqualToString('candidate.candidate', 'bar');
38 shouldBeEqualToString('candidate.sdpMid', 'foo'); 38 shouldBeEqualToString('candidate.sdpMid', 'foo');
39 shouldBe('candidate.sdpMLineIndex', '0'); 39 shouldBe('candidate.sdpMLineIndex', '0');
40 40
41 41
42 window.successfullyParsed = true; 42 window.successfullyParsed = true;
43 </script> 43 </script>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW
« 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