| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 326 } |
| 327 | 327 |
| 328 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Viewport) { | 328 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Viewport) { |
| 329 RunTestsInFile("viewport_test.js", "test.pdf"); | 329 RunTestsInFile("viewport_test.js", "test.pdf"); |
| 330 } | 330 } |
| 331 | 331 |
| 332 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Bookmark) { | 332 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Bookmark) { |
| 333 RunTestsInFile("bookmarks_test.js", "test-bookmarks.pdf"); | 333 RunTestsInFile("bookmarks_test.js", "test-bookmarks.pdf"); |
| 334 } | 334 } |
| 335 | 335 |
| 336 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Navigator) { | 336 // https://crbug.com/600445 |
| 337 #if defined(ADDRESS_SANITIZER) |
| 338 #define MAYBE_Navigator DISABLED_Navigator |
| 339 #else |
| 340 #define MAYBE_Navigator Navigator |
| 341 #endif |
| 342 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, MAYBE_Navigator) { |
| 337 RunTestsInFile("navigator_test.js", "test.pdf"); | 343 RunTestsInFile("navigator_test.js", "test.pdf"); |
| 338 } | 344 } |
| 339 | 345 |
| 340 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ParamsParser) { | 346 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ParamsParser) { |
| 341 RunTestsInFile("params_parser_test.js", "test.pdf"); | 347 RunTestsInFile("params_parser_test.js", "test.pdf"); |
| 342 } | 348 } |
| 343 | 349 |
| 344 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ZoomManager) { | 350 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, ZoomManager) { |
| 345 RunTestsInFile("zoom_manager_test.js", "test.pdf"); | 351 RunTestsInFile("zoom_manager_test.js", "test.pdf"); |
| 346 } | 352 } |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 #endif | 511 #endif |
| 506 ASSERT_TRUE( | 512 ASSERT_TRUE( |
| 507 content::ExecuteScript(guest_contents, "viewer.viewport.zoomIn();")); | 513 content::ExecuteScript(guest_contents, "viewer.viewport.zoomIn();")); |
| 508 | 514 |
| 509 watcher.Wait(); | 515 watcher.Wait(); |
| 510 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) | 516 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) |
| 511 EXPECT_EQ(nullptr, ZoomBubbleView::GetZoomBubble()); | 517 EXPECT_EQ(nullptr, ZoomBubbleView::GetZoomBubble()); |
| 512 #endif | 518 #endif |
| 513 } | 519 } |
| 514 | 520 |
| OLD | NEW |