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

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

Issue 2646423003: Fix regression of webview loadstart events firing for same page navigations.
Patch Set: Created 3 years, 11 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 RunTest("testWebRequestAPI", "web_view/apitest"); 714 RunTest("testWebRequestAPI", "web_view/apitest");
715 StopTestServer(); 715 StopTestServer();
716 } 716 }
717 717
718 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) { 718 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIWithHeaders) {
719 StartTestServer(); 719 StartTestServer();
720 RunTest("testWebRequestAPIWithHeaders", "web_view/apitest"); 720 RunTest("testWebRequestAPIWithHeaders", "web_view/apitest");
721 StopTestServer(); 721 StopTestServer();
722 } 722 }
723 723
724 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadEventsSamePageNavigation) {
725 std::string app_location = "web_view/apitest";
726 StartTestServer(app_location);
727 RunTest("testLoadEventsSamePageNavigation", app_location);
728 StopTestServer();
729 }
730
724 // Tests the existence of WebRequest API event objects on the request 731 // Tests the existence of WebRequest API event objects on the request
725 // object, on the webview element, and hanging directly off webview. 732 // object, on the webview element, and hanging directly off webview.
726 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { 733 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) {
727 RunTest("testWebRequestAPIExistence", "web_view/apitest"); 734 RunTest("testWebRequestAPIExistence", "web_view/apitest");
728 } 735 }
729 736
730 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { 737 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) {
731 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); 738 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest");
732 } 739 }
733 740
734 // This test verifies that webview.contentWindow works inside an iframe 741 // This test verifies that webview.contentWindow works inside an iframe
735 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { 742 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) {
736 LaunchApp("web_view/inside_iframe"); 743 LaunchApp("web_view/inside_iframe");
737 } 744 }
738 745
739 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { 746 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) {
740 RunTest("testCaptureVisibleRegion", "web_view/apitest"); 747 RunTest("testCaptureVisibleRegion", "web_view/apitest");
741 } 748 }
742 749
743 } // namespace extensions 750 } // 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