Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html

Issue 2581463002: Refactor WebAudio test directory (Closed)
Patch Set: Use correct path for wav result files Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html b/third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html
deleted file mode 100644
index 66e6193385851c4edf5b78cf1282d77a24394c12..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>Validate Reduction Value of DynamicsComporessor after Disabling</title>
- <script src="../resources/js-test.js"></script>
- <script src="resources/compatibility.js"></script>
- <script src="resources/audit-util.js"></script>
- <script src="resources/audio-testing.js"></script>
- </head>
-
- <body>
- <script>
- description("Validate Reduction Value of DynamicsComporessor after Disabling");
-
- var context;
- var buffer;
- var source;
- var compressor;
- var renderedData;
-
- var sampleRate = 44100;
- var testDurationSamples = 44100;
-
- function checkResult (event) {
-
- renderedData = event.renderedBuffer.getChannelData(0);
-
- // Check that the reduction value is 0.0.
- if (compressor.reduction !== 0.0) {
- testFailed("Expected reduction of 0.0, but the value is " + compressor.reduction);
- }
- else {
- testPassed("Reduction is 0.0");
- }
-
- finishJSTest();
- }
-
- function runTest() {
- window.jsTestIsAsync = true;
-
- // Create the offline context for the test.
- context = new OfflineAudioContext(1, testDurationSamples, sampleRate);
- context.oncomplete = checkResult;
-
- // Create the constant sample buffer of 0.5 sec.
- buffer = createConstantBuffer(context, testDurationSamples / 2, 1);
-
- // Create compressor and use default parameters for the compression.
- compressor = context.createDynamicsCompressor();
-
- // Create the source and connect it to the destination
- source = context.createBufferSource();
- source.buffer = buffer;
- source.connect(compressor);
- compressor.connect(context.destination);
- source.start(0.0);
-
- // Render it!
- context.startRendering();
- }
-
- runTest();
- succesfullyParsed = true;
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698