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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 // Disabled until shell windows are implemented for non-GTK, non-Views toolkits. | 204 // Disabled until shell windows are implemented for non-GTK, non-Views toolkits. |
205 #if defined(TOOLKIT_GTK) || defined(TOOLKIT_VIEWS) | 205 #if defined(TOOLKIT_GTK) || defined(TOOLKIT_VIEWS) |
206 #define MAYBE_DisallowModalDialogs DisallowModalDialogs | 206 #define MAYBE_DisallowModalDialogs DisallowModalDialogs |
207 #else | 207 #else |
208 #define MAYBE_DisallowModalDialogs DISABLED_DisallowModalDialogs | 208 #define MAYBE_DisallowModalDialogs DISABLED_DisallowModalDialogs |
209 #endif | 209 #endif |
210 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowModalDialogs) { | 210 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowModalDialogs) { |
211 ASSERT_TRUE(RunPlatformAppTest("platform_apps/modal_dialogs")) << message_; | 211 ASSERT_TRUE(RunPlatformAppTest("platform_apps/modal_dialogs")) << message_; |
212 } | 212 } |
| 213 |
| 214 // Tests that localStorage and WebSQL are disabled for platform apps. |
| 215 // Disabled until shell windows are implemented for non-GTK, non-Views toolkits. |
| 216 #if defined(TOOLKIT_GTK) || defined(TOOLKIT_VIEWS) |
| 217 #define MAYBE_DisallowStorage DisallowStorage |
| 218 #else |
| 219 #define MAYBE_DisallowStorage DISABLED_DisallowStorage |
| 220 #endif |
| 221 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_DisallowStorage) { |
| 222 ASSERT_TRUE(RunPlatformAppTest("platform_apps/storage")) << message_; |
| 223 } |
OLD | NEW |