bug 1228792 - remove leading 0, be explicit about octals r?mossop draft
authorRobert Helmer <rhelmer@mozilla.com>
Wed, 02 Dec 2015 18:43:09 -0800
changeset 313990 b25d3380032ac363377804a76769554d74a7f11f
parent 313989 f13bb0a43be036a0d4694b0bb6d0690e999b872f
child 313991 53c9d4821a559e9ecdd38726af0f6c6d8107082e
push id8164
push userrhelmer@mozilla.com
push dateThu, 03 Dec 2015 22:00:30 +0000
reviewersmossop
bugs1228792
milestone45.0a1
bug 1228792 - remove leading 0, be explicit about octals r?mossop
toolkit/mozapps/extensions/test/browser/browser_sorting.js
toolkit/mozapps/extensions/test/xpcshell/test_bug449027.js
toolkit/mozapps/extensions/test/xpcshell/test_bug465190.js
toolkit/mozapps/extensions/test/xpcshell/test_bug470377_3.js
toolkit/mozapps/extensions/test/xpcshell/test_bug470377_3_strictcompat.js
toolkit/mozapps/extensions/test/xpcshell/test_bug470377_4.js
toolkit/mozapps/extensions/test/xpcshell/test_bug541420.js
toolkit/mozapps/extensions/test/xpcshell/test_dictionary.js
toolkit/mozapps/extensions/test/xpcshell/test_filepointer.js
toolkit/mozapps/extensions/test/xpcshell/test_migrate3.js
--- a/toolkit/mozapps/extensions/test/browser/browser_sorting.js
+++ b/toolkit/mozapps/extensions/test/browser/browser_sorting.js
@@ -16,179 +16,179 @@ function test() {
     //  enabledInstalled group
     //    * Enabled
     //    * Incompatible but enabled because compatibility checking is off
     //    * Waiting to be installed
     //    * Waiting to be enabled
     id: "test1@tests.mozilla.org",
     name: "Test add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 02, 00, 00, 00),
+    updateDate: new Date(2010, 4, 2, 0, 0, 0),
     size: 1,
     pendingOperations: AddonManager.PENDING_NONE,
   }, {
     id: "test2@tests.mozilla.org",
     name: "a first add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 01, 23, 59, 59),
-    size: 0265,
+    updateDate: new Date(2010, 4, 1, 23, 59, 59),
+    size: 265,
     pendingOperations: AddonManager.PENDING_UPGRADE,
     isActive: true,
     isCompatible: false,
   }, {
     id: "test3@tests.mozilla.org",
     name: "\u010Cesk\u00FD slovn\u00EDk", // Český slovník
     description: "foo",
-    updateDate: new Date(2010, 04, 02, 00, 00, 01),
+    updateDate: new Date(2010, 4, 2, 0, 0, 1),
     size: 12,
     pendingOperations: AddonManager.PENDING_INSTALL,
     isActive: false,
   }, {
     id: "test4@tests.mozilla.org",
     name: "canadian dictionary",
-    updateDate: new Date(1970, 0, 01, 00, 00, 00),
+    updateDate: new Date(1970, 0, 1, 0, 0, 0),
     description: "foo",
     isActive: true,
   }, {
     id: "test5@tests.mozilla.org",
     name: "croatian dictionary",
     description: "foo",
-    updateDate: new Date(2012, 12, 12, 00, 00, 00),
+    updateDate: new Date(2012, 12, 12, 0, 0, 0),
     size: 5,
     pendingOperations: AddonManager.PENDING_ENABLE,
     isActive: false,
   }, {
     //  pendingDisable group
     //    * Waiting to be disabled
     id: "test6@tests.mozilla.org",
     name: "orange Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 02, 00, 00, 00),
+    updateDate: new Date(2010, 4, 2, 0, 0, 0),
     size: 142,
     isCompatible: false,
     isActive: true,
     pendingOperations: AddonManager.PENDING_DISABLE,
   }, {
     id: "test7@tests.mozilla.org",
     name: "Blue Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 01, 23, 59, 59),
+    updateDate: new Date(2010, 4, 1, 23, 59, 59),
     size: 65,
     isActive: true,
     pendingOperations: AddonManager.PENDING_DISABLE,
   }, {
     id: "test8@tests.mozilla.org",
     name: "Green Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 03, 00, 00, 01),
+    updateDate: new Date(2010, 4, 3, 0, 0, 1),
     size: 125,
     pendingOperations: AddonManager.PENDING_DISABLE,
   }, {
     id: "test9@tests.mozilla.org",
     name: "red Add-on",
-    updateDate: new Date(2011, 04, 01, 00, 00, 00),
+    updateDate: new Date(2011, 4, 1, 0, 0, 0),
     description: "foo",
     isCompatible: false,
     pendingOperations: AddonManager.PENDING_DISABLE,
   }, {
     id: "test10@tests.mozilla.org",
     name: "Purple Add-on",
     description: "foo",
-    updateDate: new Date(2012, 12, 12, 00, 00, 00),
+    updateDate: new Date(2012, 12, 12, 0, 0, 0),
     size: 56,
     isCompatible: false,
     pendingOperations: AddonManager.PENDING_DISABLE,
   }, {
     //  pendingUninstall group
     //    * Waiting to be removed
     id: "test11@tests.mozilla.org",
     name: "amber Add-on",
     description: "foo",
-    updateDate: new Date(1978, 04, 02, 00, 00, 00),
+    updateDate: new Date(1978, 4, 2, 0, 0, 0),
     size: 142,
     isActive: false,
     appDisabled: true,
     pendingOperations: AddonManager.PENDING_UNINSTALL,
   }, {
     id: "test12@tests.mozilla.org",
     name: "Salmon Add-on - pending disable",
     description: "foo",
-    updateDate: new Date(2054, 04, 01, 23, 59, 59),
+    updateDate: new Date(2054, 4, 1, 23, 59, 59),
     size: 65,
     isActive: true,
     pendingOperations: AddonManager.PENDING_UNINSTALL,
   }, {
     id: "test13@tests.mozilla.org",
     name: "rose Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 02, 00, 00, 01),
+    updateDate: new Date(2010, 4, 2, 0, 0, 1),
     size: 125,
     isActive: false,
     userDisabled: true,
     pendingOperations: AddonManager.PENDING_UNINSTALL,
   }, {
     id: "test14@tests.mozilla.org",
     name: "Violet Add-on",
-    updateDate: new Date(2010, 05, 01, 00, 00, 00),
+    updateDate: new Date(2010, 5, 1, 0, 0, 0),
     description: "foo",
     isActive: false,
     appDisabled: true,
     pendingOperations: AddonManager.PENDING_UNINSTALL,
   }, {
     id: "test15@tests.mozilla.org",
     name: "white Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 12, 00, 00, 00),
+    updateDate: new Date(2010, 4, 12, 0, 0, 0),
     size: 56,
     isActive: false,
     userDisabled: true,
     pendingOperations: AddonManager.PENDING_UNINSTALL,
   }, {
     //  disabledIncompatibleBlocked group
     //    * Disabled
     //    * Incompatible
     //    * Blocklisted
     id: "test16@tests.mozilla.org",
     name: "grimsby Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 01, 00, 00, 00),
+    updateDate: new Date(2010, 4, 1, 0, 0, 0),
     size: 142,
     isActive: false,
     appDisabled: true,
   }, {
     id: "test17@tests.mozilla.org",
     name: "beamsville Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 8, 23, 59, 59),
+    updateDate: new Date(2010, 4, 8, 23, 59, 59),
     size: 65,
     isActive: false,
     userDisabled: true,
   }, {
     id: "test18@tests.mozilla.org",
     name: "smithville Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 03, 00, 00, 01),
+    updateDate: new Date(2010, 4, 3, 0, 0, 1),
     size: 125,
     isActive: false,
     userDisabled: true,
     blocklistState: Ci.nsIBlocklistService.STATE_OUTDATED,
   }, {
     id: "test19@tests.mozilla.org",
     name: "dunnville Add-on",
-    updateDate: new Date(2010, 04, 02, 00, 00, 00),
+    updateDate: new Date(2010, 4, 2, 0, 0, 0),
     description: "foo",
     isActive: false,
     appDisabled: true,
     isCompatible: false,
     blocklistState: Ci.nsIBlocklistService.STATE_NOT_BLOCKED,
   }, {
     id: "test20@tests.mozilla.org",
     name: "silverdale Add-on",
     description: "foo",
-    updateDate: new Date(2010, 04, 12, 00, 00, 00),
+    updateDate: new Date(2010, 4, 12, 0, 0, 0),
     size: 56,
     isActive: false,
     appDisabled: true,
     blocklistState: Ci.nsIBlocklistService.STATE_BLOCKED,
   }]);
 
 
   open_manager("addons://list/extension", function(aWindow) {
--- a/toolkit/mozapps/extensions/test/xpcshell/test_bug449027.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug449027.js
@@ -298,20 +298,20 @@ function create_addon(addon) {
                    "    </em:targetApplication>\n" +
                    "    <em:name>" + addon.name + "</em:name>\n" +
                    "  </Description>\n" +
                    "</RDF>\n";
   var target = gProfD.clone();
   target.append("extensions");
   target.append(addon.id);
   target.append("install.rdf");
-  target.create(target.NORMAL_FILE_TYPE, 0644);
+  target.create(target.NORMAL_FILE_TYPE, 0o644);
   var stream = Components.classes["@mozilla.org/network/file-output-stream;1"]
                          .createInstance(Ci.nsIFileOutputStream);
-  stream.init(target, 0x04 | 0x08 | 0x20, 0664, 0); // write, create, truncate
+  stream.init(target, 0x04 | 0x08 | 0x20, 0o664, 0); // write, create, truncate
   stream.write(installrdf, installrdf.length);
   stream.close();
 }
 
 /**
  * Checks that items are blocklisted correctly according to the current test.
  * If a lastTest is provided checks that the notification dialog got passed
  * the newly blocked items compared to the previous test.
--- a/toolkit/mozapps/extensions/test/xpcshell/test_bug465190.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug465190.js
@@ -1,16 +1,16 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
 var installLocation = gProfD.clone();
 installLocation.append("baddir");
-installLocation.create(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0664);
+installLocation.create(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0o664);
 
 var dirProvider2 = {
   getFile: function(prop, persistent) {
     persistent.value = true;
     if (prop == "XREUSysExt")
       return installLocation.clone();
     return null;
   },
--- a/toolkit/mozapps/extensions/test/xpcshell/test_bug470377_3.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug470377_3.js
@@ -8,41 +8,41 @@ Services.prefs.setBoolPref(PREF_EM_STRIC
 function run_test() {
   do_test_pending();
   createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "2.2.3", "2");
 
   // inject the add-ons into the profile
   var dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_1@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   var source = do_get_file("data/test_bug470377/install_1.rdf");
   source.copyTo(dest, "install.rdf");
   dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_2@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_2.rdf");
   source.copyTo(dest, "install.rdf");
   dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_3@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_3.rdf");
   source.copyTo(dest, "install.rdf");
   dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_4@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_4.rdf");
   source.copyTo(dest, "install.rdf");
   dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_5@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_5.rdf");
   source.copyTo(dest, "install.rdf");
 
   startupManager();
 
   run_test_1();
 }
 
--- a/toolkit/mozapps/extensions/test/xpcshell/test_bug470377_3_strictcompat.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug470377_3_strictcompat.js
@@ -7,41 +7,41 @@ function run_test() {
   do_test_pending();
   createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "2.2.3", "2");
   Services.prefs.setBoolPref(PREF_EM_STRICT_COMPATIBILITY, true);
 
   // inject the add-ons into the profile
   var dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_1@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   var source = do_get_file("data/test_bug470377/install_1.rdf");
   source.copyTo(dest, "install.rdf");
   dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_2@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_2.rdf");
   source.copyTo(dest, "install.rdf");
   dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_3@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_3.rdf");
   source.copyTo(dest, "install.rdf");
   dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_4@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_4.rdf");
   source.copyTo(dest, "install.rdf");
   dest = gProfD.clone();
   dest.append("extensions");
   dest.append("bug470377_5@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_5.rdf");
   source.copyTo(dest, "install.rdf");
 
   startupManager();
 
   run_test_1();
 }
 
--- a/toolkit/mozapps/extensions/test/xpcshell/test_bug470377_4.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug470377_4.js
@@ -7,37 +7,37 @@ function run_test() {
   do_test_pending();
   createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "2.1a4", "2");
 
   // inject the add-ons into the profile
   var profileDir = gProfD.clone();
   profileDir.append("extensions");
   var dest = profileDir.clone();
   dest.append("bug470377_1@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   var source = do_get_file("data/test_bug470377/install_1.rdf");
   source.copyTo(dest, "install.rdf");
   dest = profileDir.clone();
   dest.append("bug470377_2@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_2.rdf");
   source.copyTo(dest, "install.rdf");
   dest = profileDir.clone();
   dest.append("bug470377_3@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_3.rdf");
   source.copyTo(dest, "install.rdf");
   dest = profileDir.clone();
   dest.append("bug470377_4@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_4.rdf");
   source.copyTo(dest, "install.rdf");
   dest = profileDir.clone();
   dest.append("bug470377_5@tests.mozilla.org");
-  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0755);
+  dest.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o755);
   source = do_get_file("data/test_bug470377/install_5.rdf");
   source.copyTo(dest, "install.rdf");
 
   run_test_1();
 }
 
 function run_test_1() {
   startupManager();
--- a/toolkit/mozapps/extensions/test/xpcshell/test_bug541420.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug541420.js
@@ -24,14 +24,14 @@ function run_test() {
       do_check_true(file.isReadable());
       do_check_true(file.isWritable());
 
       // We don't understand executable permissions on Windows since we don't
       // support NTFS permissions so we don't need to test there. OSX's isExecutable
       // only tests if the file is an application so it is better to just check the
       // raw permission bits
       if (!("nsIWindowsRegKey" in Components.interfaces))
-        do_check_true((file.permissions & 0100) == 0100);
+        do_check_true((file.permissions & 0o100) == 0o100);
 
       do_execute_soon(do_test_finished);
     });
   });
 }
--- a/toolkit/mozapps/extensions/test/xpcshell/test_dictionary.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_dictionary.js
@@ -343,25 +343,25 @@ function check_test_7() {
 
 // Test that a bootstrapped extension dropped into the profile loads properly
 // on startup and doesn't cause an EM restart
 function run_test_8() {
   shutdownManager();
 
   let dir = profileDir.clone();
   dir.append("ab-CD@dictionaries.addons.mozilla.org");
-  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
   let zip = AM_Cc["@mozilla.org/libjar/zip-reader;1"].
             createInstance(AM_Ci.nsIZipReader);
   zip.open(do_get_addon("test_dictionary"));
   dir.append("install.rdf");
   zip.extract("install.rdf", dir);
   dir = dir.parent;
   dir.append("dictionaries");
-  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
   dir.append("ab-CD.dic");
   zip.extract("dictionaries/ab-CD.dic", dir);
   zip.close();
 
   startupManager(false);
 
   AddonManager.getAddonByID("ab-CD@dictionaries.addons.mozilla.org", function(b1) {
     do_check_neq(b1, null);
@@ -396,25 +396,25 @@ function run_test_9() {
 
 // Tests that bootstrapped extensions are correctly loaded even if the app is
 // upgraded at the same time
 function run_test_12() {
   shutdownManager();
 
   let dir = profileDir.clone();
   dir.append("ab-CD@dictionaries.addons.mozilla.org");
-  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
   let zip = AM_Cc["@mozilla.org/libjar/zip-reader;1"].
             createInstance(AM_Ci.nsIZipReader);
   zip.open(do_get_addon("test_dictionary"));
   dir.append("install.rdf");
   zip.extract("install.rdf", dir);
   dir = dir.parent;
   dir.append("dictionaries");
-  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
   dir.append("ab-CD.dic");
   zip.extract("dictionaries/ab-CD.dic", dir);
   zip.close();
 
   startupManager(true);
 
   AddonManager.getAddonByID("ab-CD@dictionaries.addons.mozilla.org", function(b1) {
     do_check_neq(b1, null);
@@ -476,25 +476,25 @@ function run_test_16() {
 }
 
 // Check that a bootstrapped extension in a non-profile location is loaded
 function run_test_17() {
   shutdownManager();
 
   let dir = userExtDir.clone();
   dir.append("ab-CD@dictionaries.addons.mozilla.org");
-  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
   let zip = AM_Cc["@mozilla.org/libjar/zip-reader;1"].
             createInstance(AM_Ci.nsIZipReader);
   zip.open(do_get_addon("test_dictionary"));
   dir.append("install.rdf");
   zip.extract("install.rdf", dir);
   dir = dir.parent;
   dir.append("dictionaries");
-  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+  dir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
   dir.append("ab-CD.dic");
   zip.extract("dictionaries/ab-CD.dic", dir);
   zip.close();
 
   startupManager();
 
   AddonManager.getAddonByID("ab-CD@dictionaries.addons.mozilla.org",
    callback_soon(function(b1) {
--- a/toolkit/mozapps/extensions/test/xpcshell/test_filepointer.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_filepointer.js
@@ -35,17 +35,17 @@ var addon2 = {
     id: "xpcshell@tests.mozilla.org",
     minVersion: "1",
     maxVersion: "1"
   }]
 };
 
 const profileDir = gProfD.clone();
 profileDir.append("extensions");
-profileDir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+profileDir.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
 
 const sourceDir = gProfD.clone();
 sourceDir.append("source");
 
 Components.utils.import("resource://testing-common/httpd.js");
 var testserver;
 
 function writePointer(aId, aName) {
--- a/toolkit/mozapps/extensions/test/xpcshell/test_migrate3.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_migrate3.js
@@ -118,24 +118,24 @@ function run_test() {
     previewURL: "http://localhost/data/preview.png",
     iconURL: "http://localhost/data/icon.png"
   }]));
   Services.prefs.setCharPref("lightweightThemes.selectedThemeID", "1");
 
   let stagedXPIs = profileDir.clone();
   stagedXPIs.append("staged-xpis");
   stagedXPIs.append("addon6@tests.mozilla.org");
-  stagedXPIs.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+  stagedXPIs.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
 
   let addon6 = do_get_addon("test_migrate6");
   addon6.copyTo(stagedXPIs, "tmp.xpi");
   stagedXPIs = stagedXPIs.parent;
 
   stagedXPIs.append("addon7@tests.mozilla.org");
-  stagedXPIs.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0755);
+  stagedXPIs.create(AM_Ci.nsIFile.DIRECTORY_TYPE, 0o755);
 
   let addon7 = do_get_addon("test_migrate7");
   addon7.copyTo(stagedXPIs, "tmp.xpi");
   stagedXPIs = stagedXPIs.parent;
 
   let old = do_get_file("data/test_migrate.rdf");
   old.copyTo(gProfD, "extensions.rdf");