Changes

Jump to: navigation, search

Project Fission/Enabling Tests with Fission

1,245 bytes added, 14:34, 10 July 2020
Adding common xorigin test fix tips
* currently supported for mochitest-plain jobs
* will enable [https://bugzilla.mozilla.org/show_bug.cgi?id=1647720 Bug 1647720] request for enabling on tier2  ===Tips for debugging broken xorigin mochitests=== ===== URL mismatch =====When cross-origin mode is enabled, some test state is passed between the parent frame and the cross-origin test iframe via query string parameters in the test URL. This means some tests cases validating against a URL value may fail when unexpected query parameters are present, e.g. location.href.split("?")[0] ===== Missing method in xOriginTestRunner =====For example, "TypeError: parentRunner.expectChildProcessCrash is not a function at SimpleTest.expectChildProcessCrash". Since tests are running in a cross-origin iframe, the parent frame's TestRunner instance (i.e. parentRunner) cannot be accessed directly. A method dispatcher is used via postMessage in place of direct method accesses. This error suggests that a method does not exist in the dispatcher. To add a method, first add it as a function to start[https://searchfox.org/mozilla-central/source/testing/mochitest/tests/SimpleTest/SimpleTest.js#67 xOriginRunner in SimpleTest.js]and also add it to [https://searchfox.org/mozilla-central/source/testing/mochitest/tests/SimpleTest/TestRunner.js#941 xOriginDispatchMap in TestRunner.js]
==General Tips==
6
edits

Navigation menu