Bug 1008481 - More test diagnostics. r=me
authorBobby Holley <bobbyholley@gmail.com>
Thu, 05 Jun 2014 23:41:35 -0700
changeset 207349 3f549afdb1b725cfbec523701706256d7985650d
parent 207348 58f1f6dbe7ce9b178e9fe300a66da93522b9d5de
child 207350 74f132824fdaee3b9d3ffaa88a072d4594559c7b
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1008481
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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(