Partial bustage fix: test was broken, is now less broken but still fails.
authorJustin Dolske <dolske@mozilla.com>
Sun, 29 Jun 2008 16:46:59 -0700
changeset 44811 93705f55defe6a9ee2e49cb3a9551df2f01ea7e1
parent 44810 3ed727005c8365813dc87725a55e22bbe728f4e1
child 44812 14313d1e89ba92fb8e4f5088ded468a32aaa1a70
push idunknown
push userunknown
push dateunknown
Partial bustage fix: test was broken, is now less broken but still fails.
services/sync/tests/unit/test_passwords.js
--- a/services/sync/tests/unit/test_passwords.js
+++ b/services/sync/tests/unit/test_passwords.js
@@ -1,19 +1,21 @@
 load("fake_login_manager.js");
 
 var loginMgr = new FakeLoginManager(fakeSampleLogins);
 
 // The JS module we're testing, with all members exposed.
 var passwords = loadInSandbox("resource://weave/engines/passwords.js");
 
 function test_hashLoginInfo_works() {
-  var fakeUserHash = passwords._hashLoginInfo(fakeSampleLogins[0]);
+  var pwStore = new passwords.PasswordStore();
+  var fakeUserHash = pwStore._hashLoginInfo(fakeSampleLogins[0]);
   do_check_eq(typeof fakeUserHash, 'string');
   do_check_eq(fakeUserHash.length, 40);
 }
 
 function test_synccore_itemexists_works() {
-  var fakeUserHash = passwords._hashLoginInfo(fakeSampleLogins[0]);
+  var pwStore = new passwords.PasswordStore();
+  var fakeUserHash = pwStore._hashLoginInfo(fakeSampleLogins[0]);
   var psc = new passwords.PasswordSyncCore();
   do_check_false(psc._itemExists("invalid guid"));
   do_check_true(psc._itemExists(fakeUserHash));
 }