Bug 1249447 - Wait correctly for all storage creation/deletion in browser_storage_dynamic_windows.js. r=mratcliffe, a=test-only
authorAlexandre Poirot <poirot.alex@gmail.com>
Fri, 18 Mar 2016 02:44:22 -0700
changeset 323635 42567382961133a6c250e306899c2fa2e055f726
parent 323634 d6257152dcbf8ff8c46ce70331410315cd6a4b9a
child 323636 c99976c9726460929fe402302972d50c516a3920
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmratcliffe, test-only
bugs1249447
milestone47.0a2
Bug 1249447 - Wait correctly for all storage creation/deletion in browser_storage_dynamic_windows.js. r=mratcliffe, a=test-only
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);