Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/sessions/session_restore_browsertest.cc

Issue 1351363002: Fix the typo "visibility". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 <vector> 5 #include <vector>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/memory_pressure_listener.h" 9 #include "base/memory/memory_pressure_listener.h"
10 #include "base/process/launch.h" 10 #include "base/process/launch.h"
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 } 317 }
318 } 318 }
319 319
320 // Verify that restored tabs have correct disposition. Only one tab should 320 // Verify that restored tabs have correct disposition. Only one tab should
321 // have "visible" visibility state, the rest should not. 321 // have "visible" visibility state, the rest should not.
322 // (http://crbug.com/155365 http://crbug.com/118269) 322 // (http://crbug.com/155365 http://crbug.com/118269)
323 IN_PROC_BROWSER_TEST_F(SessionRestoreTest, 323 IN_PROC_BROWSER_TEST_F(SessionRestoreTest,
324 RestoredTabsHaveCorrectVisibilityState) { 324 RestoredTabsHaveCorrectVisibilityState) {
325 // Create tabs. 325 // Create tabs.
326 GURL test_page(ui_test_utils::GetTestUrl(base::FilePath(), 326 GURL test_page(ui_test_utils::GetTestUrl(base::FilePath(),
327 base::FilePath(FILE_PATH_LITERAL("tab-restore-visibilty.html")))); 327 base::FilePath(FILE_PATH_LITERAL("tab-restore-visibility.html"))));
328 ui_test_utils::NavigateToURLWithDisposition( 328 ui_test_utils::NavigateToURLWithDisposition(
329 browser(), test_page, NEW_FOREGROUND_TAB, 329 browser(), test_page, NEW_FOREGROUND_TAB,
330 ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); 330 ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
331 ui_test_utils::NavigateToURLWithDisposition( 331 ui_test_utils::NavigateToURLWithDisposition(
332 browser(), test_page, NEW_BACKGROUND_TAB, 332 browser(), test_page, NEW_BACKGROUND_TAB,
333 ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); 333 ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
334 334
335 // Restart and session restore the tabs. 335 // Restart and session restore the tabs.
336 content::DOMMessageQueue message_queue; 336 content::DOMMessageQueue message_queue;
337 Browser* restored = QuitBrowserAndRestore(browser(), 3); 337 Browser* restored = QuitBrowserAndRestore(browser(), 3);
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 // automatically at the start of the test. 1515 // automatically at the start of the test.
1516 for (size_t i = 1; i < web_contents().size(); i++) { 1516 for (size_t i = 1; i < web_contents().size(); i++) {
1517 GURL expected_url = GURL(kUrls[activation_order[kExpectedNumTabs - i]]); 1517 GURL expected_url = GURL(kUrls[activation_order[kExpectedNumTabs - i]]);
1518 ASSERT_EQ(expected_url, web_contents()[i]->GetLastCommittedURL()); 1518 ASSERT_EQ(expected_url, web_contents()[i]->GetLastCommittedURL());
1519 if (i > 0) { 1519 if (i > 0) {
1520 ASSERT_GT(web_contents()[i - 1]->GetLastActiveTime(), 1520 ASSERT_GT(web_contents()[i - 1]->GetLastActiveTime(),
1521 web_contents()[i]->GetLastActiveTime()); 1521 web_contents()[i]->GetLastActiveTime());
1522 } 1522 }
1523 } 1523 }
1524 } 1524 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/chromeos/internet_detail.js ('k') | chrome/browser/ui/browser_tabrestore_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698