OLD | NEW |
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } | 392 } |
393 | 393 |
394 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ParamsParser) { | 394 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ParamsParser) { |
395 RunTestsInFile("params_parser_test.js", "test.pdf"); | 395 RunTestsInFile("params_parser_test.js", "test.pdf"); |
396 } | 396 } |
397 | 397 |
398 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ZoomManager) { | 398 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ZoomManager) { |
399 RunTestsInFile("zoom_manager_test.js", "test.pdf"); | 399 RunTestsInFile("zoom_manager_test.js", "test.pdf"); |
400 } | 400 } |
401 | 401 |
| 402 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, GestureDetector) { |
| 403 RunTestsInFile("gesture_detector_test.js", "test.pdf"); |
| 404 } |
| 405 |
402 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Elements) { | 406 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Elements) { |
403 // Although this test file does not require a PDF to be loaded, loading the | 407 // Although this test file does not require a PDF to be loaded, loading the |
404 // elements without loading a PDF is difficult. | 408 // elements without loading a PDF is difficult. |
405 RunTestsInFile("material_elements_test.js", "test.pdf"); | 409 RunTestsInFile("material_elements_test.js", "test.pdf"); |
406 } | 410 } |
407 | 411 |
408 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ToolbarManager) { | 412 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ToolbarManager) { |
409 RunTestsInFile("toolbar_manager_test.js", "test.pdf"); | 413 RunTestsInFile("toolbar_manager_test.js", "test.pdf"); |
410 } | 414 } |
411 | 415 |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 | 888 |
885 ASSERT_EQ(2U, chrome::GetTotalBrowserCount()); | 889 ASSERT_EQ(2U, chrome::GetTotalBrowserCount()); |
886 | 890 |
887 content::WebContents* active_web_contents = | 891 content::WebContents* active_web_contents = |
888 chrome::FindLastActive()->tab_strip_model()->GetActiveWebContents(); | 892 chrome::FindLastActive()->tab_strip_model()->GetActiveWebContents(); |
889 ASSERT_NE(web_contents, active_web_contents); | 893 ASSERT_NE(web_contents, active_web_contents); |
890 | 894 |
891 const GURL& url = active_web_contents->GetURL(); | 895 const GURL& url = active_web_contents->GetURL(); |
892 ASSERT_EQ(std::string("http://www.example.com/"), url.spec()); | 896 ASSERT_EQ(std::string("http://www.example.com/"), url.spec()); |
893 } | 897 } |
OLD | NEW |