v8/test
Andreas Haas 86a2720763 [test] Make assertThrowsEquals use assertSame
The typical use of assertThrowsEquals is to check that a specific
object is thrown. However, assertEquals only does a proper equality
check for primitive types, not for complex types. Using assertSame
does a reference equality check on objects, which is more what you
would expect from assertThrowsEquals. For exception kind testing,
assertThrowsEquals actually did not work correctly, assertThrows is
better for that case.

R=clemensh@chromium.org, mythria@chromium.org

Change-Id: I24fb22e75fa33ebe90eb4bae40825119a054bba5
Reviewed-on: https://chromium-review.googlesource.com/1087952
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Mythri Alle <mythria@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53556}
2018-06-06 14:17:12 +00:00
..
benchmarks Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
cctest [api] Switch from SetBuildEmbedderGraphCallback to AddBuildEmbedderGraphCallback 2018-06-06 09:46:57 +00:00
common [wasm] Make wasm::ValueType independent of the MachineRepresentation 2018-05-07 11:54:56 +00:00
debugger [sfi] Remove SFI function literal id field 2018-06-05 13:45:11 +00:00
fuzzer [parsing] Remove most GetIsolate calls 2018-06-05 08:54:58 +00:00
inspector [inspector] decouple debugger delegate and async stacks delegate 2018-06-05 17:39:22 +00:00
intl Prevent throwing exceptions more than once during Locale construction. 2018-06-01 18:18:54 +00:00
js-perf-test [tests] Fix JSTests 2018-06-05 11:38:43 +00:00
memory Reland "[tools] Add benchmark owners to the config" 2018-05-16 13:53:49 +00:00
message Reland "[array] Implement Array.p.sort in Torque" 2018-06-05 08:33:18 +00:00
mjsunit [test] Make assertThrowsEquals use assertSame 2018-06-06 14:17:12 +00:00
mkgrokdump Re-enable embedded builtins 2018-06-06 08:47:57 +00:00
mozilla [test] Reverse sense of wasm_traps variant 2018-05-08 17:49:14 +00:00
preparser Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
test262 Revert "[array] Use random middle element to determine pivot during sorting" 2018-06-06 08:16:48 +00:00
torque [torque] Fix int32 literals 2018-06-05 12:33:23 +00:00
unittests Fix ThreadTicks.ThreadNow on systems with low resolution timers 2018-06-06 11:47:41 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-05-22 09:47:41 +00:00
webkit [test] Skip slow tests 2018-05-23 14:14:34 +00:00
BUILD.gn Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00