Bug 982997 - Add some logging. r=jwalker
authorGirish Sharma <scrapmachines@gmail.com>
Fri, 14 Mar 2014 00:07:50 +0530
changeset 191796 b4c5df7b0c5a140a399aa82cf81460406e0ceba9
parent 191795 12914d8e8063de11b455cf70c9dfe355fff64dae
child 191797 6357861d1d20a10e0caec43a03844e4d43964071
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalker
bugs982997
milestone30.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 982997 - Add some logging. r=jwalker
toolkit/devtools/server/tests/browser/browser_storage_dynamic_windows.js
--- a/toolkit/devtools/server/tests/browser/browser_storage_dynamic_windows.js
+++ b/toolkit/devtools/server/tests/browser/browser_storage_dynamic_windows.js
@@ -109,16 +109,17 @@ function testReload() {
     if (data.deleted) {
       markOutMatched(shouldBeEmptyFirst, data.deleted, true);
     }
 
     if (!Object.keys(shouldBeEmptyFirst).length) {
       info("shouldBeEmptyFirst is empty now");
     }
     else if (!data.added || !Object.keys(data.added).length) {
+      info(JSON.stringify(data));
       ok(false, "deleted object should have something if an added object " +
          "does not have anything");
       endTestReloaded();
     }
 
     // stores-update call might not have data.added for the first time on slow
     // machines, in which case, data.added will be null
     if (data.added) {
@@ -154,16 +155,17 @@ function testAddIframe() {
       "https://sectest1.example.org": ["iframe-s-ss1"]
     },
     cookies: {
       "sectest1.example.org": ["sc1"]
     }
   };
 
   let onStoresUpdate = data => {
+    info(JSON.stringify(data));
     info("checking if the hosts list is correct for this iframe addition");
 
     markOutMatched(shouldBeEmpty, data.added);
 
     ok(!data.changed || !data.changed.cookies ||
        !data.changed.cookies["https://sectest1.example.org"],
        "Nothing got changed for cookies");
     ok(!data.changed || !data.changed.localStorage ||