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

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

Issue 821303006: bindings: Fixes layouttests when moving attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed performance memory tests and addressed review comments. Created 5 years, 11 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 | Annotate | Revision Log
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 RTCSessionDescription."); 10 description("Tests RTCSessionDescription.");
11 11
12 var initializer = {type:"offer", sdp:"foobar"}; 12 var initializer = {type:"offer", sdp:"foobar"};
13 var sessionDescription; 13 var sessionDescription;
14 shouldNotThrow("sessionDescription = new RTCSessionDescription(initializer);"); 14 shouldNotThrow("sessionDescription = new RTCSessionDescription(initializer);");
15 shouldBe('sessionDescription.type', '"offer"'); 15 shouldBe('sessionDescription.type', '"offer"');
16 shouldBe('sessionDescription.sdp', '"foobar"'); 16 shouldBe('sessionDescription.sdp', '"foobar"');
17 17
18 shouldNotThrow('initializer = JSON.parse(JSON.stringify(sessionDescription));'); 18 shouldNotThrow('initializer = JSON.parse(stringifyDOMObject(sessionDescription)) ;');
19 19
20 shouldNotThrow("sessionDescription = new RTCSessionDescription(initializer);"); 20 shouldNotThrow("sessionDescription = new RTCSessionDescription(initializer);");
21 shouldBe('sessionDescription.type', '"offer"'); 21 shouldBe('sessionDescription.type', '"offer"');
22 shouldBe('sessionDescription.sdp', '"foobar"'); 22 shouldBe('sessionDescription.sdp', '"foobar"');
23 23
24 shouldNotThrow("new RTCSessionDescription();"); 24 shouldNotThrow("new RTCSessionDescription();");
25 shouldNotThrow("new RTCSessionDescription({});"); 25 shouldNotThrow("new RTCSessionDescription({});");
26 shouldThrow("new RTCSessionDescription(5);"); 26 shouldThrow("new RTCSessionDescription(5);");
27 shouldThrow("new RTCSessionDescription('foobar');"); 27 shouldThrow("new RTCSessionDescription('foobar');");
28 shouldThrow("new RTCSessionDescription({type:'foobar', sdp:'x'});"); 28 shouldThrow("new RTCSessionDescription({type:'foobar', sdp:'x'});");
29 shouldNotThrow("new RTCSessionDescription({type:'offer', sdp:''});"); 29 shouldNotThrow("new RTCSessionDescription({type:'offer', sdp:''});");
30 30
31 shouldNotThrow("new RTCSessionDescription({type:'offer', sdp:'x'});"); 31 shouldNotThrow("new RTCSessionDescription({type:'offer', sdp:'x'});");
32 shouldNotThrow("new RTCSessionDescription({type:'answer', sdp:'x'});"); 32 shouldNotThrow("new RTCSessionDescription({type:'answer', sdp:'x'});");
33 shouldNotThrow("new RTCSessionDescription({type:'pranswer', sdp:'x'});"); 33 shouldNotThrow("new RTCSessionDescription({type:'pranswer', sdp:'x'});");
34 34
35 window.successfullyParsed = true; 35 window.successfullyParsed = true;
36 </script> 36 </script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698