[Pkg-mozext-commits] [perspectives-extension] 19/30: Unit tests - Remove references to plugin needing to be installed

David Prévot taffit at alioth.debian.org
Thu Sep 26 22:31:40 UTC 2013


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

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

commit e48c75c42266e731dbdf6e3dcc4850c2ea4fab84
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Sat Sep 14 23:44:00 2013 -0600

    Unit tests - Remove references to plugin needing to be installed
    
    Tests will now always run as part of the installed extension
---
 test/test.html |   18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/test/test.html b/test/test.html
index 20be189..7bb3960 100644
--- a/test/test.html
+++ b/test/test.html
@@ -313,25 +313,9 @@ function notary_parsing() {
   var orig_use_default_notaries = null;
 
 
-  write_string("Starting notary parsing tests. <b>Note:</b> These tests require Perspectives to be installed.");
+  write_string("Starting notary parsing tests.");
 
 
-
-
-
-  // check if Perspectives is installed and we're able to read its preferences
-  try {
-    // save preferences so we can restore state afterward
-    orig_extra_notaries = Perspectives.root_prefs.getCharPref(pref_string_extra_notaries);
-    orig_use_default_notaries = Perspectives.root_prefs.getBoolPref(pref_string_use_def_notary);
-  }
-  catch (e) {
-    error("Perspectives must be installed to run these tests. Skipping notary parse tests.");
-    g_test_count++;
-    g_fail_count++;
-    return;
-  }
-
   if (orig_extra_notaries == null || orig_use_default_notaries == null) {
     error("Could not read preferences from Perspectives plugin. Skipping notary parse tests.");
     g_test_count++;

-- 
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