Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / media / media-controller-playback.html
index d283052..8b7f86e 100644 (file)
@@ -23,9 +23,9 @@
             consoleWrite("EVENT(canplaythrough)");
             controller.removeEventListener('canplaythrough', canplaythrough, true);
 
-            testException("controller.currentTime = -Infinity", '"TypeError: Failed to set the \'currentTime\' property on \'MediaController\': The value provided is infinite."');
-            testException("controller.currentTime = Infinity", '"TypeError: Failed to set the \'currentTime\' property on \'MediaController\': The value provided is infinite."');
-            testException("controller.currentTime = NaN", '"TypeError: Failed to set the \'currentTime\' property on \'MediaController\': The value provided is not a number."');
+            testException("controller.currentTime = -Infinity", '"TypeError: Failed to set the \'currentTime\' property on \'MediaController\': The provided double value is non-finite."');
+            testException("controller.currentTime = Infinity", '"TypeError: Failed to set the \'currentTime\' property on \'MediaController\': The provided double value is non-finite."');
+            testException("controller.currentTime = NaN", '"TypeError: Failed to set the \'currentTime\' property on \'MediaController\': The provided double value is non-finite."');
 
             controller.addEventListener('playing', playing, true);
             run('controller.play()');
@@ -37,6 +37,7 @@
             testExpected('controller.paused', false);
             controller.addEventListener('ended', ended, true);
             run('controller.currentTime = 5');
+            testExpected('controller.currentTime', 5);
             testExpected('video.currentTime', 5);
             testExpected('video2.currentTime', 5);
         }