| 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 #if defined(OS_LINUX) || defined(OS_CHROMEOS) | 537 #if defined(OS_LINUX) || defined(OS_CHROMEOS) |
| 538 #define MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged \ | 538 #define MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged \ |
| 539 DISABLED_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged | 539 DISABLED_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged |
| 540 #else | 540 #else |
| 541 #define MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged \ | 541 #define MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged \ |
| 542 TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged | 542 TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged |
| 543 #endif | 543 #endif |
| 544 IN_PROC_BROWSER_TEST_F( | 544 IN_PROC_BROWSER_TEST_F( |
| 545 WebViewAPITest, | 545 WebViewAPITest, |
| 546 MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged) { | 546 MAYBE_TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged) { |
| 547 RunTest("testExecuteScriptIsAbortedWhenWebViewSourceIsChanged", | 547 std::string app_location = "web_view/apitest"; |
| 548 "web_view/apitest"); | 548 StartTestServer(app_location); |
| 549 RunTest("testExecuteScriptIsAbortedWhenWebViewSourceIsChanged", app_location); |
| 550 StopTestServer(); |
| 549 } | 551 } |
| 550 | 552 |
| 551 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI) { | 553 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI) { |
| 552 RunTest("testFindAPI", "web_view/apitest"); | 554 RunTest("testFindAPI", "web_view/apitest"); |
| 553 } | 555 } |
| 554 | 556 |
| 555 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI_findupdate) { | 557 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI_findupdate) { |
| 556 RunTest("testFindAPI_findupdate", "web_view/apitest"); | 558 RunTest("testFindAPI_findupdate", "web_view/apitest"); |
| 557 } | 559 } |
| 558 | 560 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 RunTest("testNavOnSrcAttributeChange", "web_view/apitest"); | 635 RunTest("testNavOnSrcAttributeChange", "web_view/apitest"); |
| 634 } | 636 } |
| 635 | 637 |
| 636 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindow) { | 638 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindow) { |
| 637 std::string app_location = "web_view/apitest"; | 639 std::string app_location = "web_view/apitest"; |
| 638 StartTestServer(app_location); | 640 StartTestServer(app_location); |
| 639 RunTest("testNewWindow", app_location); | 641 RunTest("testNewWindow", app_location); |
| 640 StopTestServer(); | 642 StopTestServer(); |
| 641 } | 643 } |
| 642 | 644 |
| 645 IN_PROC_BROWSER_TEST_F(WebViewAPITest, |
| 646 TestContentInitiatedNavigationToDataUrlBlocked) { |
| 647 RunTest("testContentInitiatedNavigationToDataUrlBlocked", "web_view/apitest"); |
| 648 } |
| 649 |
| 643 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoPreventDefault) { | 650 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoPreventDefault) { |
| 644 std::string app_location = "web_view/apitest"; | 651 std::string app_location = "web_view/apitest"; |
| 645 StartTestServer(app_location); | 652 StartTestServer(app_location); |
| 646 RunTest("testNewWindowNoPreventDefault", app_location); | 653 RunTest("testNewWindowNoPreventDefault", app_location); |
| 647 StopTestServer(); | 654 StopTestServer(); |
| 648 } | 655 } |
| 649 | 656 |
| 650 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoReferrerLink) { | 657 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoReferrerLink) { |
| 651 std::string app_location = "web_view/apitest"; | 658 std::string app_location = "web_view/apitest"; |
| 652 StartTestServer(app_location); | 659 StartTestServer(app_location); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 // This test verifies that webview.contentWindow works inside an iframe | 774 // This test verifies that webview.contentWindow works inside an iframe |
| 768 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { | 775 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { |
| 769 LaunchApp("web_view/inside_iframe"); | 776 LaunchApp("web_view/inside_iframe"); |
| 770 } | 777 } |
| 771 | 778 |
| 772 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { | 779 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { |
| 773 RunTest("testCaptureVisibleRegion", "web_view/apitest"); | 780 RunTest("testCaptureVisibleRegion", "web_view/apitest"); |
| 774 } | 781 } |
| 775 | 782 |
| 776 } // namespace extensions | 783 } // namespace extensions |
| OLD | NEW |