| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/files/file_enumerator.h" | 6 #include "base/files/file_enumerator.h" |
| 7 #include "base/hash.h" | 7 #include "base/hash.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 INSTANTIATE_TEST_CASE_P(PDFTestFiles, | 367 INSTANTIATE_TEST_CASE_P(PDFTestFiles, |
| 368 PDFBrowserTest, | 368 PDFBrowserTest, |
| 369 testing::Range(0, kLoadingNumberOfParts)); | 369 testing::Range(0, kLoadingNumberOfParts)); |
| 370 | 370 |
| 371 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_MACOSX) | 371 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_MACOSX) |
| 372 // http://crbug.com/315160 | 372 // http://crbug.com/315160 |
| 373 #define MAYBE_Action DISABLED_Action | 373 #define MAYBE_Action DISABLED_Action |
| 374 #else | 374 #else |
| 375 #define MAYBE_Action Action | 375 #define MAYBE_Action Action |
| 376 #endif |
| 376 IN_PROC_BROWSER_TEST_F(PDFBrowserTest, MAYBE_Action) { | 377 IN_PROC_BROWSER_TEST_F(PDFBrowserTest, MAYBE_Action) { |
| 377 ASSERT_NO_FATAL_FAILURE(Load()); | 378 ASSERT_NO_FATAL_FAILURE(Load()); |
| 378 | 379 |
| 379 ASSERT_TRUE(content::ExecuteScript( | 380 ASSERT_TRUE(content::ExecuteScript( |
| 380 browser()->tab_strip_model()->GetActiveWebContents(), | 381 browser()->tab_strip_model()->GetActiveWebContents(), |
| 381 "document.getElementsByName('plugin')[0].fitToHeight();")); | 382 "document.getElementsByName('plugin')[0].fitToHeight();")); |
| 382 | 383 |
| 383 std::string zoom1, zoom2; | 384 std::string zoom1, zoom2; |
| 384 ASSERT_TRUE(content::ExecuteScriptAndExtractString( | 385 ASSERT_TRUE(content::ExecuteScriptAndExtractString( |
| 385 browser()->tab_strip_model()->GetActiveWebContents(), | 386 browser()->tab_strip_model()->GetActiveWebContents(), |
| (...skipping 29 matching lines...) Expand all Loading... |
| 415 browser()->tab_strip_model()->GetActiveWebContents(), | 416 browser()->tab_strip_model()->GetActiveWebContents(), |
| 416 "reloadPDF();")); | 417 "reloadPDF();")); |
| 417 observer.Wait(); | 418 observer.Wait(); |
| 418 | 419 |
| 419 ASSERT_EQ("success", | 420 ASSERT_EQ("success", |
| 420 browser()->tab_strip_model()->GetActiveWebContents()-> | 421 browser()->tab_strip_model()->GetActiveWebContents()-> |
| 421 GetURL().query()); | 422 GetURL().query()); |
| 422 } | 423 } |
| 423 | 424 |
| 424 } // namespace | 425 } // namespace |
| OLD | NEW |