Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / media / video-seekable.html
index 160ebae..440ead4 100644 (file)
@@ -7,12 +7,13 @@
     testDOMException("video.seekable.end(-1)", "DOMException.INDEX_SIZE_ERR");
     testDOMException("video.seekable.start(0)", "DOMException.INDEX_SIZE_ERR");
     testDOMException("video.seekable.end(0)", "DOMException.INDEX_SIZE_ERR");
-    waitForEvent('canplaythrough',
-        function () 
+    waitForEvent("loadedmetadata",
+        function ()
         {
             testExpected("video.seekable.length", 1);
             testExpected("video.seekable.start(0)", 0);
-            testExpected("video.seekable.end(0)",  0, ">");
+            testExpected("video.seekable.end(0)", 5, ">");
+            testExpected("video.seekable.end(0)", 7, "<");
             testDOMException("video.seekable.start(-1)", "DOMException.INDEX_SIZE_ERR");
             testDOMException("video.seekable.end(-1)", "DOMException.INDEX_SIZE_ERR");
             testDOMException("video.seekable.start(1)", "DOMException.INDEX_SIZE_ERR");