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

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

Issue 959413003: Implement <webview>.addContentScript/removeContentScript API [1] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make the API work before the first navigation of guest. Created 5 years, 9 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
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/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/apps/app_browsertest_util.h" 9 #include "chrome/browser/apps/app_browsertest_util.h"
10 #include "chrome/browser/chrome_content_browser_client.h" 10 #include "chrome/browser/chrome_content_browser_client.h"
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 NO_TEST_SERVER); 1000 NO_TEST_SERVER);
1001 } 1001 }
1002 1002
1003 IN_PROC_BROWSER_TEST_F(WebViewTest, 1003 IN_PROC_BROWSER_TEST_F(WebViewTest,
1004 Shim_TestPartitionRemovalAfterNavigationFails) { 1004 Shim_TestPartitionRemovalAfterNavigationFails) {
1005 TestHelper("testPartitionRemovalAfterNavigationFails", 1005 TestHelper("testPartitionRemovalAfterNavigationFails",
1006 "web_view/shim", 1006 "web_view/shim",
1007 NO_TEST_SERVER); 1007 NO_TEST_SERVER);
1008 } 1008 }
1009 1009
1010 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAddContentScript) {
1011 TestHelper("testAddContentScript", "web_view/shim", NEEDS_TEST_SERVER);
1012 }
1013
1014 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAddMultiContentScripts) {
1015 TestHelper("testAddMultiContentScripts", "web_view/shim", NEEDS_TEST_SERVER);
1016 }
1017
1018 IN_PROC_BROWSER_TEST_F(
1019 WebViewTest,
1020 Shim_TestAddContentScriptToOneWebViewShouldNotInjectToTheOtherWebView) {
1021 TestHelper("testAddContentScriptToOneWebViewShouldNotInjectToTheOtherWebView",
1022 "web_view/shim", NEEDS_TEST_SERVER);
1023 }
1024
1025 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAddAndRemoveContentScripts) {
1026 TestHelper("testAddAndRemoveContentScripts", "web_view/shim",
1027 NEEDS_TEST_SERVER);
1028 }
1029
1010 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestExecuteScriptFail) { 1030 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestExecuteScriptFail) {
1011 #if defined(OS_WIN) 1031 #if defined(OS_WIN)
1012 // Flaky on XP bot http://crbug.com/266185 1032 // Flaky on XP bot http://crbug.com/266185
1013 if (base::win::GetVersion() <= base::win::VERSION_XP) 1033 if (base::win::GetVersion() <= base::win::VERSION_XP)
1014 return; 1034 return;
1015 #endif 1035 #endif
1016 1036
1017 TestHelper("testExecuteScriptFail", "web_view/shim", NEEDS_TEST_SERVER); 1037 TestHelper("testExecuteScriptFail", "web_view/shim", NEEDS_TEST_SERVER);
1018 } 1038 }
1019 1039
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after
2594 // http://crbug.com/403325 2614 // http://crbug.com/403325
2595 #define MAYBE_WebViewInBackgroundPage \ 2615 #define MAYBE_WebViewInBackgroundPage \
2596 DISABLED_WebViewInBackgroundPage 2616 DISABLED_WebViewInBackgroundPage
2597 #else 2617 #else
2598 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage 2618 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage
2599 #endif 2619 #endif
2600 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) { 2620 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) {
2601 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background")) 2621 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background"))
2602 << message_; 2622 << message_;
2603 } 2623 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_system_impl.h » ('j') | chrome/browser/extensions/extension_system_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698