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/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "app/l10n_util.h" | |
9 #include "app/message_box_flags.h" | 8 #include "app/message_box_flags.h" |
10 #include "base/command_line.h" | 9 #include "base/command_line.h" |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
12 #include "base/file_path.h" | 11 #include "base/file_path.h" |
13 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
14 #include "base/keyboard_codes.h" | 13 #include "base/keyboard_codes.h" |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
17 #include "build/build_config.h" | 16 #include "build/build_config.h" |
18 #include "chrome/app/chrome_dll_resource.h" | 17 #include "chrome/app/chrome_dll_resource.h" |
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1489 | 1488 |
1490 // Allow some time for the popup to show up and close. | 1489 // Allow some time for the popup to show up and close. |
1491 PlatformThread::Sleep(sleep_timeout_ms()); | 1490 PlatformThread::Sleep(sleep_timeout_ms()); |
1492 | 1491 |
1493 std::wstring expected(L"string"); | 1492 std::wstring expected(L"string"); |
1494 std::wstring jscript = CreateJSString(L"\"" + expected + L"\""); | 1493 std::wstring jscript = CreateJSString(L"\"" + expected + L"\""); |
1495 std::wstring actual; | 1494 std::wstring actual; |
1496 ASSERT_TRUE(tab->ExecuteAndExtractString(L"", jscript, &actual)); | 1495 ASSERT_TRUE(tab->ExecuteAndExtractString(L"", jscript, &actual)); |
1497 ASSERT_EQ(expected, actual); | 1496 ASSERT_EQ(expected, actual); |
1498 } | 1497 } |
OLD | NEW |