Commit dde6731c authored by jstritar@chromium.org's avatar jstritar@chromium.org

Remove CRLFs from extension test files.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7541041

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95614 0039d316-1c4b-4281-b951-d872f2087c98
parent d6007316
<script> <script>
var assertFalse = chrome.test.assertFalse; var assertFalse = chrome.test.assertFalse;
var assertTrue = chrome.test.assertTrue; var assertTrue = chrome.test.assertTrue;
var pass = chrome.test.callbackPass; var pass = chrome.test.callbackPass;
var NO_TABS_PERMISSION = var NO_TABS_PERMISSION =
"You do not have permission to use 'windows.getAll'."; "You do not have permission to use 'windows.getAll'.";
chrome.test.runTests([ chrome.test.runTests([
function denyRequest() { function denyRequest() {
chrome.experimental.permissions.request( chrome.experimental.permissions.request(
{permissions: ['tabs']}, {permissions: ['tabs']},
pass(function(granted) { pass(function(granted) {
// They were not granted, and there should be no error. // They were not granted, and there should be no error.
assertFalse(granted); assertFalse(granted);
assertTrue(chrome.extension.lastError === undefined); assertTrue(chrome.extension.lastError === undefined);
// Make sure they weren't granted... // Make sure they weren't granted...
chrome.experimental.permissions.contains( chrome.experimental.permissions.contains(
{permissions: ['tabs']}, {permissions: ['tabs']},
pass(function(result) { pass(function(result) {
assertFalse(result); assertFalse(result);
})); }));
try { try {
chrome.windows.getAll({populate: true}, function() { chrome.windows.getAll({populate: true}, function() {
chrome.test.fail("Should not have tabs API permission."); chrome.test.fail("Should not have tabs API permission.");
}); });
} catch (e) { } catch (e) {
assertTrue(e.message.indexOf(NO_TABS_PERMISSION) == 0); assertTrue(e.message.indexOf(NO_TABS_PERMISSION) == 0);
} }
})); }));
} }
]); ]);
</script> </script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment