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

Issue 2611133003: Convert AudioContext Audit tests to testharness (Closed)

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

Description

Convert AudioContext Audit tests to testharness Conversion done using this script: for f in `grep -l Audit *.html` do # Replace js-test with testharness and add testharnessreport.js sed -i 's;\(.*\)\(<script.*\)js-test.js\(.*\);\1\2testharness.js\3\ \1\2testharnessreport.js\3 ;' $f # Remove old js-test methods that no longer exist. sed -i '/^[ ]*\(description(.*)\|finishJSTest()\);[ ]*$/d' $f # Remove jsTestIsAsync stuff sed -i '/^[ ]*window.jsTestIsAsync *= *true;[ ]*$/d' $f # Remove expected results file. base=`basename $f .html` git rm $base-expected.txt done Since the original tests didn't actually use any of the old Audit.Should() functions, we took this opportunity to convert it to the new Audit.should() because we had to convert the old js-test functions anyway. BUG=678701 TEST=AudioContext/audiocontext-close.html, AudioContext/audiocontext-suspend-resume.html Review-Url: https://codereview.chromium.org/2611133003 Cr-Commit-Position: refs/heads/master@{#445529} Committed: https://chromium.googlesource.com/chromium/src/+/3aee9f268a3a471fa539d704e622aee1ce68f0ce

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments. #

Total comments: 4

Patch Set 3 : Address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -254 lines) Patch
M third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html View 1 2 1 chunk +112 lines, -89 lines 0 comments Download
D third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close-expected.txt View 1 chunk +0 lines, -40 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html View 1 1 chunk +69 lines, -103 lines 0 comments Download
D third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume-expected.txt View 1 chunk +0 lines, -22 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Raymond Toy
PTAL
3 years, 11 months ago (2017-01-17 19:14:26 UTC) #3
hongchan
https://codereview.chromium.org/2611133003/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html File third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html (right): https://codereview.chromium.org/2611133003/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html#newcode31 third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html:31: .notThrow();; Two semicolons. https://codereview.chromium.org/2611133003/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html#newcode36 third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html:36: should(function () { Let's ...
3 years, 11 months ago (2017-01-20 23:08:41 UTC) #4
Raymond Toy
https://codereview.chromium.org/2611133003/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html File third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html (right): https://codereview.chromium.org/2611133003/diff/1/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html#newcode31 third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html:31: .notThrow();; On 2017/01/20 23:08:41, hongchan wrote: > Two semicolons. ...
3 years, 11 months ago (2017-01-23 19:24:59 UTC) #5
hongchan
lgtm with nits https://codereview.chromium.org/2611133003/diff/40001/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html File third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html (right): https://codereview.chromium.org/2611133003/diff/40001/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html#newcode44 third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html:44: .notThrow(""); Remove |""|. https://codereview.chromium.org/2611133003/diff/40001/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html#newcode54 third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html:54: .then(task.done.bind(this)); ...
3 years, 11 months ago (2017-01-23 19:42:37 UTC) #6
Raymond Toy
https://codereview.chromium.org/2611133003/diff/40001/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html File third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html (right): https://codereview.chromium.org/2611133003/diff/40001/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html#newcode44 third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html:44: .notThrow(""); On 2017/01/23 19:42:37, hongchan wrote: > Remove |""|. ...
3 years, 11 months ago (2017-01-23 20:32:07 UTC) #7
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/2611133003/60001
3 years, 11 months ago (2017-01-23 20:32:56 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 23:01:30 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/3aee9f268a3a471fa539d704e622...

Powered by Google App Engine
This is Rietveld 408576698