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

Unified Diff: chrome/browser/pdf/pdf_extension_test.cc

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 | « no previous file | chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/pdf/pdf_extension_test.cc
diff --git a/chrome/browser/pdf/pdf_extension_test.cc b/chrome/browser/pdf/pdf_extension_test.cc
index 548341b76a80421ab37e8e194c2199e9819987fd..b90517984a16bd114c4a23101c6fc67ce236a053 100644
--- a/chrome/browser/pdf/pdf_extension_test.cc
+++ b/chrome/browser/pdf/pdf_extension_test.cc
@@ -326,6 +326,10 @@ IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ZoomManager) {
RunTestsInFile("zoom_manager_test.js", "test.pdf");
}
+IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Title) {
+ RunTestsInFile("title_test.js", "test-title.pdf");
+}
+
// Ensure that the internal PDF plugin application/x-google-chrome-pdf won't be
// loaded if it's not loaded in the chrome extension page.
IN_PROC_BROWSER_TEST_F(PDFExtensionTest, EnsureInternalPluginDisabled) {
@@ -412,3 +416,7 @@ IN_PROC_BROWSER_TEST_F(MaterialPDFExtensionTest, Elements) {
IN_PROC_BROWSER_TEST_F(MaterialPDFExtensionTest, ToolbarManager) {
RunTestsInFile("toolbar_manager_test.js", "test.pdf");
}
+
+IN_PROC_BROWSER_TEST_F(MaterialPDFExtensionTest, Title) {
+ RunTestsInFile("title_test.js", "test-title.pdf");
+}
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/elements/viewer-pdf-toolbar/viewer-pdf-toolbar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698