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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js

Issue 2810413004: Move late-start-testing.js to only user (Closed)
Patch Set: Remove file Created 3 years, 8 months 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
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-late-start.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js
diff --git a/third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js b/third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js
deleted file mode 100644
index 2d6dc0b08038da72329e45084d5203a197c728e2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/resources/late-start-testing.js
+++ /dev/null
@@ -1,47 +0,0 @@
-function runLateStartTest(audit, context, node) {
-
- // Set up a dummy signal path to keep the audio context running and spend
- // processing time before calling start(0).
- var osc = context.createOscillator();
- var silent = context.createGain();
-
- osc.connect(silent);
- silent.connect(context.destination);
- silent.gain.setValueAtTime(0.0, 0);
- osc.start();
-
- node.connect(context.destination);
-
- // Task: schedule a suspend and start rendering.
- audit.define('test-late-start', (task, should) => {
- // The node's start time will be clamped to the render quantum boundary
- // >0.1 sec. Thus the rendered buffer will have non-zero frames.
- // See issue: crbug.com/462167
- context.suspend(0.1).then(() => {
- node.start(0);
- context.resume();
- });
-
- // Start rendering and verify result: this verifies if 1) the rendered
- // buffer contains at least one non-zero value and 2) the non-zero value is
- // found later than the first output sample.
- context.startRendering().then(function (buffer) {
- var nonZeroValueIndex = -1;
- var channelData = buffer.getChannelData(0);
- for (var i = 0; i < channelData.length; i++) {
- if (channelData[i] !== 0) {
- nonZeroValueIndex = i;
- break;
- }
- }
-
- should(nonZeroValueIndex, 'The index of first non-zero value')
- .notBeEqualTo(-1);
- should(channelData[0], 'The first sample value')
- .beEqualTo(0);
- task.done();
- });
- });
-
- audit.run();
-}
« no previous file with comments | « third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-late-start.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698