Bug 1008481 - More test diagnostics. r=me
authorBobby Holley <bobbyholley@gmail.com>
Thu, 05 Jun 2014 23:41:35 -0700
changeset 187043 3f549afdb1b725cfbec523701706256d7985650d
parent 187042 58f1f6dbe7ce9b178e9fe300a66da93522b9d5de
child 187044 74f132824fdaee3b9d3ffaa88a072d4594559c7b
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersme
bugs1008481
milestone32.0a1
Bug 1008481 - More test diagnostics. r=me
caps/tests/mochitest/test_bug995943.xul
--- a/caps/tests/mochitest/test_bug995943.xul
+++ b/caps/tests/mochitest/test_bug995943.xul
@@ -59,17 +59,20 @@ https://bugzilla.mozilla.org/show_bug.cg
   function pushPrefs(prefs) {
     return new Promise(function(resolve) { SpecialPowers.pushPrefEnv({ set: prefs }, resolve); });
   }
 
   function popPrefs() {
     return new Promise(function(resolve) { SpecialPowers.popPrefEnv(resolve); });
   }
 
+  var gGoCount = 0;
   function go() {
+    debug("Invoking go for window with id: " + window.getInterface(Ci.nsIDOMWindowUtils).currentInnerWindowID);
+    is(++gGoCount, 1, "Should only call go once!");
     checkLoadFileURI('http://example.com', false).then(
       pushPrefs.bind(null, [['capability.policy.policynames', ' somepolicy '],
                             ['capability.policy.somepolicy.checkloaduri.enabled', 'AlLAcCeSs'],
                             ['capability.policy.somepolicy.sites', 'http://example.com']]))
     .then(checkLoadFileURI.bind(null, 'http://example.com', true))
     .then(popPrefs)
     .then(checkLoadFileURI.bind(null, 'http://example.com', false))
     .then(