Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: mozilla-tests/js1_7/regress/regress-372331.js

Issue 2865028: Update the mozilla tests to new version (as of 2010-06-29). (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mozilla-tests/js1_7/regress/regress-355832-01.js ('k') | mozilla-tests/js1_7/regress/regress-407957.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozilla-tests/js1_7/regress/regress-372331.js
===================================================================
--- mozilla-tests/js1_7/regress/regress-372331.js (revision 43940)
+++ mozilla-tests/js1_7/regress/regress-372331.js (working copy)
@@ -57,6 +57,7 @@
var obj = { index: 1 };
expect = 'No Error';
+ actual = 'No Error';
function gen()
{
@@ -68,14 +69,19 @@
for (index in gen());
}
- if ('index' in obj)
- throw "for-in binds name to early";
+ try
+ {
+ if ('index' in obj)
+ throw "for-in binds name to early";
- if (index !== 2)
- throw "unexpected value of index: "+index;
+ if (index !== 2)
+ throw "unexpected value of index: "+index;
+ }
+ catch(ex)
+ {
+ actual = ex + '';
+ }
- actual = 'No Error';
-
reportCompare(expect, actual, summary);
exitFunc ('test');
« no previous file with comments | « mozilla-tests/js1_7/regress/regress-355832-01.js ('k') | mozilla-tests/js1_7/regress/regress-407957.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698