Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_apitest.cc

Issue 2649213002: Fix regression of webview loadstart events firing for same page navigations. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | extensions/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 StopTestServer(); 731 StopTestServer();
732 } 732 }
733 733
734 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) { 734 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) {
735 std::string app_location = "web_view/apitest"; 735 std::string app_location = "web_view/apitest";
736 StartTestServer(app_location); 736 StartTestServer(app_location);
737 RunTest("testWebRequestAPIWithHeaders", app_location); 737 RunTest("testWebRequestAPIWithHeaders", app_location);
738 StopTestServer(); 738 StopTestServer();
739 } 739 }
740 740
741 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadEventsSamePageNavigation) {
742 std::string app_location = "web_view/apitest";
743 StartTestServer(app_location);
744 RunTest("testLoadEventsSamePageNavigation", app_location);
745 StopTestServer();
746 }
747
741 // Tests the existence of WebRequest API event objects on the request 748 // Tests the existence of WebRequest API event objects on the request
742 // object, on the webview element, and hanging directly off webview. 749 // object, on the webview element, and hanging directly off webview.
743 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { 750 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) {
744 RunTest("testWebRequestAPIExistence", "web_view/apitest"); 751 RunTest("testWebRequestAPIExistence", "web_view/apitest");
745 } 752 }
746 753
747 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { 754 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) {
748 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); 755 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest");
749 } 756 }
750 757
751 // This test verifies that webview.contentWindow works inside an iframe 758 // This test verifies that webview.contentWindow works inside an iframe
752 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { 759 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) {
753 LaunchApp("web_view/inside_iframe"); 760 LaunchApp("web_view/inside_iframe");
754 } 761 }
755 762
756 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { 763 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) {
757 RunTest("testCaptureVisibleRegion", "web_view/apitest"); 764 RunTest("testCaptureVisibleRegion", "web_view/apitest");
758 } 765 }
759 766
760 } // namespace extensions 767 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698