2009-07-12 Eric Carlson <eric.carlson@apple.com>
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jul 2009 01:43:29 +0000 (01:43 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jul 2009 01:43:29 +0000 (01:43 +0000)
        Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=27197
        QuickTime supports data: urls, add a layout test.

        * media/audio-data-url-expected.txt: Added.
        * media/audio-data-url.html: Added.
            New test.

        * platform/gtk/Skipped:
            Skip the new test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@45783 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/media/audio-data-url-expected.txt [new file with mode: 0644]
LayoutTests/media/audio-data-url.html [new file with mode: 0644]
LayoutTests/platform/gtk/Skipped

index 975d82d..19754d4 100644 (file)
@@ -1,3 +1,17 @@
+2009-07-12  Eric Carlson  <eric.carlson@apple.com>
+
+        Reviewed by Dan Bernstein.
+
+        https://bugs.webkit.org/show_bug.cgi?id=27197
+        QuickTime supports data: urls, add a layout test.
+
+        * media/audio-data-url-expected.txt: Added.
+        * media/audio-data-url.html: Added.
+            New test.
+
+        * platform/gtk/Skipped:
+            Skip the new test.
+
 2009-07-12  Daniel Bates  <dbates@intudata.com>
 
         Reviewed by Darin Adler.
diff --git a/LayoutTests/media/audio-data-url-expected.txt b/LayoutTests/media/audio-data-url-expected.txt
new file mode 100644 (file)
index 0000000..702aebd
--- /dev/null
@@ -0,0 +1,12 @@
+Test that audio element can use a data: url
+
+EVENT(loadstart)
+EVENT(durationchange)
+EVENT(loadedmetadata)
+EVENT(loadeddata)
+EVENT(canplay)
+EVENT(canplaythrough)
+EVENT(load)
+EXPECTED (media.duration.toFixed(2) == '2.94') OK
+END OF TEST
+
diff --git a/LayoutTests/media/audio-data-url.html b/LayoutTests/media/audio-data-url.html
new file mode 100644 (file)
index 0000000..07cb292
--- /dev/null
@@ -0,0 +1,41 @@
+<html>
+    <head>
+        <script src=video-test.js></script>
+
+        <script>
+        
+            var data = "AAAAGGZ0eXAzZ3A1AAABADNncDUzZ3A0AAADVW1vb3YAAABsbXZoZAAAAADGfy3Hxn8txwAAAlgAAAbmAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAALhdHJhawAAAFx0a2hkAAAAAcZ/LcfGfy3HAAAAAQAAAAAAAAbmAAAAAAAAAAAAAAAAAQAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAJGVkdHMAAAAcZWxzdAAAAAAAAAABAAAG5gAAAAAAAQAAAAACWW1kaWEAAAAgbWRoZAAAAADGfy3Hxn8txwAAPoAAALgAFccAAAAAADpoZGxyAAAAAAAAAABzb3VuAAAAAAAAAAAAAAAAQXBwbGUgU291bmQgTWVkaWEgSGFuZGxlcgAAAAH3bWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAG7c3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAD6AAAAAAAAzZXNkcwAAAAADgICAIgAAAASAgIAUQBUAGAAAAAAAAAB9AAWAgIACFBAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAALgAABAAAAAA0c3RzYwAAAAAAAAADAAAAAQAAAAcAAAABAAAAAgAAAAUAAAABAAAACQAAAAQAAAABAAAAzHN0c3oAAAAAAAAAAAAAAC4AAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAA8AAAAN4AAADjAAAAzQAAAOEAAADyAAAA5gAAAQQAAAERAAABDQAAAQEAAAESAAAA7AAAAREAA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VTjufX5vBHGnzeEyO4nTjiwO4gDY+bGHc8cWcU0CmgUl/NNZnT/AP8V/GYFP+UVZOjSTQKiOgqoTQVCaOjUX/KSsvmKhBYB5MINNCoUX6007uKCgo7C6zQo67wsuaFFQVEdBXG/FVQmnhBQV3sCqZoU050bQa/lWTo2y0FiCgo6513qhWRgaIwEQwGA6LMH/rjpFtLmY+AfEPEFP4x/h/ADyfxCnx8NjI37+4yZgAMnwDzYP4xxfxAB5oDPCA/mAAGTMAPeHJmAAz+/vD8Nn+DaA7w=";
+
+            function loaded()
+            {
+                testExpected("media.duration.toFixed(2)", 2.94);
+                endTest();
+            }
+
+            function start()
+            {
+                media = new Audio();
+
+                waitForEvent("error");
+                waitForEvent("loadstart");
+                waitForEvent("waiting");
+                waitForEvent("ratechange");
+                waitForEvent("durationchange");
+                waitForEvent("loadedmetadata");
+                waitForEvent("loadeddata");
+                waitForEvent("canplay");
+                waitForEvent("canplaythrough");
+                waitForEvent("load");
+
+                media.onload = loaded;
+                media.src = 'data:audio/3gpp;base64,' + data;
+                media.load();
+            }
+
+        </script>
+    </head>
+
+    <body onload="start()">
+        <p>Test that audio element can use a data: url</p>
+    </body>
+</html>
index e68e860..4efbdbf 100644 (file)
@@ -4084,6 +4084,7 @@ media/video-timeupdate-during-playback.html
 media/video-transformed.html
 media/video-zoom-controls.html
 media/video-zoom.html
+media/audio-data-url.html
 
 # Tests in plugins/ directory
 #   These tests require ObjC plugin, do not bother trying to get them to work