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 // Failes on Linux/CrOS. https://crbug.com/702918 | 536 // Flaky and likely not testing the right assertion. https://crbug.com/702918 |
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( | 537 IN_PROC_BROWSER_TEST_F( |
545 WebViewAPITest, | 538 WebViewAPITest, |
546 MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged) { | 539 DISABLED_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged) { |
547 RunTest("testExecuteScriptIsAbortedWhenWebViewSourceIsChanged", | 540 RunTest("testExecuteScriptIsAbortedWhenWebViewSourceIsChanged", |
548 "web_view/apitest"); | 541 "web_view/apitest"); |
549 } | 542 } |
550 | 543 |
551 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI) { | 544 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI) { |
552 RunTest("testFindAPI", "web_view/apitest"); | 545 RunTest("testFindAPI", "web_view/apitest"); |
553 } | 546 } |
554 | 547 |
555 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI_findupdate) { | 548 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI_findupdate) { |
556 RunTest("testFindAPI_findupdate", "web_view/apitest"); | 549 RunTest("testFindAPI_findupdate", "web_view/apitest"); |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 // This test verifies that webview.contentWindow works inside an iframe | 760 // This test verifies that webview.contentWindow works inside an iframe |
768 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { | 761 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { |
769 LaunchApp("web_view/inside_iframe"); | 762 LaunchApp("web_view/inside_iframe"); |
770 } | 763 } |
771 | 764 |
772 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { | 765 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { |
773 RunTest("testCaptureVisibleRegion", "web_view/apitest"); | 766 RunTest("testCaptureVisibleRegion", "web_view/apitest"); |
774 } | 767 } |
775 | 768 |
776 } // namespace extensions | 769 } // namespace extensions |
OLD | NEW |