Rubber-stamped by bdash.
[WebKit-https.git] / LayoutTests / media / video-muted.html
index 92d54b4a5565f3b3d47d99eeec8ca70dc52ab322..41ffd452a4dbff0934796c3948453de33af1057a 100644 (file)
@@ -1,10 +1,16 @@
 <video></video>
+<p>Test 'muted' attribute<p>
 <script src=video-test.js></script>
 <script>
 test("!video.muted");
-video.muted = true;
+run("video.muted = true");
 test("video.muted");
-video.muted = false;
-test("!video.muted");
-endTest();
+video.src = "content/test.mp4";
+run("video.load()");
+waitForEvent("load", function () {
+    test("video.muted");
+    run("video.muted = false");
+    test("!video.muted");
+    endTest();
+});
 </script>