|
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.
Committed: http://code.google.com/p/v8/source/detail?r=7628
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+5405 lines, -5310 lines) |
Patch |
|
M |
test/mjsunit/apply.js
|
View
|
|
3 chunks |
+30 lines, -30 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/arguments-apply.js
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/arguments-opt.js
|
View
|
|
1 chunk |
+11 lines, -9 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/array-length.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/compiler/logical-and.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/const.js
|
View
|
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/cyrillic.js
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/debug-scopes.js
|
View
|
|
42 chunks |
+74 lines, -70 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/math-abs.js
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/math-min-max.js
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-number.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-object.js
|
View
|
1
2
|
3 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.js
|
View
|
1
2
|
1 chunk |
+253 lines, -176 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/number-string-index-call.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/number-tostring.js
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/object-seal.js
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/override-eval-with-non-function.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/regexp.js
|
View
|
|
5 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regexp-capture.js
|
View
|
|
1 chunk |
+11 lines, -10 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regexp-compile.js
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regexp-static.js
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/regexp-string-methods.js
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-1199637.js
|
View
|
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-176.js
|
View
|
|
1 chunk |
+21 lines, -21 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-187.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-399.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/string-fromcharcode.js
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/string-index.js
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/third_party/object-keys.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/third_party/regexp-pcre.js
|
View
|
|
2 chunks |
+4906 lines, -4906 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/tools/codemap.js
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/tools/splaytree.js
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|