Chromium Code Reviews
DescriptionConvert 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 #
Messages
Total messages: 13 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||