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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/stringprintf.h" | 6 #include "base/stringprintf.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
10 #include "chrome/browser/extensions/extension_host.h" | 10 #include "chrome/browser/extensions/extension_host.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 177 } |
178 | 178 |
179 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowModalDialogs) { | 179 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowModalDialogs) { |
180 ASSERT_TRUE(RunPlatformAppTest("platform_apps/modal_dialogs")) << message_; | 180 ASSERT_TRUE(RunPlatformAppTest("platform_apps/modal_dialogs")) << message_; |
181 } | 181 } |
182 | 182 |
183 // Tests that localStorage and WebSQL are disabled for platform apps. | 183 // Tests that localStorage and WebSQL are disabled for platform apps. |
184 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowStorage) { | 184 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, DisallowStorage) { |
185 ASSERT_TRUE(RunPlatformAppTest("platform_apps/storage")) << message_; | 185 ASSERT_TRUE(RunPlatformAppTest("platform_apps/storage")) << message_; |
186 } | 186 } |
| 187 |
| 188 // Tests that platform apps can use the chrome.windows.* API. |
| 189 #if defined(USE_AURA) |
| 190 // On Aura, this currently fails because the window width is returned as 256 |
| 191 // instead of 250. See http://crbug.com/119410. |
| 192 #define MAYBE_WindowsApi FAILS_WindowsApi |
| 193 #else |
| 194 #define MAYBE_WindowsApi WindowsApi |
| 195 #endif |
| 196 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_WindowsApi) { |
| 197 ASSERT_TRUE(RunPlatformAppTest("platform_apps/windows_api")) << message_; |
| 198 } |
OLD | NEW |