[Pkg-mozext-commits] [perspectives-extension] 05/44: tests - Update other pref location strings

David Prévot taffit at moszumanska.debian.org
Sun Jun 26 04:59:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository perspectives-extension.

commit 55c4173a5b77bf24c4314d927aea66bcea2df473
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Mon Oct 19 23:32:48 2015 -0600

    tests - Update other pref location strings
    
    Now all of the tests pass
---
 test/test.html | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/test/test.html b/test/test.html
index 0419ea6..f36074f 100644
--- a/test/test.html
+++ b/test/test.html
@@ -718,9 +718,9 @@ function quorum_basics() {
 
     //TODO: write code to save and restore all preferences after each test,
     //so it doesn't matter which we alter.
-    var pref_string_extra_notaries = "perspectives.additional_notary_list";
-    var pref_string_use_def_notary = "perspectives.use_default_notary_list";
-    var orig_thresh               = Perspectives.root_prefs.getIntPref ("perspectives.quorum_thresh");
+    var pref_string_extra_notaries = "extensions.perspectives.additional_notary_list";
+    var pref_string_use_def_notary = "extensions.perspectives.use_default_notary_list";
+    var orig_thresh               = Perspectives.root_prefs.getIntPref ("extensions.perspectives.quorum_thresh");
     var orig_extra_notaries       = Perspectives.root_prefs.getCharPref(pref_string_extra_notaries  );
     var orig_use_default_notaries = Perspectives.root_prefs.getBoolPref(pref_string_use_def_notary  );
 
@@ -735,7 +735,7 @@ JaJ2Lw7kRVMCAwEAAQ==\
 
     try {
         var small_quorum_thresh = 1;
-        Perspectives.root_prefs.setIntPref ("perspectives.quorum_thresh", small_quorum_thresh);
+        Perspectives.root_prefs.setIntPref ("extensions.perspectives.quorum_thresh", small_quorum_thresh);
         Perspectives.root_prefs.setBoolPref(pref_string_use_def_notary  , false              );
         Perspectives.root_prefs.setCharPref(pref_string_extra_notaries  , single_notary      );
 
@@ -755,7 +755,7 @@ JaJ2Lw7kRVMCAwEAAQ==\
         assert(quorum_duration === 0, "Quorum size 0 gives zero duration");
 
         var full_quorum_thresh = 100;
-        Perspectives.root_prefs.setIntPref ("perspectives.quorum_thresh", full_quorum_thresh);
+        Perspectives.root_prefs.setIntPref ("extensions.perspectives.quorum_thresh", full_quorum_thresh);
         Perspectives.root_prefs.setBoolPref(pref_string_use_def_notary  , true              );
 
         qint = Perspectives.getQuorumAsInt();
@@ -764,7 +764,7 @@ JaJ2Lw7kRVMCAwEAAQ==\
 
     }
     finally {
-        Perspectives.root_prefs.setIntPref ("perspectives.quorum_thresh", orig_thresh              );
+        Perspectives.root_prefs.setIntPref ("extensions.perspectives.quorum_thresh", orig_thresh              );
         Perspectives.root_prefs.setCharPref(pref_string_extra_notaries  , orig_extra_notaries      );
         Perspectives.root_prefs.setBoolPref(pref_string_use_def_notary  , orig_use_default_notaries);
     }
@@ -878,8 +878,8 @@ function quorum_oldkey() {
 }
 
 function notary_parsing() {
-    var pref_string_extra_notaries = "perspectives.additional_notary_list";
-    var pref_string_use_def_notary = "perspectives.use_default_notary_list";
+    var pref_string_extra_notaries = "extensions.perspectives.additional_notary_list";
+    var pref_string_use_def_notary = "extensions.perspectives.use_default_notary_list";
     var orig_extra_notaries        = null;
     var orig_use_default_notaries  = null;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list