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

Side by Side Diff: chrome/browser/apps/web_view_browsertest.cc

Issue 718203005: Implement declarative content script API for <webview> [js part]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce DeclarativeContentEvent. Created 6 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/path_service.h" 5 #include "base/path_service.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/apps/app_browsertest_util.h" 8 #include "chrome/browser/apps/app_browsertest_util.h"
9 #include "chrome/browser/chrome_content_browser_client.h" 9 #include "chrome/browser/chrome_content_browser_client.h"
10 #include "chrome/browser/prerender/prerender_link_manager.h" 10 #include "chrome/browser/prerender/prerender_link_manager.h"
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAPIMethodExistence) { 921 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAPIMethodExistence) {
922 TestHelper("testAPIMethodExistence", "web_view/shim", NO_TEST_SERVER); 922 TestHelper("testAPIMethodExistence", "web_view/shim", NO_TEST_SERVER);
923 } 923 }
924 924
925 // Tests the existence of WebRequest API event objects on the request 925 // Tests the existence of WebRequest API event objects on the request
926 // object, on the webview element, and hanging directly off webview. 926 // object, on the webview element, and hanging directly off webview.
927 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestWebRequestAPIExistence) { 927 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestWebRequestAPIExistence) {
928 TestHelper("testWebRequestAPIExistence", "web_view/shim", NO_TEST_SERVER); 928 TestHelper("testWebRequestAPIExistence", "web_view/shim", NO_TEST_SERVER);
929 } 929 }
930 930
931 // Tests the existence of DeclarativeContent API event objects on the request
932 // object, on the webview element, and hanging directly off webview.
933 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestDeclarativeContentAPIExistence) {
934 TestHelper("testDeclarativeContentAPIExistence",
935 "web_view/shim",
936 NO_TEST_SERVER);
937 }
938
931 // http://crbug.com/315920 939 // http://crbug.com/315920
932 #if defined(GOOGLE_CHROME_BUILD) && (defined(OS_WIN) || defined(OS_LINUX)) 940 #if defined(GOOGLE_CHROME_BUILD) && (defined(OS_WIN) || defined(OS_LINUX))
933 #define MAYBE_Shim_TestChromeExtensionURL DISABLED_Shim_TestChromeExtensionURL 941 #define MAYBE_Shim_TestChromeExtensionURL DISABLED_Shim_TestChromeExtensionURL
934 #else 942 #else
935 #define MAYBE_Shim_TestChromeExtensionURL Shim_TestChromeExtensionURL 943 #define MAYBE_Shim_TestChromeExtensionURL Shim_TestChromeExtensionURL
936 #endif 944 #endif
937 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_Shim_TestChromeExtensionURL) { 945 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_Shim_TestChromeExtensionURL) {
938 TestHelper("testChromeExtensionURL", "web_view/shim", NO_TEST_SERVER); 946 TestHelper("testChromeExtensionURL", "web_view/shim", NO_TEST_SERVER);
939 } 947 }
940 948
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after
2441 // http://crbug.com/403325 2449 // http://crbug.com/403325
2442 #define MAYBE_WebViewInBackgroundPage \ 2450 #define MAYBE_WebViewInBackgroundPage \
2443 DISABLED_WebViewInBackgroundPage 2451 DISABLED_WebViewInBackgroundPage
2444 #else 2452 #else
2445 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage 2453 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage
2446 #endif 2454 #endif
2447 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) { 2455 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) {
2448 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background")) 2456 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background"))
2449 << message_; 2457 << message_;
2450 } 2458 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698