https://bugs.webkit.org/show_bug.cgi?id=88794
Patch by Raymond Toy <rtoy@google.com> on 2012-06-25
Reviewed by Chris Rogers.
New tests and expected results
* webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
* webaudio/codec-tests/aac/vbr-128kbps-44khz.html: Added.
* webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
* webaudio/codec-tests/mp3/128kbps-44khz.html: Added.
* webaudio/codec-tests/vorbis/vbr-128kbps-44khz-expected.wav: Added.
* webaudio/codec-tests/vorbis/vbr-128kbps-44khz.html: Added.
* webaudio/codec-tests/vorbis/vbr-70kbps-44khz-expected.wav: Added.
* webaudio/codec-tests/vorbis/vbr-70kbps-44khz.html: Added.
* webaudio/codec-tests/vorbis/vbr-96kbps-44khz-expected.wav: Added.
* webaudio/codec-tests/vorbis/vbr-96kbps-44khz.html: Added.
* webaudio/codec-tests/wav/24bit-22khz-resample-expected.wav: Added.
* webaudio/codec-tests/wav/24bit-22khz-resample.html: Added.
* webaudio/codec-tests/wav/24bit-44khz-expected.wav: Added.
* webaudio/codec-tests/wav/24bit-44khz.html: Added.
* webaudio/resources/audio-codec-test.js: Added.
(runDecodingTest):
(finishedLoading):
Media files for the tests
* webaudio/resources/media/128kbps-44khz.mp3: Added.
* webaudio/resources/media/24bit-22khz.wav: Added.
* webaudio/resources/media/24bit-44khz.wav: Added.
* webaudio/resources/media/vbr-128kbps-44khz.m4a: Added.
* webaudio/resources/media/vbr-128kbps-44khz.ogg: Added.
* webaudio/resources/media/vbr-70kbps-44khz.ogg: Added.
* webaudio/resources/media/vbr-96kbps-44khz.ogg: Added.
Platform-specific expected results
* platform/chromium-linux/webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
* platform/chromium-linux/webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
* platform/chromium-linux/webaudio/codec-tests/wav/24bit-22khz-resample-expected.wav: Added.
* platform/chromium-mac/webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
* platform/chromium-mac/webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
* platform/chromium-win/webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
* platform/chromium-win/webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
* platform/chromium-win/webaudio/codec-tests/wav/24bit-22khz-resample-expected.wav: Added.
New test expectations
* platform/chromium/TestExpectations: Disable aac/mp3 tests until bots have support.
* platform/efl/TestExpectations: Disable all webaudio codec tests
* platform/gtk/TestExpectations: Disable all webaudio codec tests
* platform/mac/TestExpectations: Disable all webaudio codec tests
* platform/qt/TestExpectations: Disable all webaudio codec tests
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121182
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-06-25 Raymond Toy <rtoy@google.com>
+
+ Add layout tests for audio codecs
+ https://bugs.webkit.org/show_bug.cgi?id=88794
+
+ Reviewed by Chris Rogers.
+
+ New tests and expected results
+ * webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
+ * webaudio/codec-tests/aac/vbr-128kbps-44khz.html: Added.
+ * webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
+ * webaudio/codec-tests/mp3/128kbps-44khz.html: Added.
+ * webaudio/codec-tests/vorbis/vbr-128kbps-44khz-expected.wav: Added.
+ * webaudio/codec-tests/vorbis/vbr-128kbps-44khz.html: Added.
+ * webaudio/codec-tests/vorbis/vbr-70kbps-44khz-expected.wav: Added.
+ * webaudio/codec-tests/vorbis/vbr-70kbps-44khz.html: Added.
+ * webaudio/codec-tests/vorbis/vbr-96kbps-44khz-expected.wav: Added.
+ * webaudio/codec-tests/vorbis/vbr-96kbps-44khz.html: Added.
+ * webaudio/codec-tests/wav/24bit-22khz-resample-expected.wav: Added.
+ * webaudio/codec-tests/wav/24bit-22khz-resample.html: Added.
+ * webaudio/codec-tests/wav/24bit-44khz-expected.wav: Added.
+ * webaudio/codec-tests/wav/24bit-44khz.html: Added.
+ * webaudio/resources/audio-codec-test.js: Added.
+ (runDecodingTest):
+ (finishedLoading):
+
+ Media files for the tests
+ * webaudio/resources/media/128kbps-44khz.mp3: Added.
+ * webaudio/resources/media/24bit-22khz.wav: Added.
+ * webaudio/resources/media/24bit-44khz.wav: Added.
+ * webaudio/resources/media/vbr-128kbps-44khz.m4a: Added.
+ * webaudio/resources/media/vbr-128kbps-44khz.ogg: Added.
+ * webaudio/resources/media/vbr-70kbps-44khz.ogg: Added.
+ * webaudio/resources/media/vbr-96kbps-44khz.ogg: Added.
+
+ Platform-specific expected results
+ * platform/chromium-linux/webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
+ * platform/chromium-linux/webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
+ * platform/chromium-linux/webaudio/codec-tests/wav/24bit-22khz-resample-expected.wav: Added.
+ * platform/chromium-mac/webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
+ * platform/chromium-mac/webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
+ * platform/chromium-win/webaudio/codec-tests/aac/vbr-128kbps-44khz-expected.wav: Added.
+ * platform/chromium-win/webaudio/codec-tests/mp3/128kbps-44khz-expected.wav: Added.
+ * platform/chromium-win/webaudio/codec-tests/wav/24bit-22khz-resample-expected.wav: Added.
+
+ New test expectations
+ * platform/chromium/TestExpectations: Disable aac/mp3 tests until bots have support.
+ * platform/efl/TestExpectations: Disable all webaudio codec tests
+ * platform/gtk/TestExpectations: Disable all webaudio codec tests
+ * platform/mac/TestExpectations: Disable all webaudio codec tests
+ * platform/qt/TestExpectations: Disable all webaudio codec tests
+
2012-06-25 Huang Dongsung <luxtella@company100.net>
[Texmap] TextureMapperPaintOptions should keep current surface.
BUGWK67116 DEBUG : compositing/layer-creation/overflow-scroll-overlap.html = PASS TEXT
+// Skip test of proprietary codecs until they're enabled on the bots.
+BUGWK88794 SKIP : webaudio/codec-tests/aac = PASS
+BUGWK88794 SKIP : webaudio/codec-tests/mp3 = PASS
+
BUGCR131687 RELEASE : fast/js/dfg-double-vote-fuzz.html = PASS TEXT
BUGWK88593 : fast/table/multiple-captions-display.xhtml = PASS IMAGE IMAGE+TEXT
// UndoManager is not yet enabled.
BUGWK87908 SKIP : editing/undomanager = PASS
+// Disable webaudio codec tests, including proprietary codecs.
+BUGWK88794 SKIP : webaudio/codec-tests = PASS
+
//////////////////////////////////////////////////////////////////////////////////////////
// CRASHES
//////////////////////////////////////////////////////////////////////////////////////////
BUGWK31508 SKIP : storage/websql/transaction-error-callback-isolated-world.html = TEXT
BUGWK31508 SKIP : storage/websql/transaction-success-callback-isolated-world.html = TEXT
+// Disable webaudio codec tests, including proprietary codecs.
+BUGWK88794 SKIP : webaudio/codec-tests = PASS
+
//////////////////////////////////////////////////////////////////////////////////////////
// End of Expected failures
//////////////////////////////////////////////////////////////////////////////////////////
BUGWK85918 : compositing/backface-visibility/backface-visibility-3d.html = IMAGE
BUGWK85918 : compositing/backface-visibility/backface-visibility-hierarchical-transform.html = IMAGE
BUGWK85918 : compositing/backface-visibility/backface-visibility-non3d.html = IMAGE
+
+// Disable webaudio codec tests, including proprietary codecs.
+BUGWK88794 SKIP : webaudio/codec-tests = PASS
+
// LayoutTestController::setAutomaticLinkDetectionEnabled isn't implemented
BUGWK85463 SKIP : editing/inserting/typing-space-to-trigger-smart-link.html = PASS
+
+// Disable webaudio codec tests, including proprietary codecs.
+BUGWK88794 SKIP : webaudio/codec-tests = PASS
--- /dev/null
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <script type="text/javascript" src="../../resources/audio-codec-test.js"></script>
+ <script type="text/javascript" src="../../resources/audio-testing.js"></script>
+ <script type="text/javascript" src="../../resources/buffer-loader.js"></script>
+ <script>
+ var url = "../../resources/media/vbr-128kbps-44khz.m4a";
+
+ window.onload = function () { runDecodingTest(url) };
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <script type="text/javascript" src="../../resources/audio-codec-test.js"></script>
+ <script type="text/javascript" src="../../resources/audio-testing.js"></script>
+ <script type="text/javascript" src="../../resources/buffer-loader.js"></script>
+ <script>
+ var url = "../../resources/media/128kbps-44khz.mp3";
+
+ window.onload = function () { runDecodingTest(url) };
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <script type="text/javascript" src="../../resources/audio-codec-test.js"></script>
+ <script type="text/javascript" src="../../resources/audio-testing.js"></script>
+ <script type="text/javascript" src="../../resources/buffer-loader.js"></script>
+ <script>
+ var url = "../../resources/media/vbr-128kbps-44khz.ogg";
+
+ window.onload = function () { runDecodingTest(url) };
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <script type="text/javascript" src="../../resources/audio-codec-test.js"></script>
+ <script type="text/javascript" src="../../resources/audio-testing.js"></script>
+ <script type="text/javascript" src="../../resources/buffer-loader.js"></script>
+ <script>
+ var url = "../../resources/media/vbr-70kbps-44khz.ogg";
+
+ window.onload = function () { runDecodingTest(url) };
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <script type="text/javascript" src="../../resources/audio-codec-test.js"></script>
+ <script type="text/javascript" src="../../resources/audio-testing.js"></script>
+ <script type="text/javascript" src="../../resources/buffer-loader.js"></script>
+ <script>
+ var url = "../../resources/media/vbr-96kbps-44khz.ogg";
+
+ window.onload = function () { runDecodingTest(url) };
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <script type="text/javascript" src="../../resources/audio-codec-test.js"></script>
+ <script type="text/javascript" src="../../resources/audio-testing.js"></script>
+ <script type="text/javascript" src="../../resources/buffer-loader.js"></script>
+ <script>
+ // Test 24bit WAV decoder, 22.05 kHz sample rate. This also tests the resampler because the
+ // context is running at 44.1 kHz.
+ var url = "../../resources/media/24bit-22khz.wav";
+
+ window.onload = function () { runDecodingTest(url) };
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <script type="text/javascript" src="../../resources/audio-codec-test.js"></script>
+ <script type="text/javascript" src="../../resources/audio-testing.js"></script>
+ <script type="text/javascript" src="../../resources/buffer-loader.js"></script>
+ <script>
+ var url = "../../resources/media/24bit-44khz.wav";
+
+ window.onload = function () { runDecodingTest(url) };
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
--- /dev/null
+var defaultSampleRate = 44100.0;
+var lengthInSeconds = 1;
+
+var context = 0;
+var bufferLoader = 0;
+
+// Run test by loading the file specified by |url|. An optional sample rate can be given to
+// select a context with a different sample rate. The default value is |defaultSampleRate|.
+function runDecodingTest(url, optionalSampleRate)
+{
+ if (!window.layoutTestController)
+ return;
+
+ var sampleRate = (typeof optionalSampleRate === "undefined") ? defaultSampleRate : optionalSampleRate;
+
+ // Create offline audio context.
+ context = new webkitAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
+
+ bufferLoader = new BufferLoader(
+ context,
+ [ url ],
+ finishedLoading
+ );
+
+ bufferLoader.load();
+ layoutTestController.waitUntilDone();
+}
+
+function finishedLoading(bufferList)
+{
+ layoutTestController.setAudioData(createAudioData(bufferList[0]));
+ layoutTestController.notifyDone();
+}
+