зеркало из https://github.com/mozilla/gecko-dev.git
80f9d1564b
This patch reuses the infrastructure of browser_localStorage_e10s.js to make a localStorage consistency testing for fission. Since only two processes can be used for the same-origin pages when fission on, the test of browser_localStroage_e10s.js is separated into four subtests. Test case 1: one writer tab and one reader tab The writer tab issues a series of write operations, then verify the localStorage contents from the reader tab. Test case 2: one writer tab and one listener tab The writer tab issues a series of write operations, then verify the recorded storage events from the listener tab. Test case 3: one writeThenRead tab and one readThenWrite tab The writeThenRead first issues a series of write operations, then verify the recorded storage events and localStorage contents from the readThenWrite tab. After that readThenWrite tab issues a series of write operations, then verify the results from writeThenRead tab. Test case 4: one writer tab and one lateOpenSeesPreload tab The writer tab issues a series write of operations. Then open the lateOpenSeesPreload tab to make sure preloads exist. To load the same origin pages in different processes in fission world, page_localstorage_coop+coep.html is created. page_localstorage_coop+coep.html has the same content as page_localstorage.html, but it is loaded with its header file. Since the test infrastructure is reused, the following modifications are applied on browser_localStorage_e10s.js # Move page_localstorage_e10s.html to page_localstorage.html. Such that this test page can be reused both in fission and non-fission tests # Move help functions defined in page_localstorage_e10s.html to page_localstorage.js. Such that these help functions can be reused in page_localstorage_coop+coep.html # Rename help_localStorage_e10s.js to help_localStorage.js and move help functions defined in browser_localStorage_e10s.html to help_localStorage.js Such that these help functions can be reused in fission and non-fission tests browser_localStorage_fis.js is only for fission on testcase. Differential Revision: https://phabricator.services.mozilla.com/D110939 |
||
---|---|---|
.. | ||
browser | ||
mochitest | ||
reftest | ||
unit | ||
moz.build |