Title: [105664] trunk/LayoutTests
Revision
105664
Author
[email protected]
Date
2012-01-23 17:16:15 -0800 (Mon, 23 Jan 2012)

Log Message

Switch media/audio-data-url.html layout test to base64-encoded WAV data.
https://bugs.webkit.org/show_bug.cgi?id=76759

Reviewed by Eric Carlson.

* media/audio-data-url-expected.txt:
* media/audio-data-url.html:
* platform/chromium/test_expectations.txt:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (105663 => 105664)


--- trunk/LayoutTests/ChangeLog	2012-01-24 01:10:59 UTC (rev 105663)
+++ trunk/LayoutTests/ChangeLog	2012-01-24 01:16:15 UTC (rev 105664)
@@ -1,3 +1,14 @@
+2012-01-23  Andrew Scherkus  <[email protected]>
+
+        Switch media/audio-data-url.html layout test to base64-encoded WAV data.
+        https://bugs.webkit.org/show_bug.cgi?id=76759
+
+        Reviewed by Eric Carlson.
+
+        * media/audio-data-url-expected.txt:
+        * media/audio-data-url.html:
+        * platform/chromium/test_expectations.txt:
+
 2012-01-23  Ryosuke Niwa  <[email protected]>
 
         REGRESSION(r105396): drag state is not cleared after each drag

Modified: trunk/LayoutTests/media/audio-data-url-expected.txt (105663 => 105664)


--- trunk/LayoutTests/media/audio-data-url-expected.txt	2012-01-24 01:10:59 UTC (rev 105663)
+++ trunk/LayoutTests/media/audio-data-url-expected.txt	2012-01-24 01:16:15 UTC (rev 105664)
@@ -6,6 +6,6 @@
 EVENT(loadeddata)
 EVENT(canplay)
 EVENT(canplaythrough)
-EXPECTED (mediaElement.duration.toFixed(2) == '2.94') OK
+EXPECTED (mediaElement.duration.toFixed(2) == '0.25') OK
 END OF TEST
 

Modified: trunk/LayoutTests/media/audio-data-url.html (105663 => 105664)


--- trunk/LayoutTests/media/audio-data-url.html	2012-01-24 01:10:59 UTC (rev 105663)
+++ trunk/LayoutTests/media/audio-data-url.html	2012-01-24 01:16:15 UTC (rev 105664)
@@ -3,12 +3,12 @@
         <script src=""
 
         <script>
-        
-            var data = ""
+            // 250ms of silence in 16-bit signed little endian WAV format.
+            var data = ""
 
             function canplaythrough()
             {
-                testExpected("mediaElement.duration.toFixed(2)", 2.94);
+                testExpected("mediaElement.duration.toFixed(2)", 0.25);
                 endTest();
             }
 
@@ -26,10 +26,9 @@
                 waitForEvent("canplay");
                 waitForEvent("canplaythrough", canplaythrough);
 
-                mediaElement.src = '' + data;
+                mediaElement.src = "" + data;
                 mediaElement.load();
             }
-
         </script>
     </head>
 

Modified: trunk/LayoutTests/platform/chromium/test_expectations.txt (105663 => 105664)


--- trunk/LayoutTests/platform/chromium/test_expectations.txt	2012-01-24 01:10:59 UTC (rev 105663)
+++ trunk/LayoutTests/platform/chromium/test_expectations.txt	2012-01-24 01:16:15 UTC (rev 105664)
@@ -474,7 +474,6 @@
 WONTFIX SKIP MAC : fast/dom/HTMLProgressElement/progress-element.html = TEXT
 
 // These tests are WONTFIX because they use codecs Chromium doesn't support.
-WONTFIX SKIP : media/audio-data-url.html = TIMEOUT FAIL
 WONTFIX SKIP : media/audio-mpeg-supported.html = TIMEOUT FAIL
 WONTFIX SKIP : media/audio-mpeg4-supported.html = TIMEOUT FAIL
 WONTFIX SKIP : media/media-can-play-mpeg-audio.html = TEXT
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to