Bug 1008481 - Add debugging output to test_bug995943.xul. a=test-only
authorBobby Holley <bobbyholley@gmail.com>
Tue, 10 Jun 2014 21:44:32 -0700
changeset 207506 31a1b3aef1ea3c5debbdd29c23042d11e4e19c2d
parent 207505 0e5cf6c3f6da32eba468a9c5805551907a6f268f
child 207507 53a275fc67d5e9675cd25a0bb61e6c1fbec594ab
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1008481, 995943
milestone32.0a2
Bug 1008481 - Add debugging output to test_bug995943.xul. a=test-only
caps/tests/mochitest/test_bug995943.xul
--- a/caps/tests/mochitest/test_bug995943.xul
+++ b/caps/tests/mochitest/test_bug995943.xul
@@ -29,25 +29,28 @@ https://bugzilla.mozilla.org/show_bug.cg
   var profileDir = "file://" + Cc["@mozilla.org/file/directory_service;1"]
                                .getService(Ci.nsIProperties)
                                .get("ProfD", Ci.nsILocalFile).path;
 
   function checkLoadFileURI(domain, shouldLoad) {
     debug("Invoking checkLoadFileURI with domain: " + domain + ", shouldLoad: " + shouldLoad);
     return new Promise(function(resolve, reject) {
       $('ifr').addEventListener('load', function l1() {
+        debug("Invoked l1 for " + domain);
         $('ifr').removeEventListener('load', l1);
         function l2() {
+          debug("Invoked l2 for " + domain);
           $('ifr').removeEventListener('load', l2);
           ok(shouldLoad, "Successfully loaded file:// URI for domain: " + domain);
           resolve();
         }
         $('ifr').addEventListener('load', l2);
         try {
           window[0].wrappedJSObject.location = profileDir;
+          debug("Successfully navigated for " + domain);
         } catch (e) {
           ok(!shouldLoad && /denied|insecure/.test(e),
              "Prevented loading of file:// URI for domain: " + domain + " - " + e);
           $('ifr').removeEventListener('load', l2);
           resolve();
         }
       });
       let targetURI = domain + '/tests/js/xpconnect/tests/mochitest/file_empty.html';