OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |