OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/platform_thread.h" | 5 #include "base/platform_thread.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "chrome/common/url_constants.h" | 7 #include "chrome/common/url_constants.h" |
8 #include "chrome/test/automation/tab_proxy.h" | 8 #include "chrome/test/automation/tab_proxy.h" |
9 #include "chrome/test/automation/browser_proxy.h" | 9 #include "chrome/test/automation/browser_proxy.h" |
10 #include "chrome/test/ui/ui_test.h" | 10 #include "chrome/test/ui/ui_test.h" |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 SubmitForm("isubmit"); | 324 SubmitForm("isubmit"); |
325 EXPECT_EQ(L"text=&select=a", GetTabTitle()); | 325 EXPECT_EQ(L"text=&select=a", GetTabTitle()); |
326 EXPECT_EQ(frames, GetTabURL()); | 326 EXPECT_EQ(frames, GetTabURL()); |
327 } | 327 } |
328 | 328 |
329 | 329 |
330 #if defined(OS_WIN) | 330 #if defined(OS_WIN) |
331 // See http://crbug.com/61619 | 331 // See http://crbug.com/61619 |
332 #define MAYBE_FragmentBackForward FLAKY_FragmentBackForward | 332 #define MAYBE_FragmentBackForward FLAKY_FragmentBackForward |
333 #else | 333 #else |
334 #define MAYBE_FragmentBackForward FragmentBackForward | 334 // http://crbug.com/62156 |
| 335 #define MAYBE_FragmentBackForward DISABLED_FragmentBackForward |
335 #endif | 336 #endif |
336 | 337 |
337 // Test that back/forward entries are created for reference fragment | 338 // Test that back/forward entries are created for reference fragment |
338 // navigations. Bug 730379. | 339 // navigations. Bug 730379. |
339 TEST_F(SessionHistoryTest, MAYBE_FragmentBackForward) { | 340 TEST_F(SessionHistoryTest, MAYBE_FragmentBackForward) { |
340 ASSERT_TRUE(test_server_.Start()); | 341 ASSERT_TRUE(test_server_.Start()); |
341 | 342 |
342 // about:blank should be loaded first. | 343 // about:blank should be loaded first. |
343 ASSERT_FALSE(tab_->GoBack()); | 344 ASSERT_FALSE(tab_->GoBack()); |
344 EXPECT_EQ(L"", GetTabTitle()); | 345 EXPECT_EQ(L"", GetTabTitle()); |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 ASSERT_TRUE(tab_->GoBack()); | 566 ASSERT_TRUE(tab_->GoBack()); |
566 | 567 |
567 // Ensure history.length is properly truncated. | 568 // Ensure history.length is properly truncated. |
568 ASSERT_TRUE(tab_->NavigateToURL(test_server_.GetURL("files/title2.html"))); | 569 ASSERT_TRUE(tab_->NavigateToURL(test_server_.GetURL("files/title2.html"))); |
569 ASSERT_TRUE(tab_->ExecuteAndExtractInt( | 570 ASSERT_TRUE(tab_->ExecuteAndExtractInt( |
570 L"", L"domAutomationController.send(history.length)", &length)); | 571 L"", L"domAutomationController.send(history.length)", &length)); |
571 EXPECT_EQ(2, length); | 572 EXPECT_EQ(2, length); |
572 } | 573 } |
573 | 574 |
574 } // namespace | 575 } // namespace |
OLD | NEW |