summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorcindylau@google.com <cindylau@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-15 00:36:37 +0000
committercindylau@google.com <cindylau@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-15 00:36:37 +0000
commita938b706f6a17ffe41143c0637f4e713467894d0 (patch)
tree2094b9b6bed60407e4fbbe15d65080f032f43e7f /chrome
parent82d9d295c3201f484710e9f519f98b02ebfe7b61 (diff)
downloadchromium_src-a938b706f6a17ffe41143c0637f4e713467894d0.zip
chromium_src-a938b706f6a17ffe41143c0637f4e713467894d0.tar.gz
chromium_src-a938b706f6a17ffe41143c0637f4e713467894d0.tar.bz2
Fix line endings for the cookie API test files.
BUG=none TEST=none Review URL: http://codereview.chromium.org/2079005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47345 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/test/data/extensions/api_test/cookies/background.html32
-rw-r--r--chrome/test/data/extensions/api_test/cookies/manifest.json14
-rw-r--r--chrome/test/data/extensions/api_test/cookies/tab.html44
3 files changed, 45 insertions, 45 deletions
diff --git a/chrome/test/data/extensions/api_test/cookies/background.html b/chrome/test/data/extensions/api_test/cookies/background.html
index b5f199a..612e605 100644
--- a/chrome/test/data/extensions/api_test/cookies/background.html
+++ b/chrome/test/data/extensions/api_test/cookies/background.html
@@ -1,16 +1,16 @@
-<script>
- // Ensure we started with an empty profile.
- chrome.test.assertEq(document.cookie, "");
-
- // Set some cookies with a few different modifiers.
- var expire = new Date();
- expire.setDate(expire.getDate() + 1); // tomorrow
- document.cookie = "a=1";
- document.cookie = "b=2; path=/; domain=" + location.host;
- document.cookie = "c=3; path=/; expires=" + expire +
- "; domain=" + location.host;
-
- // Open a tab. This doesn't really prove we're writing to disk, but it is
- // difficult to prove that without shutting down the process.
- chrome.tabs.create({url: "tab.html"});
-</script>
+<script>
+ // Ensure we started with an empty profile.
+ chrome.test.assertEq(document.cookie, "");
+
+ // Set some cookies with a few different modifiers.
+ var expire = new Date();
+ expire.setDate(expire.getDate() + 1); // tomorrow
+ document.cookie = "a=1";
+ document.cookie = "b=2; path=/; domain=" + location.host;
+ document.cookie = "c=3; path=/; expires=" + expire +
+ "; domain=" + location.host;
+
+ // Open a tab. This doesn't really prove we're writing to disk, but it is
+ // difficult to prove that without shutting down the process.
+ chrome.tabs.create({url: "tab.html"});
+</script>
diff --git a/chrome/test/data/extensions/api_test/cookies/manifest.json b/chrome/test/data/extensions/api_test/cookies/manifest.json
index ebc11a5..ec86d63 100644
--- a/chrome/test/data/extensions/api_test/cookies/manifest.json
+++ b/chrome/test/data/extensions/api_test/cookies/manifest.json
@@ -1,7 +1,7 @@
-{
- "name": "chrome.cookies",
- "version": "0.1",
- "description": "sanity test that cookies can be set and read from extensions",
- "background_page": "background.html",
- "permissions": ["tabs"]
-}
+{
+ "name": "chrome.cookies",
+ "version": "0.1",
+ "description": "sanity test that cookies can be set and read from extensions",
+ "background_page": "background.html",
+ "permissions": ["tabs"]
+}
diff --git a/chrome/test/data/extensions/api_test/cookies/tab.html b/chrome/test/data/extensions/api_test/cookies/tab.html
index 4bf795a..6bd51be 100644
--- a/chrome/test/data/extensions/api_test/cookies/tab.html
+++ b/chrome/test/data/extensions/api_test/cookies/tab.html
@@ -1,22 +1,22 @@
-<script>
-function readCookie(name) {
- var nameEQ = name + "=";
- var cookies = document.cookie.split(';');
- for(var i=0; i < cookies.length; i++) {
- var c = cookies[i];
- while (c.charAt(0)==' ')
- c = c.substring(1);
- if (c.indexOf(nameEQ) == 0)
- return c.substring(nameEQ.length);
- }
- return null;
-}
-
-chrome.test.runTests([function readCookies() {
- chrome.test.assertEq(readCookie("a"), "1");
- chrome.test.assertEq(readCookie("b"), "2");
- chrome.test.assertEq(readCookie("c"), "3");
- chrome.test.assertEq(readCookie("nonexistant"), null);
- chrome.test.succeed();
-}]);
-</script>
+<script>
+function readCookie(name) {
+ var nameEQ = name + "=";
+ var cookies = document.cookie.split(';');
+ for(var i=0; i < cookies.length; i++) {
+ var c = cookies[i];
+ while (c.charAt(0)==' ')
+ c = c.substring(1);
+ if (c.indexOf(nameEQ) == 0)
+ return c.substring(nameEQ.length);
+ }
+ return null;
+}
+
+chrome.test.runTests([function readCookies() {
+ chrome.test.assertEq(readCookie("a"), "1");
+ chrome.test.assertEq(readCookie("b"), "2");
+ chrome.test.assertEq(readCookie("c"), "3");
+ chrome.test.assertEq(readCookie("nonexistant"), null);
+ chrome.test.succeed();
+}]);
+</script>