• rtoy's avatar
    Convert AudioBufferSource tests using Audit to testharness · 7f51edae
    rtoy authored
    Only the tests using Audit are converted here, using 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`
      git rm $base-expected.txt
    done
    
    Additional manual changes were needed to replace methods defined by
    js-test.  A few tests needed updated expectations due to how
    audit-util.js needed to be changed for these tests.
    
    BUG=676355
    TEST=
    
    Review-Url: https://codereview.chromium.org/2593043003
    Cr-Commit-Position: refs/heads/master@{#442672}
    7f51edae
audit-util.js 8.94 KB