Chromium Code Reviews
DescriptionConvert Analyser tests to use testharness
The follow bash script converted the tests using Audit to use
testharness instead of js-test:
for f in `grep -l Audit *.html`
do
# Replace js-test.js with testharness.js and add testharnessreport.js
sed -i 's;\(.*\)\(<script.*\)js-test.js\(.*\);\1\2testharness.js\3\
\1\2testharnessreport.js\3 ;' $f
# Remove functions that don't exist anymore.
sed -i '/^[ ]*\(description(".*")\|finishJSTest()\);[ ]*/d' $f
done
However, a few files needed manual adjustment because they used
testPassed()/testFailed(), which no longer exists. These were either
removed or replaced by Should().summarize().
The expected results files were manually removed.
BUG=675987
TEST=Analyser/* passes
Committed: https://crrev.com/bdbfd895a9da23367f3d34465b78047cdc1de4e3
Cr-Commit-Position: refs/heads/master@{#440166}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Remove jsTestIsAsync #
Total comments: 1
Patch Set 3 : Remove blank line #Messages
Total messages: 20 (7 generated)
|