Go to the source code of this file.
Functions | |
function | test () |
function test | ( | ) |
Checks that restoring the last browser window in session is actually working: 1.1) Open a new browser window 1.2) Add some tabs 1.3) Close that window 1.4) Opening another window –> State is restored
2.1) Open a new browser window 2.2) Add some tabs 2.3) Enter private browsing mode 2.4) Close the window while still in private browsing mode 2.5) Opening a new window –> State is not restored, because private browsing mode is still active 2.6) Leaving private browsing mode 2.7) Open another window –> State (that was before entering PBM) is restored
3.1) Open a new browser window 3.2) Add some tabs 3.4) Open some popups 3.5) Add another tab to one popup (so that it gets stored) and close it again 3.5) Close the browser window 3.6) Open another browser window –> State of the closed browser window, but not of the popup, is restored
4.1) Open a popup 4.2) Add another tab to the popup (so that it gets stored) and close it again 4.3) Open a window –> Nothing at all should be restored
5.1) Open two browser windows and close them again 5.2) undoCloseWindow() one 5.3) Open another browser window –> Nothing at all should be restored
Checks the new notifications are correctly posted and processed, that is for each successful -requested a -granted is received, but omitted if -requested was cnceled Said notifications are:
Helper: Will observe and handle the notifications for us
Helper: Sets prefs as the testsuite requires
Helper: Sets up this testsuite
Helper: Cleans up behind the testsuite
Helper: sets the prefs and a new window with our test tabs
Test 1: Normal in-session restore
Test 2: PrivateBrowsing in-session restore
Test 3: Open some popup windows to check those aren't restored, but the browser window is
Test 4: Open some popup window to check it isn't restored. Instead nothing at all should be restored
Test 5: Open some windows and do undoCloseWindow. This should prevent any restoring later in the test
Test 7: Check whether the right number of notifications was received during the tests
Test 8: Test if closing can be denied on Mac Futhermore prepares the testNotificationCount test (Test 6)
Definition at line 107 of file browser_354894.js.