Reviewers: Søren Gjesse,

Description:
Cleanup of mjsunit.js code and make assertEquals more strict.

Encapsulate the helper functions in mjsunit.js.
Now only exposes the exception class and the assertXXX functions.

Make assertEquals use === instead of ==.
This prevents a lot of possiblefalse positives in tests, and avoids
having to do assertTrue(expected === actual) when you need it.

Fixed some tests that were either buggy or assuming == test.


Please review this at http://codereview.chromium.org/6869007/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M test/mjsunit/apply.js
  M test/mjsunit/arguments-apply.js
  M test/mjsunit/arguments-opt.js
  M test/mjsunit/array-length.js
  M test/mjsunit/compiler/logical-and.js
  M test/mjsunit/const.js
  M test/mjsunit/cyrillic.js
  M test/mjsunit/debug-scopes.js
  M test/mjsunit/math-abs.js
  M test/mjsunit/math-min-max.js
  M test/mjsunit/mirror-number.js
  M test/mjsunit/mirror-object.js
  M test/mjsunit/mjsunit.js
  M test/mjsunit/number-string-index-call.js
  M test/mjsunit/number-tostring.js
  M test/mjsunit/object-seal.js
  M test/mjsunit/override-eval-with-non-function.js
  M test/mjsunit/regexp-capture.js
  M test/mjsunit/regexp-compile.js
  M test/mjsunit/regexp-static.js
  M test/mjsunit/regexp-string-methods.js
  M test/mjsunit/regexp.js
  M test/mjsunit/regress/regress-1199637.js
  M test/mjsunit/regress/regress-176.js
  M test/mjsunit/regress/regress-187.js
  M test/mjsunit/regress/regress-399.js
  M test/mjsunit/string-fromcharcode.js
  M test/mjsunit/string-index.js
  M test/mjsunit/third_party/object-keys.js
  M test/mjsunit/third_party/regexp-pcre.js
  M test/mjsunit/tools/codemap.js
  M test/mjsunit/tools/splaytree.js


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to