test fix for test_0112_general.js - Linux and Mac - Bug 386760 - directory removal with software update. r=testfix
authorRobert Strong <robert.bugzilla@gmail.com>
Tue, 12 Apr 2011 00:15:42 -0700
changeset 67995 bfce65c217d43c3ed6955381bacaa18298d70339
parent 67994 aa0b6404ec25a77b5a505c48a3eb5a4e449ea369
child 67996 a1ab5a4ed1f37b8cafee829bcac891c1be9f1409
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestfix
bugs386760
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
test fix for test_0112_general.js - Linux and Mac - Bug 386760 - directory removal with software update. r=testfix
toolkit/mozapps/update/test/unit/test_0112_general.js
--- a/toolkit/mozapps/update/test/unit/test_0112_general.js
+++ b/toolkit/mozapps/update/test/unit/test_0112_general.js
@@ -93,17 +93,17 @@ const TEST_FILES = [
   description      : "Not patched for failed update (patch-if)",
   fileName         : "searchpluginspng0.png",
   relPathDir       : "a/b/searchplugins/",
   originalContents : null,
   compareContents  : null,
   originalFile     : "data/complete.png",
   compareFile      : "data/complete.png",
   originalPerms    : 0666,
-  comparePerms     : null
+  comparePerms     : 0666
 }, {
   description      : "Not added for failed update (add-if)",
   fileName         : "extensions1text0",
   relPathDir       : "a/b/extensions/extensions1/",
   originalContents : null,
   compareContents  : null,
   originalFile     : null,
   compareFile      : null,
@@ -132,59 +132,59 @@ const TEST_FILES = [
 }, {
   description      : "Not added for failed update (add-if)",
   fileName         : "extensions0text0",
   relPathDir       : "a/b/extensions/extensions0/",
   originalContents : "ShouldNotBeReplaced\n",
   compareContents  : "ShouldNotBeReplaced\n",
   originalFile     : null,
   compareFile      : null,
-  originalPerms    : null,
+  originalPerms    : 0644,
   comparePerms     : 0644
 }, {
   description      : "Not patched for failed update (patch-if)",
   fileName         : "extensions0png1.png",
   relPathDir       : "a/b/extensions/extensions0/",
   originalContents : null,
   compareContents  : null,
   originalFile     : "data/complete.png",
   compareFile      : "data/complete.png",
-  originalPerms    : null,
+  originalPerms    : 0644,
   comparePerms     : 0644
 }, {
   description      : "Not patched for failed update (patch-if)",
   fileName         : "extensions0png0.png",
   relPathDir       : "a/b/extensions/extensions0/",
   originalContents : null,
   compareContents  : null,
   originalFile     : "data/complete.png",
   compareFile      : "data/complete.png",
-  originalPerms    : null,
+  originalPerms    : 0644,
   comparePerms     : 0644
 }, {
   description      : "Not patched for failed update (patch)",
   fileName         : "exe0.exe",
   relPathDir       : "a/b/",
   originalContents : null,
   compareContents  : null,
   originalFile     : "data/complete.png",
   compareFile      : "data/complete.png",
   originalPerms    : 0755,
-  comparePerms     : null
+  comparePerms     : 0755
 }, {
   description      : "Not patched for failed update (patch) and causes " +
                      "LoadSourceFile failed",
   fileName         : "0exe0.exe",
   relPathDir       : "a/b/0/",
   originalContents : null,
   compareContents  : null,
   originalFile     : "data/partial.png",
   compareFile      : "data/partial.png",
   originalPerms    : 0755,
-  comparePerms     : null
+  comparePerms     : 0755
 }, {
   description      : "Not added for failed update (add)",
   fileName         : "00text0",
   relPathDir       : "a/b/0/00/",
   originalContents : "ShouldNotBeReplaced\n",
   compareContents  : "ShouldNotBeReplaced\n",
   originalFile     : null,
   compareFile      : null,