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 // NPAPI interactive UI tests. | 5 // NPAPI interactive UI tests. |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/test/test_timeouts.h" | 8 #include "base/test/test_timeouts.h" |
9 #include "chrome/test/automation/automation_proxy.h" | 9 #include "chrome/test/automation/automation_proxy.h" |
10 #include "chrome/test/automation/window_proxy.h" | 10 #include "chrome/test/automation/window_proxy.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Wait for the alert dialog and then close it. | 73 // Wait for the alert dialog and then close it. |
74 ASSERT_TRUE(automation()->WaitForAppModalDialog()); | 74 ASSERT_TRUE(automation()->WaitForAppModalDialog()); |
75 scoped_refptr<WindowProxy> window(automation()->GetActiveWindow()); | 75 scoped_refptr<WindowProxy> window(automation()->GetActiveWindow()); |
76 ASSERT_TRUE(window.get()); | 76 ASSERT_TRUE(window.get()); |
77 ASSERT_TRUE(window->SimulateOSKeyPress(ui::VKEY_ESCAPE, 0)); | 77 ASSERT_TRUE(window->SimulateOSKeyPress(ui::VKEY_ESCAPE, 0)); |
78 | 78 |
79 WaitForFinish("self_delete_plugin_invoke_alert", "1", url, | 79 WaitForFinish("self_delete_plugin_invoke_alert", "1", url, |
80 kTestCompleteCookie, kTestCompleteSuccess, | 80 kTestCompleteCookie, kTestCompleteSuccess, |
81 TestTimeouts::action_max_timeout_ms()); | 81 TestTimeouts::action_max_timeout_ms()); |
82 } | 82 } |
OLD | NEW |