Bug 732615. (Bv1-SM) Move browser_checkAddonCompatibility.js test from SeaMonkey to Toolkit. r=InvisibleSmiley.
authorSerge Gautherie <sgautherie.bz@free.fr>
Sat, 03 Mar 2012 17:31:47 +0100
changeset 10991 c620ba21d50f94feb6d8d83a206527af3ffc5fa3
parent 10990 1579d4c374e82d2f34f045a5dde061c4895131f1
child 10992 3ff2b8c3cb0998df2e1db4ffaa0c2877a213b737
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersInvisibleSmiley
bugs732615
Bug 732615. (Bv1-SM) Move browser_checkAddonCompatibility.js test from SeaMonkey to Toolkit. r=InvisibleSmiley.
suite/browser/test/Makefile.in
suite/browser/test/browser/browser_checkAddonCompatibility.js
--- a/suite/browser/test/Makefile.in
+++ b/suite/browser/test/Makefile.in
@@ -59,17 +59,16 @@ include $(topsrcdir)/config/rules.mk
 
 _BROWSER_FILES = browser_bug413915.js \
                  browser_bug427559.js \
                  browser_bug519216.js \
                  browser_bug561636.js \
                  browser_bug562649.js \
                  browser_bug585511.js \
                  browser_bug595507.js \
-                 browser_checkAddonCompatibility.js \
                  browser_fayt.js \
                  browser_page_style_menu.js \
                  page_style_sample.html \
                  browser_feed_tab.js \
                  feed_tab.html \
                  browser_pluginnotification.js \
                  plugin_unknown.html \
                  plugin_test.html \
deleted file mode 100644
--- a/suite/browser/test/browser/browser_checkAddonCompatibility.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- * http://creativecommons.org/publicdomain/zero/1.0/
- */
-
-// Test that all bundled add-ons are compatible.
-
-const PREF_STRICT_COMPAT = "extensions.strictCompatibility";
-
-function test() {
-  waitForExplicitFinish();
-
-  Services.prefs.setBoolPref(PREF_STRICT_COMPAT, true);
-  ok(AddonManager.strictCompatibility, "Strict compatibility should be enabled");
-
-  AddonManager.getAllAddons(function gAACallback(aAddons) {
-    // Sort add-ons (by name) to improve output.
-    aAddons.sort(function compareName(a, b) {
-      return a.name.localeCompare(b.name);
-    });
-
-    let allCompatible = true;
-    aAddons.forEach(function checkCompatibility(a) {
-      // Ignore plugins.
-      if (a.type == "plugin")
-        return;
-
-      ok(a.isCompatible, a.name + " " + a.version + " should be compatible");
-      allCompatible = allCompatible && a.isCompatible;
-    });
-    // Add a reminder.
-    if (!allCompatible)
-      ok(false, "As this test failed, Toolkit test browser_bug557956.js should fail, too.");
-
-    Services.prefs.clearUserPref(PREF_STRICT_COMPAT);
-    finish();
-  });
-}