| 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 "app/l10n_util.h" | |
| 6 #include "base/file_path.h" | 5 #include "base/file_path.h" |
| 7 #include "base/platform_thread.h" | 6 #include "base/platform_thread.h" |
| 8 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 9 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 10 #include "chrome/test/automation/tab_proxy.h" | 9 #include "chrome/test/automation/tab_proxy.h" |
| 11 #include "chrome/test/automation/browser_proxy.h" | 10 #include "chrome/test/automation/browser_proxy.h" |
| 12 #include "chrome/test/ui/ui_test.h" | 11 #include "chrome/test/ui/ui_test.h" |
| 13 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 14 #include "net/base/net_util.h" | 13 #include "net/base/net_util.h" |
| 15 #include "net/url_request/url_request_unittest.h" | 14 #include "net/url_request/url_request_unittest.h" |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 ASSERT_TRUE(tab_->GoBack()); | 543 ASSERT_TRUE(tab_->GoBack()); |
| 545 | 544 |
| 546 // Ensure history.length is properly truncated. | 545 // Ensure history.length is properly truncated. |
| 547 ASSERT_TRUE(tab_->NavigateToURL(server->TestServerPage("files/title2.html"))); | 546 ASSERT_TRUE(tab_->NavigateToURL(server->TestServerPage("files/title2.html"))); |
| 548 ASSERT_TRUE(tab_->ExecuteAndExtractInt( | 547 ASSERT_TRUE(tab_->ExecuteAndExtractInt( |
| 549 L"", L"domAutomationController.send(history.length)", &length)); | 548 L"", L"domAutomationController.send(history.length)", &length)); |
| 550 EXPECT_EQ(2, length); | 549 EXPECT_EQ(2, length); |
| 551 } | 550 } |
| 552 | 551 |
| 553 } // namespace | 552 } // namespace |
| OLD | NEW |