OLD | NEW |
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 "base/path_service.h" | 5 #include "base/path_service.h" |
6 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
7 #include "content/public/test/browser_test_utils.h" | 7 #include "content/public/test/browser_test_utils.h" |
8 #include "content/public/test/test_utils.h" | 8 #include "content/public/test/test_utils.h" |
9 #include "extensions/browser/app_window/app_window.h" | 9 #include "extensions/browser/app_window/app_window.h" |
10 #include "extensions/browser/app_window/app_window_registry.h" | 10 #include "extensions/browser/app_window/app_window_registry.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 }; | 59 }; |
60 | 60 |
61 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAllowTransparencyAttribute) { | 61 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAllowTransparencyAttribute) { |
62 RunTest("testAllowTransparencyAttribute", "web_view/apitest"); | 62 RunTest("testAllowTransparencyAttribute", "web_view/apitest"); |
63 } | 63 } |
64 | 64 |
65 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAPIMethodExistence) { | 65 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAPIMethodExistence) { |
66 RunTest("testAPIMethodExistence", "web_view/apitest"); | 66 RunTest("testAPIMethodExistence", "web_view/apitest"); |
67 } | 67 } |
68 | 68 |
| 69 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAssignSrcAfterCrash) { |
| 70 RunTest("testAssignSrcAfterCrash", "web_view/apitest"); |
| 71 } |
| 72 |
69 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeAfterNavigation) { | 73 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeAfterNavigation) { |
70 RunTest("testAutosizeAfterNavigation", "web_view/apitest"); | 74 RunTest("testAutosizeAfterNavigation", "web_view/apitest"); |
71 } | 75 } |
72 | 76 |
73 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeBeforeNavigation) { | 77 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeBeforeNavigation) { |
74 RunTest("testAutosizeBeforeNavigation", "web_view/apitest"); | 78 RunTest("testAutosizeBeforeNavigation", "web_view/apitest"); |
75 } | 79 } |
76 | 80 |
77 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeHeight) { | 81 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeHeight) { |
78 RunTest("testAutosizeHeight", "web_view/apitest"); | 82 RunTest("testAutosizeHeight", "web_view/apitest"); |
79 } | 83 } |
80 | 84 |
81 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeRemoveAttributes) { | 85 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeRemoveAttributes) { |
82 RunTest("testAutosizeRemoveAttributes", "web_view/apitest"); | 86 RunTest("testAutosizeRemoveAttributes", "web_view/apitest"); |
83 } | 87 } |
84 | 88 |
85 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeWithPartialAttributes) { | 89 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAutosizeWithPartialAttributes) { |
86 RunTest("testAutosizeWithPartialAttributes", "web_view/apitest"); | 90 RunTest("testAutosizeWithPartialAttributes", "web_view/apitest"); |
87 } | 91 } |
88 | 92 |
| 93 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCannotMutateEventName) { |
| 94 RunTest("testCannotMutateEventName", "web_view/apitest"); |
| 95 } |
| 96 |
| 97 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestContentLoadEvent) { |
| 98 RunTest("testContentLoadEvent", "web_view/apitest"); |
| 99 } |
| 100 |
| 101 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestDestroyOnEventListener) { |
| 102 RunTest("testDestroyOnEventListener", "web_view/apitest"); |
| 103 } |
| 104 |
| 105 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestDisplayNoneWebviewLoad) { |
| 106 RunTest("testDisplayNoneWebviewLoad", "web_view/apitest"); |
| 107 } |
| 108 |
| 109 // TODO(lfg) Re-enable this test once the fix for webview leaking |
| 110 // RenderProcessHost has landed. |
| 111 IN_PROC_BROWSER_TEST_F(WebViewAPITest, |
| 112 DISABLED_TestDisplayNoneWebviewRemoveChild) { |
| 113 RunTest("testDisplayNoneWebviewRemoveChild", "web_view/apitest"); |
| 114 } |
| 115 |
| 116 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScript) { |
| 117 RunTest("testExecuteScript", "web_view/apitest"); |
| 118 } |
| 119 |
| 120 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScriptFail) { |
| 121 RunTest("testExecuteScriptFail", "web_view/apitest"); |
| 122 } |
89 } // namespace extensions | 123 } // namespace extensions |
OLD | NEW |