xpcom/tests/unit/test_localfile.js.
authorJae-Seong Lee-Russo <lusian@gmail.com>
Sun, 15 Nov 2009 12:20:38 +0100
changeset 34883 a27c6a3bcd6d25bb915878a1414d1a8233908f42
parent 34882 4346a668d379e02cabf188bd97082697834f3e38
child 34884 89fbfcf812e2b20972493175137445beb73b9f5e
push idunknown
push userunknown
push dateunknown
bugs524781
milestone1.9.3a1pre
xpcom/tests/unit/test_localfile.js. Bug 524781 - xpcshell-tests: turn on strict & werror by default. r=doug.turner.
xpcom/tests/unit/test_localfile.js
--- a/xpcom/tests/unit/test_localfile.js
+++ b/xpcom/tests/unit/test_localfile.js
@@ -65,17 +65,17 @@ function test_toplevel_parent_is_null()
     do_check_eq(e.result, Cr.NS_ERROR_FILE_UNRECOGNIZED_PATH);
   }
 }
 
 function test_normalize_crash_if_media_missing()
 {
   const a="a".charCodeAt(0);
   const z="z".charCodeAt(0);
-  for (i = a; i <= z; ++i)
+  for (var i = a; i <= z; ++i)
   {
     try
     {
       LocalFile(String.fromCharCode(i)+":.\\test").normalize();
     }
     catch (e)
     {
     }