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

Issue 2697733004: Refactor decode-audio-data-basic.html to use testharness (Closed)

Created:
3 years, 10 months ago by hongchan
Modified:
3 years, 10 months ago
Reviewers:
Raymond Toy
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor decode-audio-data-basic.html to use testharness - Replace js-test and old Audit with testharness and new Audit. - Promisefied file loader |Audit.loadFileAtUrl(fileUrl)| is added. - Refactored complex promise/callback code. - should().beResolved() now bypassing its argument to the next promise. For the first pass, I focused on preserving the test behavior. If this looks good, I will move on to the clean-up and more refactoring. BUG=688064 TEST= LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html Review-Url: https://codereview.chromium.org/2697733004 Cr-Commit-Position: refs/heads/master@{#451011} Committed: https://chromium.googlesource.com/chromium/src/+/0e7af755c6ff3377abb22925f319c8cfb699461d

Patch Set 1 : Initial Commit #

Total comments: 4

Patch Set 2 : Addressing comments #

Patch Set 3 : More refactoring (clean up #1) #

Patch Set 4 : Comments and clang-format (clean up #2) #

Total comments: 18

Patch Set 5 : Addressing feedback #

Total comments: 1

Patch Set 6 : Fixed type after l-g-t-m #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -217 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html View 1 2 3 4 5 1 chunk +145 lines, -190 lines 0 comments Download
D third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic-expected.txt View 1 2 1 chunk +0 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/resources/audit.js View 1 2 3 4 5 3 chunks +60 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
hongchan
PTAL.
3 years, 10 months ago (2017-02-14 22:28:50 UTC) #5
Raymond Toy
Looks good with just a few comments. Maybe want to add a comment somewhere that ...
3 years, 10 months ago (2017-02-14 22:47:56 UTC) #6
hongchan
This is the result from the test. ------------------------------------------- This is a testharness.js-based test. PASS # ...
3 years, 10 months ago (2017-02-14 22:54:39 UTC) #7
hongchan
On 2017/02/14 22:54:39, hongchan wrote: > This is the result from the test. > > ...
3 years, 10 months ago (2017-02-15 18:11:17 UTC) #8
Raymond Toy
On 2017/02/15 18:11:17, hongchan wrote: > On 2017/02/14 22:54:39, hongchan wrote: > > This is ...
3 years, 10 months ago (2017-02-15 18:15:48 UTC) #9
hongchan
On 2017/02/15 18:11:17, hongchan wrote: > On 2017/02/14 22:54:39, hongchan wrote: > > This is ...
3 years, 10 months ago (2017-02-15 18:23:15 UTC) #10
hongchan
For the next step (clean up #2): - Add/edit some comments. - Run clang-format on ...
3 years, 10 months ago (2017-02-15 19:18:31 UTC) #11
hongchan
Please take one last look.
3 years, 10 months ago (2017-02-15 22:49:51 UTC) #15
Raymond Toy
Just a few minor questions. https://codereview.chromium.org/2697733004/diff/120001/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html File third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html (right): https://codereview.chromium.org/2697733004/diff/120001/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html#newcode11 third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html:11: // Use offline context ...
3 years, 10 months ago (2017-02-15 23:15:53 UTC) #16
hongchan
https://codereview.chromium.org/2697733004/diff/120001/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html File third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html (right): https://codereview.chromium.org/2697733004/diff/120001/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html#newcode11 third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html:11: // Use offline context for decoding because we want ...
3 years, 10 months ago (2017-02-15 23:40:36 UTC) #17
Raymond Toy
lgtm lgtm with nits https://codereview.chromium.org/2697733004/diff/120001/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html File third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html (right): https://codereview.chromium.org/2697733004/diff/120001/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html#newcode94 third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html:94: // Step 3: compare two ...
3 years, 10 months ago (2017-02-16 03:16:30 UTC) #18
hongchan
> https://codereview.chromium.org/2697733004/diff/120001/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html#newcode94 > third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html:94: > // Step 3: compare two buffers from Step 1 and ...
3 years, 10 months ago (2017-02-16 16:35:11 UTC) #19
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/2697733004/160001
3 years, 10 months ago (2017-02-16 16:42:58 UTC) #22
Raymond Toy
On 2017/02/16 16:35:11, hongchan wrote: > > > https://codereview.chromium.org/2697733004/diff/120001/third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html#newcode94 > > > third_party/WebKit/LayoutTests/webaudio/decodeAudioData/decode-audio-data-basic.html:94: > > ...
3 years, 10 months ago (2017-02-16 16:43:49 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 17:50:16 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/0e7af755c6ff3377abb22925f319...

Powered by Google App Engine
This is Rietveld 408576698