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

Unified Diff: chrome/test/data/extensions/platform_apps/storage/test.js

Issue 120733003: Feature detection-friendly restrictions for packaged apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/platform_apps/restrictions/sandboxed_iframe.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/storage/test.js
diff --git a/chrome/test/data/extensions/platform_apps/storage/test.js b/chrome/test/data/extensions/platform_apps/storage/test.js
index 34efdca3e2aefc3514fd88d34fa299bb179e2641..16d2d4157301baea19f3fa99111eb05b38ee3d68 100644
--- a/chrome/test/data/extensions/platform_apps/storage/test.js
+++ b/chrome/test/data/extensions/platform_apps/storage/test.js
@@ -18,15 +18,7 @@ chrome.test.runTests([
},
function testLocalStorage() {
- try {
- window.localStorage;
- chrome.test.fail('error not thrown');
- } catch (e) {
- var message = e.message || e;
- var expected = 'is not available in packaged apps. ' +
- 'Use chrome.storage.local instead.';
- assertContains(message, expected, 'Unexpected message ' + message);
- chrome.test.succeed();
- }
+ chrome.test.assertTrue(!window.localStorage);
+ chrome.test.succeed();
}
]);
« no previous file with comments | « chrome/test/data/extensions/platform_apps/restrictions/sandboxed_iframe.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698