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

Side by Side Diff: chrome/browser/pdf/pdf_extension_test.cc

Issue 2855953003: Handle long press in PDF documents. (Closed)
Patch Set: Rebase to master Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/gesture_detector.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/files/file_enumerator.h" 10 #include "base/files/file_enumerator.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 } 388 }
389 389
390 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ZoomManager) { 390 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ZoomManager) {
391 RunTestsInFile("zoom_manager_test.js", "test.pdf"); 391 RunTestsInFile("zoom_manager_test.js", "test.pdf");
392 } 392 }
393 393
394 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, GestureDetector) { 394 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, GestureDetector) {
395 RunTestsInFile("gesture_detector_test.js", "test.pdf"); 395 RunTestsInFile("gesture_detector_test.js", "test.pdf");
396 } 396 }
397 397
398 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, TouchHandling) {
399 RunTestsInFile("touch_handling_test.js", "test.pdf");
400 }
401
398 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Elements) { 402 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Elements) {
399 // Although this test file does not require a PDF to be loaded, loading the 403 // Although this test file does not require a PDF to be loaded, loading the
400 // elements without loading a PDF is difficult. 404 // elements without loading a PDF is difficult.
401 RunTestsInFile("material_elements_test.js", "test.pdf"); 405 RunTestsInFile("material_elements_test.js", "test.pdf");
402 } 406 }
403 407
404 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ToolbarManager) { 408 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ToolbarManager) {
405 RunTestsInFile("toolbar_manager_test.js", "test.pdf"); 409 RunTestsInFile("toolbar_manager_test.js", "test.pdf");
406 } 410 }
407 411
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, OpenFromFTP) { 1021 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, OpenFromFTP) {
1018 net::SpawnedTestServer ftp_server( 1022 net::SpawnedTestServer ftp_server(
1019 net::SpawnedTestServer::TYPE_FTP, net::SpawnedTestServer::kLocalhost, 1023 net::SpawnedTestServer::TYPE_FTP, net::SpawnedTestServer::kLocalhost,
1020 base::FilePath(FILE_PATH_LITERAL("chrome/test/data/pdf"))); 1024 base::FilePath(FILE_PATH_LITERAL("chrome/test/data/pdf")));
1021 ASSERT_TRUE(ftp_server.Start()); 1025 ASSERT_TRUE(ftp_server.Start());
1022 1026
1023 GURL url(ftp_server.GetURL("/test.pdf")); 1027 GURL url(ftp_server.GetURL("/test.pdf"));
1024 ASSERT_TRUE(LoadPdf(url)); 1028 ASSERT_TRUE(LoadPdf(url));
1025 EXPECT_EQ(base::ASCIIToUTF16("test.pdf"), GetActiveWebContents()->GetTitle()); 1029 EXPECT_EQ(base::ASCIIToUTF16("test.pdf"), GetActiveWebContents()->GetTitle());
1026 } 1030 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/gesture_detector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698