Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: chrome/browser/extensions/platform_app_browsertest.cc

Issue 9717011: Expose the chrome.windows.* API to platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable WindowsApi on Aura.x Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module.cc ('k') | chrome/browser/ui/extensions/shell_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698