Chromium Code Reviews| Index: test/mjsunit/mjsunit.js |
| =================================================================== |
| --- test/mjsunit/mjsunit.js (revision 7006) |
| +++ test/mjsunit/mjsunit.js (working copy) |
| @@ -104,6 +104,13 @@ |
| } |
| +function assertSame(expected, found, name_opt) { |
| + if (found !== expected) { |
| + fail(expected, found, name_opt); |
| + } |
| +} |
| + |
| + |
| function assertEquals(expected, found, name_opt) { |
| if (!deepEquals(found, expected)) { |
| fail(expected, found, name_opt); |