| 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 "extensions/browser/guest_view/web_view/web_view_apitest.h" | 5 #include "extensions/browser/guest_view/web_view/web_view_apitest.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 } | 526 } |
| 527 | 527 |
| 528 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScript) { | 528 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScript) { |
| 529 RunTest("testExecuteScript", "web_view/apitest"); | 529 RunTest("testExecuteScript", "web_view/apitest"); |
| 530 } | 530 } |
| 531 | 531 |
| 532 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScriptFail) { | 532 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScriptFail) { |
| 533 RunTest("testExecuteScriptFail", "web_view/apitest"); | 533 RunTest("testExecuteScriptFail", "web_view/apitest"); |
| 534 } | 534 } |
| 535 | 535 |
| 536 IN_PROC_BROWSER_TEST_F(WebViewAPITest, | 536 // Failes on Linux/CrOS. https://crbug.com/702918 |
| 537 TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged) { | 537 #if defined(OS_LINUX) || defined(OS_CHROMEOS) |
| 538 #define MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged \ |
| 539 DISABLED_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged |
| 540 #else |
| 541 #define MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged \ |
| 542 TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged |
| 543 #endif |
| 544 IN_PROC_BROWSER_TEST_F( |
| 545 WebViewAPITest, |
| 546 MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged) { |
| 538 RunTest("testExecuteScriptIsAbortedWhenWebViewSourceIsChanged", | 547 RunTest("testExecuteScriptIsAbortedWhenWebViewSourceIsChanged", |
| 539 "web_view/apitest"); | 548 "web_view/apitest"); |
| 540 } | 549 } |
| 541 | 550 |
| 542 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI) { | 551 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI) { |
| 543 RunTest("testFindAPI", "web_view/apitest"); | 552 RunTest("testFindAPI", "web_view/apitest"); |
| 544 } | 553 } |
| 545 | 554 |
| 546 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI_findupdate) { | 555 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI_findupdate) { |
| 547 RunTest("testFindAPI_findupdate", "web_view/apitest"); | 556 RunTest("testFindAPI_findupdate", "web_view/apitest"); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 // This test verifies that webview.contentWindow works inside an iframe | 767 // This test verifies that webview.contentWindow works inside an iframe |
| 759 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { | 768 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { |
| 760 LaunchApp("web_view/inside_iframe"); | 769 LaunchApp("web_view/inside_iframe"); |
| 761 } | 770 } |
| 762 | 771 |
| 763 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { | 772 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { |
| 764 RunTest("testCaptureVisibleRegion", "web_view/apitest"); | 773 RunTest("testCaptureVisibleRegion", "web_view/apitest"); |
| 765 } | 774 } |
| 766 | 775 |
| 767 } // namespace extensions | 776 } // namespace extensions |
| OLD | NEW |