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

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

Issue 224883008: Sniff MIME type for files which have unknown extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and omit binary file. Created 6 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/browser/chromeos/extensions/file_manager/private_api_tasks.cc ('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/launch_application_octet_stream/test.js
diff --git a/chrome/test/data/extensions/platform_apps/launch_application_octet_stream/test.js b/chrome/test/data/extensions/platform_apps/launch_application_octet_stream/test.js
index a65ef82ba907787429c52cb7fbf1fb2a348f74b5..2fb56db892611b13f80da101437f14cc8e9dc766 100644
--- a/chrome/test/data/extensions/platform_apps/launch_application_octet_stream/test.js
+++ b/chrome/test/data/extensions/platform_apps/launch_application_octet_stream/test.js
@@ -18,18 +18,7 @@ chrome.app.runtime.onLaunched.addListener(function (launchData) {
chrome.test.assertTrue(
chrome.fileSystem.retainEntry(launchData.items[0].entry) != null);
- launchData.items[0].entry.file(function(file) {
- var reader = new FileReader();
- reader.onloadend = function(e) {
- chrome.test.assertEq(
- reader.result.indexOf("This is a test. Word."), 0);
- chrome.test.succeed();
- };
- reader.onerror = function(e) {
- chrome.test.fail("Error reading file contents.");
- };
- reader.readAsText(file);
- });
+ chrome.test.succeed();
}
]);
});
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698