• neis's avatar
    [tests] Fix bogus uses of assertThrows. · 837900ef
    neis authored
    Some tests passed a string as second argument to assertThrows, expecting it to
    be matched against the exception.  However, assertThrows simply ignored these.
    (Some other tests actually seem to use that argument as a comment ...)
    
    This CL
    - changes assertThrows to fail if the second argument is not a function,
    - adds assertThrowsEquals which compares the exception to a given value using
      assertEquals
    - fixes some bogus tests that got exposed by this.
    
    R=jarin@chromium.org
    BUG=
    
    Review URL: https://codereview.chromium.org/1544793002
    
    Cr-Commit-Position: refs/heads/master@{#33159}
    837900ef
Name
Last commit
Last update
..
embenchen Loading commit data...
poppler Loading commit data...
sqlite3 Loading commit data...
atomics-add.js Loading commit data...
atomics-and.js Loading commit data...
atomics-compareexchange.js Loading commit data...
atomics-exchange.js Loading commit data...
atomics-load.js Loading commit data...
atomics-or.js Loading commit data...
atomics-store.js Loading commit data...
atomics-sub.js Loading commit data...
atomics-xor.js Loading commit data...
construct-double.js Loading commit data...
do-while-false.js Loading commit data...
do-while.js Loading commit data...
double-hi.js Loading commit data...
double-lo.js Loading commit data...
float32array-negative-offset.js Loading commit data...
float32array-outofbounds.js Loading commit data...
float32array-store-div.js Loading commit data...
float64array-negative-offset.js Loading commit data...
float64array-outofbounds.js Loading commit data...
float64array-store-div.js Loading commit data...
float64mul.js Loading commit data...
if-cloning.js Loading commit data...
if-folding.js Loading commit data...
if-reduction.js Loading commit data...
if-tonumber.js Loading commit data...
infinite-loops-taken.js Loading commit data...
infinite-loops.js Loading commit data...
int16array-negative-offset.js Loading commit data...
int16array-outofbounds.js Loading commit data...
int32-div.js Loading commit data...
int32-mod.js Loading commit data...
int32-mul.js Loading commit data...
int32-tmod.js Loading commit data...
int32-udiv.js Loading commit data...
int32-umod.js Loading commit data...
int32array-constant-key.js Loading commit data...
int32array-negative-offset.js Loading commit data...
int32array-outofbounds.js Loading commit data...
int32array-unaligned.js Loading commit data...
int32div.js Loading commit data...
int32mod-constant.js Loading commit data...
int32mod.js Loading commit data...
int32modb.js Loading commit data...
int8array-negative-offset.js Loading commit data...
math-abs.js Loading commit data...
math-ceil.js Loading commit data...
math-clz32.js Loading commit data...
math-floor.js Loading commit data...
math-fround.js Loading commit data...
pointer-masking.js Loading commit data...
redundancy1.js Loading commit data...
redundancy2.js Loading commit data...
sign-extend.js Loading commit data...
switch.js Loading commit data...
uint32-less-than-shift.js Loading commit data...
uint32div.js Loading commit data...
uint32mod-constant.js Loading commit data...
uint32mod.js Loading commit data...
uint8array-outofbounds.js Loading commit data...
word32and.js Loading commit data...
word32ror.js Loading commit data...
zero-extend.js Loading commit data...