Chromium Code Reviews
DescriptionConvert StereoPanner tests to testharness
The following script was used to convert the tests:
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
Some manual adjustments needed in stereopanner-testing.js to replace
the calls to testPassed/testFailed.
stereopannernode-basic.html was converted by hand to use testharness
and new Audit.
BUG=688495
TEST=stereopannernode-no-glitch.html, stereopannernode-panning.html,
stereopannernode-basic.html
Review-Url: https://codereview.chromium.org/2695113003
Cr-Commit-Position: refs/heads/master@{#452146}
Committed: https://chromium.googlesource.com/chromium/src/+/b9ef335915c92ee0bc4d6cb6c69bf3d2be021621
Patch Set 1 #Patch Set 2 : Convert stereopannernode-basic.html #
Total comments: 8
Patch Set 3 : Address review comments #
Total comments: 2
Patch Set 4 : Address review comment #Patch Set 5 : Fix typo #Messages
Total messages: 22 (11 generated)
|