Bug 1249447 - Wait correctly for all storage creation/deletion in browser_storage_dynamic_windows.js. r=mratcliffe
authorAlexandre Poirot <poirot.alex@gmail.com>
Fri, 18 Mar 2016 02:44:22 -0700
changeset 313245 c35895f48511d4ed74a9935415c5a786546fe982
parent 313244 95656a398e8f7754d358f1f0250a2e8069f5db47
child 313246 571fa014bb35a2026fef866abe08daa52e599a46
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmratcliffe
bugs1249447
milestone48.0a1
Bug 1249447 - Wait correctly for all storage creation/deletion in browser_storage_dynamic_windows.js. r=mratcliffe
devtools/server/tests/browser/browser_storage_dynamic_windows.js
--- a/devtools/server/tests/browser/browser_storage_dynamic_windows.js
+++ b/devtools/server/tests/browser/browser_storage_dynamic_windows.js
@@ -143,16 +143,19 @@ function testAddIframe(front) {
       },
       cookies: {
         "sectest1.example.org": ["sc1"]
       },
       indexedDB: {
         // empty because indexed db creation happens after the page load, so at
         // the time of window-ready, there was no indexed db present.
         "https://sectest1.example.org": []
+      },
+      Cache: {
+        "https://sectest1.example.org":[]
       }
     };
 
     let onStoresUpdate = data => {
       info("checking if the hosts list is correct for this iframe addition");
 
       markOutMatched(shouldBeEmpty, data.added);
 
@@ -205,16 +208,22 @@ function testRemoveIframe(front) {
   info("Testing if iframe removal works properly");
   return new Promise(resolve => {
     let shouldBeEmpty = {
       localStorage: {
         "http://sectest1.example.org": []
       },
       sessionStorage: {
         "http://sectest1.example.org": []
+      },
+      Cache: {
+        "http://sectest1.example.org": []
+      },
+      indexedDB: {
+        "http://sectest1.example.org": []
       }
     };
 
     let onStoresUpdate = data => {
       info("checking if the hosts list is correct for this iframe deletion");
 
       markOutMatched(shouldBeEmpty, data.deleted, true);