| OLD | NEW | 
|     1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |     1 // Copyright (c) 2006-2008 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 <string> |     5 #include <string> | 
|     6  |     6  | 
 |     7 #include "app/message_box_flags.h" | 
|     7 #include "base/command_line.h" |     8 #include "base/command_line.h" | 
|     8 #include "base/file_path.h" |     9 #include "base/file_path.h" | 
|     9 #include "base/string_util.h" |    10 #include "base/string_util.h" | 
|    10 #include "build/build_config.h" |    11 #include "build/build_config.h" | 
|    11 #include "chrome/app/chrome_dll_resource.h" |    12 #include "chrome/app/chrome_dll_resource.h" | 
|    12 #include "chrome/browser/view_ids.h" |    13 #include "chrome/browser/view_ids.h" | 
|    13 #include "chrome/common/chrome_constants.h" |    14 #include "chrome/common/chrome_constants.h" | 
|    14 #include "chrome/common/chrome_switches.h" |    15 #include "chrome/common/chrome_switches.h" | 
|    15 #include "chrome/common/json_value_serializer.h" |    16 #include "chrome/common/json_value_serializer.h" | 
|    16 #include "chrome/common/message_box_flags.h" |  | 
|    17 #include "chrome/test/automation/constrained_window_proxy.h" |    17 #include "chrome/test/automation/constrained_window_proxy.h" | 
|    18 #include "chrome/test/automation/browser_proxy.h" |    18 #include "chrome/test/automation/browser_proxy.h" | 
|    19 #include "chrome/test/automation/tab_proxy.h" |    19 #include "chrome/test/automation/tab_proxy.h" | 
|    20 #include "chrome/test/automation/window_proxy.h" |    20 #include "chrome/test/automation/window_proxy.h" | 
|    21 #include "chrome/test/ui/ui_test.h" |    21 #include "chrome/test/ui/ui_test.h" | 
|    22 #include "chrome/views/event.h" |    22 #include "chrome/views/event.h" | 
|    23 #include "net/base/net_util.h" |    23 #include "net/base/net_util.h" | 
|    24  |    24  | 
|    25 class AutomationProxyTest : public UITest { |    25 class AutomationProxyTest : public UITest { | 
|    26  protected: |    26  protected: | 
| (...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1148  |  1148  | 
|  1149   // Allow some time for the popup to show up and close. |  1149   // Allow some time for the popup to show up and close. | 
|  1150   PlatformThread::Sleep(2000); |  1150   PlatformThread::Sleep(2000); | 
|  1151  |  1151  | 
|  1152   std::wstring expected(L"string"); |  1152   std::wstring expected(L"string"); | 
|  1153   std::wstring jscript = CreateJSString(L"\"" + expected + L"\""); |  1153   std::wstring jscript = CreateJSString(L"\"" + expected + L"\""); | 
|  1154   std::wstring actual; |  1154   std::wstring actual; | 
|  1155   ASSERT_TRUE(tab->ExecuteAndExtractString(L"", jscript, &actual)); |  1155   ASSERT_TRUE(tab->ExecuteAndExtractString(L"", jscript, &actual)); | 
|  1156   ASSERT_EQ(expected, actual); |  1156   ASSERT_EQ(expected, actual); | 
|  1157 } |  1157 } | 
| OLD | NEW |