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

Issue 2212023002: Modifying audio-testing.js to support testharness.js. (Closed)

Created:
4 years, 4 months ago by hongchan
Modified:
4 years, 4 months ago
Reviewers:
Raymond Toy
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modifying audio-testing.js to support testharness.js. This CL is to support the new testharness.js within audio-testing.js, but also keep the backward compatibility for js-test.js. The summary on changes: * Should() utility: _testPassed, _testFailed, and _assert now call assert_true() method from testharness.js when it's available. The success or error messages are printed out properly. * Audit task runner: now it initializes and finalizes the test suite for testharness.js. See the unit test included in the CL to see how it works. TEST=webaudio/unit-test-audio-testing.html BUG=634359 Committed: https://crrev.com/f908584a623a0983b8eae54a2ca7590585922301 Cr-Commit-Position: refs/heads/master@{#409948}

Patch Set 1 : Initial patch #

Total comments: 14

Patch Set 2 : Addressing feedback #

Patch Set 3 : Check for test infrastructure #

Patch Set 4 : Changing js-test.js loading order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -67 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/audiobuffer-getChannelData.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiobuffer-resample.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiobuffersource-grain.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiobuffersource-loop-comprehensive.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiobuffersource-one-sample-loop.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiobuffersource-start.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiocontext-close-basic.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-connect-audioratesignal.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-exponentialRampToValueAtTime.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-linearRampToValueAtTime.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-sampling.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-setTargetAtTime.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-setTargetAtTime-sampling.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-setValueAtTime.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-setValueCurve-duration.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-setValueCurveAtTime.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-summingjunction.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audioparam-update-value-attribute.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/audiosource-time-limits.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-allpass.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-bandpass.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-getFrequencyResponse.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-highpass.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-highshelf.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-lowpass.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-lowshelf.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-notch.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/biquad-peaking.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/convolution-mono-mono.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/convolver-setBuffer-null.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/distance-exponential.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/distance-inverse.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/distance-linear.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/dom-exceptions.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/dynamicscompressor-clear-internal-state.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/note-grain-on-play.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/note-grain-on-timing.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-detached-no-crash.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/oscillator-basic.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/panner-automation-equalpower-stereo.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/panner-equalpower.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/panner-equalpower-stereo.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/panner-loop.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js View 1 2 9 chunks +118 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-detached-no-crash.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/scriptprocessornode-zero-input-channels.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/stereopannernode-basic.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/stereopannernode-panning.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/unit-tests/jstest-test.html View 1 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/unit-tests/jstest-test-expected.txt View 1 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/unit-tests/testharness-test.html View 1 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
hongchan
PTAL.
4 years, 4 months ago (2016-08-04 17:44:51 UTC) #3
Raymond Toy
https://codereview.chromium.org/2212023002/diff/20001/third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js File third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js (right): https://codereview.chromium.org/2212023002/diff/20001/third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js#newcode329 third_party/WebKit/LayoutTests/webaudio/resources/audio-testing.js:329: window.jsTestIsAsync = true; Are you sure we always want ...
4 years, 4 months ago (2016-08-04 18:07:08 UTC) #4
hongchan
This is the result from the sample test here. I uncommented failure cases for the ...
4 years, 4 months ago (2016-08-04 18:31:37 UTC) #5
hongchan
4 years, 4 months ago (2016-08-04 21:08:30 UTC) #6
Raymond Toy
lgtm
4 years, 4 months ago (2016-08-04 21:27:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2212023002/80001
4 years, 4 months ago (2016-08-05 00:27:50 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 4 months ago (2016-08-05 00:33:33 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 00:35:56 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f908584a623a0983b8eae54a2ca7590585922301
Cr-Commit-Position: refs/heads/master@{#409948}

Powered by Google App Engine
This is Rietveld 408576698