OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/extensions/extension_test_message_listener.h" | 6 #include "chrome/browser/extensions/extension_test_message_listener.h" |
7 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | 7 #include "chrome/browser/extensions/platform_app_browsertest_util.h" |
8 #include "chrome/browser/extensions/shell_window_registry.h" | 8 #include "chrome/browser/extensions/shell_window_registry.h" |
9 #include "chrome/browser/ui/extensions/shell_window.h" | 9 #include "chrome/browser/ui/extensions/shell_window.h" |
10 #include "chrome/test/base/interactive_test_utils.h" | 10 #include "chrome/test/base/interactive_test_utils.h" |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 // Flush any pending events to make sure we start with a clean slate. | 376 // Flush any pending events to make sure we start with a clean slate. |
377 content::RunAllPendingInMessageLoop(); | 377 content::RunAllPendingInMessageLoop(); |
378 | 378 |
379 ExtensionTestMessageListener start_of_line_listener("StartOfLine", false); | 379 ExtensionTestMessageListener start_of_line_listener("StartOfLine", false); |
380 SendStartOfLineKeyPressToPlatformApp(); | 380 SendStartOfLineKeyPressToPlatformApp(); |
381 // Wait for the guest to receive a 'copy' edit command. | 381 // Wait for the guest to receive a 'copy' edit command. |
382 ASSERT_TRUE(start_of_line_listener.WaitUntilSatisfied()); | 382 ASSERT_TRUE(start_of_line_listener.WaitUntilSatisfied()); |
383 } | 383 } |
384 | 384 |
385 // Disabled due to timeouts/crashing on several platforms. crbug.com/241912 | 385 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, NewWindow) { |
386 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_NewWindow) { | |
387 ASSERT_TRUE(StartTestServer()); // For serving guest pages. | 386 ASSERT_TRUE(StartTestServer()); // For serving guest pages. |
388 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/newwindow")) | 387 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/newwindow")) |
389 << message_; | 388 << message_; |
390 } | 389 } |
391 | 390 |
392 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, ExecuteCode) { | 391 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, ExecuteCode) { |
393 ASSERT_TRUE(StartTestServer()); // For serving guest pages. | 392 ASSERT_TRUE(StartTestServer()); // For serving guest pages. |
394 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/execute_code")) | 393 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/execute_code")) |
395 << message_; | 394 << message_; |
396 } | 395 } |
(...skipping 17 matching lines...) Expand all Loading... |
414 // Started flakily failing after a Blink roll: http://crbug.com/245332 | 413 // Started flakily failing after a Blink roll: http://crbug.com/245332 |
415 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_PopupPositioningMoved) { | 414 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_PopupPositioningMoved) { |
416 SetupTest( | 415 SetupTest( |
417 "web_view/popup_positioning_moved", | 416 "web_view/popup_positioning_moved", |
418 "files/extensions/platform_apps/web_view/popup_positioning_moved" | 417 "files/extensions/platform_apps/web_view/popup_positioning_moved" |
419 "/guest.html"); | 418 "/guest.html"); |
420 ASSERT_TRUE(guest_web_contents()); | 419 ASSERT_TRUE(guest_web_contents()); |
421 | 420 |
422 PopupTestHelper(gfx::Point(20, 0)); | 421 PopupTestHelper(gfx::Point(20, 0)); |
423 } | 422 } |
OLD | NEW |