| 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 StopTestServer(); | 740 StopTestServer(); |
| 741 } | 741 } |
| 742 | 742 |
| 743 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) { | 743 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) { |
| 744 std::string app_location = "web_view/apitest"; | 744 std::string app_location = "web_view/apitest"; |
| 745 StartTestServer(app_location); | 745 StartTestServer(app_location); |
| 746 RunTest("testWebRequestAPIWithHeaders", app_location); | 746 RunTest("testWebRequestAPIWithHeaders", app_location); |
| 747 StopTestServer(); | 747 StopTestServer(); |
| 748 } | 748 } |
| 749 | 749 |
| 750 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadEventsSamePageNavigation) { | 750 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadEventsSameDocumentNavigation) { |
| 751 std::string app_location = "web_view/apitest"; | 751 std::string app_location = "web_view/apitest"; |
| 752 StartTestServer(app_location); | 752 StartTestServer(app_location); |
| 753 RunTest("testLoadEventsSamePageNavigation", app_location); | 753 RunTest("testLoadEventsSameDocumentNavigation", app_location); |
| 754 StopTestServer(); | 754 StopTestServer(); |
| 755 } | 755 } |
| 756 | 756 |
| 757 // Tests the existence of WebRequest API event objects on the request | 757 // Tests the existence of WebRequest API event objects on the request |
| 758 // object, on the webview element, and hanging directly off webview. | 758 // object, on the webview element, and hanging directly off webview. |
| 759 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { | 759 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { |
| 760 RunTest("testWebRequestAPIExistence", "web_view/apitest"); | 760 RunTest("testWebRequestAPIExistence", "web_view/apitest"); |
| 761 } | 761 } |
| 762 | 762 |
| 763 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { | 763 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { |
| 764 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); | 764 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); |
| 765 } | 765 } |
| 766 | 766 |
| 767 // This test verifies that webview.contentWindow works inside an iframe | 767 // This test verifies that webview.contentWindow works inside an iframe |
| 768 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { | 768 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { |
| 769 LaunchApp("web_view/inside_iframe"); | 769 LaunchApp("web_view/inside_iframe"); |
| 770 } | 770 } |
| 771 | 771 |
| 772 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { | 772 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { |
| 773 RunTest("testCaptureVisibleRegion", "web_view/apitest"); | 773 RunTest("testCaptureVisibleRegion", "web_view/apitest"); |
| 774 } | 774 } |
| 775 | 775 |
| 776 } // namespace extensions | 776 } // namespace extensions |
| OLD | NEW |