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

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

Issue 10349015: Make platform apps get isolated storage by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/isolation/set_cookie.html ('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/isolation/test.js
diff --git a/chrome/test/data/extensions/platform_apps/isolation/test.js b/chrome/test/data/extensions/platform_apps/isolation/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6788d0bce8093369762b5519b0fc42439d916c97
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/isolation/test.js
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+chrome.test.getConfig(function(config) {
+ chrome.test.runTests([
+ function testCookieNotSet() {
+ var xhr = new XMLHttpRequest();
+ xhr.open(
+ 'GET',
+ 'http://localhost:' + config.testServer.port + '/echoheader?Cookie',
+ true);
+ xhr.onload = function() {
+ // Cookies should not have been passed in the request, so the echo of
+ // their header should be the Pythonic "None".
+ chrome.test.assertEq('None', xhr.responseText);
+ chrome.test.succeed();
+ };
+ xhr.onerror = function() {
+ chrome.test.fail('Unexpected HTTP status ' + xhr.status);
+ }
+ xhr.send();
+ }
+ ]);
+});
« no previous file with comments | « chrome/test/data/extensions/platform_apps/isolation/set_cookie.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698