[javascriptlint-commit] SF.net SVN: javascriptlint:[311] trunk
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2013-09-28 04:30:14
|
Revision: 311
http://sourceforge.net/p/javascriptlint/code/311
Author: matthiasmiller
Date: 2013-09-28 04:30:11 +0000 (Sat, 28 Sep 2013)
Log Message:
-----------
Show test results when complete.
Modified Paths:
--------------
trunk/test.py
trunk/tests/warnings/for_in_missing_identifier.js
Modified: trunk/test.py
===================================================================
--- trunk/test.py 2013-09-28 04:27:44 UTC (rev 310)
+++ trunk/test.py 2013-09-28 04:30:11 UTC (rev 311)
@@ -100,6 +100,11 @@
except TestError, error:
haderrors = True
print error
+
+ if haderrors:
+ print '\nOne or more tests failed!'
+ else:
+ print '\nAll tests passed successfully.'
sys.exit(haderrors)
if __name__ == '__main__':
Modified: trunk/tests/warnings/for_in_missing_identifier.js
===================================================================
--- trunk/tests/warnings/for_in_missing_identifier.js 2013-09-28 04:27:44 UTC (rev 310)
+++ trunk/tests/warnings/for_in_missing_identifier.js 2013-09-28 04:30:11 UTC (rev 311)
@@ -1,12 +1,12 @@
/*jsl:option explicit*/
function for_in_missing_identifier(o) {
- var prop;
- for (prop in o)
- o[prop]++;
-
- for (var prop2 in o)
- o[prop2]++;
+ var prop;
+ for (prop in o)
+ o[prop]++;
+
+ for (var prop2 in o)
+ o[prop2]++;
- for (!prop in o) /*warning:for_in_missing_identifier*/
- o[prop]++;
+ for (!prop in o) /*warning:for_in_missing_identifier*/
+ o[prop]++;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|