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

Unified Diff: chrome/test/data/extensions/api_test/permissions/optional_deny/background.html

Issue 7541041: Remove CRLFs from extension test files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/permissions/optional_deny/background.html
diff --git a/chrome/test/data/extensions/api_test/permissions/optional_deny/background.html b/chrome/test/data/extensions/api_test/permissions/optional_deny/background.html
index ca023829a1999656566e2fe6bf2abdacb6005356..92f09d8d833145e35e0d21d5a4e8653416d25278 100644
--- a/chrome/test/data/extensions/api_test/permissions/optional_deny/background.html
+++ b/chrome/test/data/extensions/api_test/permissions/optional_deny/background.html
@@ -1,36 +1,36 @@
-<script>
-
-var assertFalse = chrome.test.assertFalse;
-var assertTrue = chrome.test.assertTrue;
-var pass = chrome.test.callbackPass;
-
-var NO_TABS_PERMISSION =
- "You do not have permission to use 'windows.getAll'.";
-
-chrome.test.runTests([
- function denyRequest() {
+<script>
+
+var assertFalse = chrome.test.assertFalse;
+var assertTrue = chrome.test.assertTrue;
+var pass = chrome.test.callbackPass;
+
+var NO_TABS_PERMISSION =
+ "You do not have permission to use 'windows.getAll'.";
+
+chrome.test.runTests([
+ function denyRequest() {
chrome.experimental.permissions.request(
{permissions: ['tabs']},
- pass(function(granted) {
- // They were not granted, and there should be no error.
- assertFalse(granted);
- assertTrue(chrome.extension.lastError === undefined);
-
- // Make sure they weren't granted...
+ pass(function(granted) {
+ // They were not granted, and there should be no error.
+ assertFalse(granted);
+ assertTrue(chrome.extension.lastError === undefined);
+
+ // Make sure they weren't granted...
chrome.experimental.permissions.contains(
- {permissions: ['tabs']},
- pass(function(result) {
- assertFalse(result);
- }));
-
- try {
- chrome.windows.getAll({populate: true}, function() {
- chrome.test.fail("Should not have tabs API permission.");
- });
- } catch (e) {
- assertTrue(e.message.indexOf(NO_TABS_PERMISSION) == 0);
- }
- }));
- }
-]);
-</script>
+ {permissions: ['tabs']},
+ pass(function(result) {
+ assertFalse(result);
+ }));
+
+ try {
+ chrome.windows.getAll({populate: true}, function() {
+ chrome.test.fail("Should not have tabs API permission.");
+ });
+ } catch (e) {
+ assertTrue(e.message.indexOf(NO_TABS_PERMISSION) == 0);
+ }
+ }));
+ }
+]);
+</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698