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

Unified Diff: chrome/test/data/extensions/api_test/file_system_provider/mime_type/test.js

Issue 412163002: [fsp] Fix linter issues in JS tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 5 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/api_test/file_system_provider/evil/test.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/api_test/file_system_provider/mime_type/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system_provider/mime_type/test.js b/chrome/test/data/extensions/api_test/file_system_provider/mime_type/test.js
index 86e3c0a592ab041101c21f7dc70f4ba4e41d6d7a..8f77cf7ce5bb68ea0723f2d99b4ba91fe8d3c25d 100644
--- a/chrome/test/data/extensions/api_test/file_system_provider/mime_type/test.js
+++ b/chrome/test/data/extensions/api_test/file_system_provider/mime_type/test.js
@@ -69,7 +69,7 @@ function runTests() {
function(tasks) {
chrome.test.assertEq(1, tasks.length);
chrome.test.assertEq(
- "ddammdhioacbehjngdmkjcjbnfginlla|app|magic_handler",
+ 'ddammdhioacbehjngdmkjcjbnfginlla|app|magic_handler',
tasks[0].taskId);
onSuccess();
});
@@ -77,6 +77,7 @@ function runTests() {
chrome.test.fail(error.name);
});
},
+
// Confirm, that executing that task, will actually run an OnLaunched event.
// This is another code path, than collecting tasks (tested above).
function withMimeExecute() {
@@ -88,11 +89,11 @@ function runTests() {
function(tasks) {
chrome.test.assertEq(1, tasks.length);
chrome.test.assertEq(
- "ddammdhioacbehjngdmkjcjbnfginlla|app|magic_handler",
+ 'ddammdhioacbehjngdmkjcjbnfginlla|app|magic_handler',
tasks[0].taskId);
var onLaunched = function(event) {
chrome.test.assertTrue(!!event);
- chrome.test.assertEq("magic_handler", event.id);
+ chrome.test.assertEq('magic_handler', event.id);
chrome.test.assertTrue(!!event.items);
chrome.test.assertEq(1, event.items.length);
chrome.test.assertEq(
@@ -111,6 +112,7 @@ function runTests() {
chrome.test.fail(error.name);
});
},
+
// The file without a mime set must not appear on the task list for this
// testing extension.
function withoutMime() {
« no previous file with comments | « chrome/test/data/extensions/api_test/file_system_provider/evil/test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698