Bug 1110814 follow-up: Fix a typo in order to fix the test failures
authorEhsan Akhgari <ehsan@mozilla.com>
Sun, 22 Mar 2015 10:35:29 -0400
changeset 234954 11c951df53c9
parent 234953 95ec024d2e6b
child 234955 92adb459d519
push id57279
push usereakhgari@mozilla.com
push dateSun, 22 Mar 2015 14:36:57 +0000
treeherdermozilla-inbound@11c951df53c9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1110814
milestone39.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 1110814 follow-up: Fix a typo in order to fix the test failures
dom/cache/test/mochitest/test_cache_put.js
--- a/dom/cache/test/mochitest/test_cache_put.js
+++ b/dom/cache/test/mochitest/test_cache_put.js
@@ -14,12 +14,13 @@ Promise.all([fetch(url),
   ok(response.url.endsWith(url), 'matched response should match original url');
   return Promise.all([fetchResponse.text(),
                       response.text()]);
 }).then(function(results) {
   // suppress large assert spam unless its relevent
   if (results[0] !== results[1]) {
     is(results[0], results[1], 'stored response body should match original');
   }
-  return cache.delete('putter' + context);
-}).then(function() {
+  return caches.delete('putter' + context);
+}).then(function(deleted) {
+  ok(deleted, "The cache should be deleted successfully");
   testDone();
 });