Chromium Code Reviews
DescriptionConvert OfflineAudioContext Audit tests to testharness
Used the 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`
if [ -f $base-expected.txt ]; then
git rm $base-expected.txt
fi
done
Still needed to convert manually some uses of testPassed/testFailed
and some old js-test functions.
BUG=689076
TEST=offlineaudiocontext-promise-basic.html,
offlineaudiocontext-suspend-resume-basic.html
Review-Url: https://codereview.chromium.org/2676343003
Cr-Commit-Position: refs/heads/master@{#450472}
Committed: https://chromium.googlesource.com/chromium/src/+/8aca6ce1196fca0dc0cca083b24be9b483f0dc3d
Patch Set 1 #
Total comments: 10
Patch Set 2 : Address review comments. #
Total comments: 3
Patch Set 3 : Address review comments. #
Messages
Total messages: 12 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||