| 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 RunTest("testNavOnSrcAttributeChange", "web_view/apitest"); | 626 RunTest("testNavOnSrcAttributeChange", "web_view/apitest"); |
| 627 } | 627 } |
| 628 | 628 |
| 629 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindow) { | 629 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindow) { |
| 630 std::string app_location = "web_view/apitest"; | 630 std::string app_location = "web_view/apitest"; |
| 631 StartTestServer(app_location); | 631 StartTestServer(app_location); |
| 632 RunTest("testNewWindow", app_location); | 632 RunTest("testNewWindow", app_location); |
| 633 StopTestServer(); | 633 StopTestServer(); |
| 634 } | 634 } |
| 635 | 635 |
| 636 IN_PROC_BROWSER_TEST_F(WebViewAPITest, |
| 637 TestContentInitiatedNavigationToDataUrlBlocked) { |
| 638 RunTest("testContentInitiatedNavigationToDataUrlBlocked", "web_view/apitest"); |
| 639 } |
| 640 |
| 636 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoPreventDefault) { | 641 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoPreventDefault) { |
| 637 std::string app_location = "web_view/apitest"; | 642 std::string app_location = "web_view/apitest"; |
| 638 StartTestServer(app_location); | 643 StartTestServer(app_location); |
| 639 RunTest("testNewWindowNoPreventDefault", app_location); | 644 RunTest("testNewWindowNoPreventDefault", app_location); |
| 640 StopTestServer(); | 645 StopTestServer(); |
| 641 } | 646 } |
| 642 | 647 |
| 643 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoReferrerLink) { | 648 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestNewWindowNoReferrerLink) { |
| 644 std::string app_location = "web_view/apitest"; | 649 std::string app_location = "web_view/apitest"; |
| 645 StartTestServer(app_location); | 650 StartTestServer(app_location); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 // This test verifies that webview.contentWindow works inside an iframe | 765 // This test verifies that webview.contentWindow works inside an iframe |
| 761 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { | 766 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { |
| 762 LaunchApp("web_view/inside_iframe"); | 767 LaunchApp("web_view/inside_iframe"); |
| 763 } | 768 } |
| 764 | 769 |
| 765 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { | 770 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { |
| 766 RunTest("testCaptureVisibleRegion", "web_view/apitest"); | 771 RunTest("testCaptureVisibleRegion", "web_view/apitest"); |
| 767 } | 772 } |
| 768 | 773 |
| 769 } // namespace extensions | 774 } // namespace extensions |
| OLD | NEW |