gecko-dev/dom/tests
Eden Chuang 80f9d1564b Bug 1641028 - Adding tests localstorage consistency between same origin different processes tab for fission. r=dom-storage-reviewers,asuth
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
2021-05-11 14:35:06 +00:00
..
browser Bug 1641028 - Adding tests localstorage consistency between same origin different processes tab for fission. r=dom-storage-reviewers,asuth 2021-05-11 14:35:06 +00:00
mochitest Bug 1709526 - Fix all the lint errors for .ini files in dom/ r=jmaher 2021-05-06 01:29:31 +00:00
reftest Bug 1614024 - Re-add fuzzy annotation on Android for bug453105. 2020-02-07 22:16:08 +00:00
unit Bug 1709526 - Fix all the lint errors for .ini files in dom/ r=jmaher 2021-05-06 01:29:31 +00:00
moz.build Bug 1694662 - Remove ajax/offline tests r=kershaw 2021-04-30 07:20:25 +00:00