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

Side by Side Diff: chrome/browser/extensions/execute_script_apitest.cc

Issue 9456037: Adding run_at to chrome.tabs.executeScript/insertCss. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "net/base/mock_host_resolver.h" 6 #include "net/base/mock_host_resolver.h"
7 7
8 class ExecuteScriptApiTest : public ExtensionApiTest { 8 class ExecuteScriptApiTest : public ExtensionApiTest {
9 protected: 9 protected:
10 void SetupDelayedHostResolver() { 10 void SetupDelayedHostResolver() {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ASSERT_TRUE(RunExtensionSubtest("executescript/navigation_race", 65 ASSERT_TRUE(RunExtensionSubtest("executescript/navigation_race",
66 "javascript_url.html")) << message_; 66 "javascript_url.html")) << message_;
67 } 67 }
68 68
69 // If failing, mark disabled and update http://crbug.com/92105. 69 // If failing, mark disabled and update http://crbug.com/92105.
70 IN_PROC_BROWSER_TEST_F(ExecuteScriptApiTest, ExecuteScriptFrameAfterLoad) { 70 IN_PROC_BROWSER_TEST_F(ExecuteScriptApiTest, ExecuteScriptFrameAfterLoad) {
71 SetupDelayedHostResolver(); 71 SetupDelayedHostResolver();
72 ASSERT_TRUE(StartTestServer()); 72 ASSERT_TRUE(StartTestServer());
73 ASSERT_TRUE(RunExtensionTest("executescript/frame_after_load")) << message_; 73 ASSERT_TRUE(RunExtensionTest("executescript/frame_after_load")) << message_;
74 } 74 }
75
76 IN_PROC_BROWSER_TEST_F(ExecuteScriptApiTest, ExecuteScriptRunAt) {
77 SetupDelayedHostResolver();
78 ASSERT_TRUE(StartTestServer());
79 ASSERT_TRUE(RunExtensionTest("executescript/run_at")) << message_;
80 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/execute_code_in_tab_function.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698