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 234989 11c951df53c9
parent 234988 95ec024d2e6b
child 234990 92adb459d519
push id28462
push usercbook@mozilla.com
push dateMon, 23 Mar 2015 12:19:34 +0000
treeherdermozilla-central@bc85c479668a [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();
 });