From add7f8a4aae7199d942b1f85a4f9a3b2465ef035 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Tue, 12 May 2015 18:03:00 +0530 Subject: [PATCH] add test --- atom/browser/atom_browser_client.cc | 1 - spec/chromium-spec.coffee | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/atom/browser/atom_browser_client.cc b/atom/browser/atom_browser_client.cc index 633cc6accd06..cf656d4a7cd8 100644 --- a/atom/browser/atom_browser_client.cc +++ b/atom/browser/atom_browser_client.cc @@ -20,7 +20,6 @@ #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h" #include "chrome/browser/speech/tts_message_filter.h" #include "content/public/browser/browser_ppapi_host.h" -#include "content/public/browser/quota_permission_context.h" #include "content/public/browser/render_process_host.h" #include "content/public/browser/render_view_host.h" #include "content/public/browser/resource_dispatcher_host.h" diff --git a/spec/chromium-spec.coffee b/spec/chromium-spec.coffee index d39183576b40..88a3487cc9d2 100644 --- a/spec/chromium-spec.coffee +++ b/spec/chromium-spec.coffee @@ -82,3 +82,9 @@ describe 'chromium feature', -> iframe.onload = -> assert.equal iframe.contentWindow.test, 'undefined undefined undefined' done() + + describe 'storage', -> + it 'requesting persitent quota works', (done) -> + navigator.webkitPersistentStorage.requestQuota 1024 * 1024, (grantedBytes) -> + assert.equal grantedBytes, 1048576 + done()