• mberkowitz@google.com's avatar
    Added tests to verify the effects of various methods of navigation on History · 732b0e5f
    mberkowitz@google.com authored
    Also added helper functions _CheckHistory and _NavigateAndCheckHistory used by the tests below to verify that the correct changes are made to the history list. 
    
    Tests included: 
    --------------- 
    testNavigateBringPageToTop: 
    --- Verify that navigation brings the current page to the top of the history list. 
    
    testReloadBringPageToTop: 
    --- Verify that reloading a page brings that page to the top of the history list. 
    
    testBackForwardBringPageToTop: 
    --- Verify that back/forward brings the current page to the top of the history list. 
    
    testAppendTabAddPage: 
    --- Verify that opening a new tab adds that page to the history list. 
    
    testOpenWindowAddPage: 
    --- Verify that opening a new window to a page adds that page to the history list. 
    
    TEST=none 
    BUG=none 
    
    Continuation of CL 7544032.
    
    Review URL: http://codereview.chromium.org/7574028
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95569 0039d316-1c4b-4281-b951-d872f2087c98
    732b0e5f
history.py 12 KB