OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/common/chrome_paths.h" | 6 #include "chrome/common/chrome_paths.h" |
7 #include "chrome/test/base/ui_test_utils.h" | 7 #include "chrome/test/base/ui_test_utils.h" |
8 #include "net/test/embedded_test_server/embedded_test_server.h" | 8 #include "net/test/embedded_test_server/embedded_test_server.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 ASSERT_TRUE(RunExtensionTest("stubs")) << message_; | 22 ASSERT_TRUE(RunExtensionTest("stubs")) << message_; |
23 | 23 |
24 // Navigate to a simple http:// page, which should get the content script | 24 // Navigate to a simple http:// page, which should get the content script |
25 // injected and run the rest of the test. | 25 // injected and run the rest of the test. |
26 GURL url(embedded_test_server()->GetURL("/extensions/test_file.html")); | 26 GURL url(embedded_test_server()->GetURL("/extensions/test_file.html")); |
27 ui_test_utils::NavigateToURL(browser(), url); | 27 ui_test_utils::NavigateToURL(browser(), url); |
28 | 28 |
29 ResultCatcher catcher; | 29 ResultCatcher catcher; |
30 ASSERT_TRUE(catcher.GetNextResult()); | 30 ASSERT_TRUE(catcher.GetNextResult()); |
31 } | 31 } |
| 32 |
| 33 // Tests that all API features that are available to a platform app actually |
| 34 // can be used in an app. For example, this test will fail if a developer adds |
| 35 // an API feature without providing a schema. http://crbug.com/369318 |
| 36 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, StubsApp) { |
| 37 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); |
| 38 |
| 39 ASSERT_TRUE(RunPlatformAppTest("stubs_app")) << message_; |
| 40 } |
OLD | NEW |