Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: chrome/test/data/extensions/platform_apps/storage/background.js

Issue 9192021: Disallow WebSQL and localStorage in platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: block localStorage Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 chrome.test.runTests([
6 function testOpenDatabase() {
7 chrome.test.assertTrue(!window.openDatabase);
8 chrome.test.succeed();
9 },
10
11 function testOpenDatabaseSync() {
12 chrome.test.assertTrue(!window.openDatabaseSync);
13 chrome.test.succeed();
14 },
15
16 function testLocalStorage() {
17 chrome.test.assertTrue(!localStorage);
18 chrome.test.assertTrue(!window.localStorage);
19 chrome.test.succeed();
20 }
21 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698