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

Side by Side Diff: LayoutTests/fast/mediastream/MediaStream-add-remove-tracks.html

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 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 <link rel="stylesheet" href="../js/resources/js-test-style.css"> 4 <link rel="stylesheet" href="../js/resources/js-test-style.css">
5 <script src="../js/resources/js-test-pre.js"></script> 5 <script src="../js/resources/js-test-pre.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p id="description"></p> 8 <p id="description"></p>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 shouldBe('stream1.getAudioTracks().length', '2'); 108 shouldBe('stream1.getAudioTracks().length', '2');
109 shouldBe('stream1.getVideoTracks().length', '2'); 109 shouldBe('stream1.getVideoTracks().length', '2');
110 110
111 // when all tracks have been removed, stream.ended should return true. 111 // when all tracks have been removed, stream.ended should return true.
112 tryRemoveTrack(stream2, stream2.getAudioTracks()[0]); 112 tryRemoveTrack(stream2, stream2.getAudioTracks()[0]);
113 tryRemoveTrack(stream2, stream2.getVideoTracks()[0]); 113 tryRemoveTrack(stream2, stream2.getVideoTracks()[0]);
114 shouldBeTrue('stream2.ended'); 114 shouldBeTrue('stream2.ended');
115 115
116 stream1.stop(); 116 stream1.stop();
117 117
118 shouldThrow('stream1.addTrack(audioTrack)', '"Error: InvalidStateError: DOM Exception 11"'); 118 shouldThrow('stream1.addTrack(audioTrack)', '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
119 shouldThrow('stream1.removeTrack(audioTrack)', '"Error: InvalidStateError: D OM Exception 11"'); 119 shouldThrow('stream1.removeTrack(audioTrack)', '"InvalidStateError: An attem pt was made to use an object that is not, or is no longer, usable."');
120 120
121 setTimeout(finishJSTest, 0); 121 setTimeout(finishJSTest, 0);
122 } 122 }
123 123
124 function gotStream1(s) { 124 function gotStream1(s) {
125 stream1 = s; 125 stream1 = s;
126 getUserMedia({audio:true, video:true}, gotStream2); 126 getUserMedia({audio:true, video:true}, gotStream2);
127 } 127 }
128 128
129 getUserMedia({audio:true, video:true}, gotStream1); 129 getUserMedia({audio:true, video:true}, gotStream1);
130 130
131 window.jsTestIsAsync = true; 131 window.jsTestIsAsync = true;
132 window.successfullyParsed = true; 132 window.successfullyParsed = true;
133 </script> 133 </script>
134 <script src="../js/resources/js-test-post.js"></script> 134 <script src="../js/resources/js-test-post.js"></script>
135 </body> 135 </body>
136 </html> 136 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698