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

Unified Diff: chrome/test/data/pdf/basic_plugin_test.js

Issue 1303103003: PDF: Use PDF metadata for the title instead of the last path element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « chrome/browser/resources/pdf/pdf.js ('k') | chrome/test/data/pdf/test-title.pdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/pdf/basic_plugin_test.js
diff --git a/chrome/test/data/pdf/basic_plugin_test.js b/chrome/test/data/pdf/basic_plugin_test.js
index fc73d5417b4ca607e92ee746eddc13317f124178..dbcf0bc31e4ed4864dd5f755c73af428e310c228 100644
--- a/chrome/test/data/pdf/basic_plugin_test.js
+++ b/chrome/test/data/pdf/basic_plugin_test.js
@@ -55,6 +55,15 @@ var tests = [
chrome.test.assertEq('this is some text\nsome more text', selectedText);
}));
},
+
+ /**
+ * Test that the filename is used as the title.pdf.
+ */
+ function testHasCorrectTitle() {
+ chrome.test.assertEq('test.pdf', document.title);
+
+ chrome.test.succeed();
+ },
];
var scriptingAPI = new PDFScriptingAPI(window, window);
« no previous file with comments | « chrome/browser/resources/pdf/pdf.js ('k') | chrome/test/data/pdf/test-title.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698