testing also invalid_state_err on remove
authorDominique Hazael-Massieux <dom@w3.org>
Thu, 31 May 2012 20:34:36 +0200
changeset 14 e9a87cb5182b
parent 13 fd27096ce70c
child 15 56b84464e644
testing also invalid_state_err on remove
submitted/W3C/mediastreamtracklist-finished.html
--- a/submitted/W3C/mediastreamtracklist-finished.html	Thu May 31 19:43:04 2012 +0200
+++ b/submitted/W3C/mediastreamtracklist-finished.html	Thu May 31 20:34:36 2012 +0200
@@ -34,6 +34,9 @@
        assert_throws("INVALID_STATE_ERR", function () {
           video.audioTracks.add(audio.audioTracks[0]);
           }, "Adding a track from a finished stream raises an INVALID_STATE_ERR exception");
+       assert_throws("INVALID_STATE_ERR", function () {
+          audio.audioTracks.remove(audio.audioTracks[0]);
+          }, "Removing a track from a finished stream raises an INVALID_STATE_ERR exception");
      });
     t.done();
   }