Closed
Bug 1444758
Opened 8 years ago
Closed 8 years ago
Convert more mochitests to xpcshell
Categories
(WebExtensions :: General, defect)
WebExtensions
General
Tracking
(firefox61 fixed)
RESOLVED
FIXED
mozilla61
| Tracking | Status | |
|---|---|---|
| firefox61 | --- | fixed |
People
(Reporter: kmag, Assigned: kmag)
References
Details
Attachments
(24 files)
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
|
59 bytes,
text/x-review-board-request
|
aswan
:
review+
|
Details |
Our mochitest run time, especially when running in multiple configurations, makes development more difficult than it needs to be. Many of our plain mochitests can easily be converted to xpcshell tests, which can run in parallel, and using fewer resources.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 41•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957972 [details]
Bug 1444758: Part 1: Add console message matching helper to AddonTestUtils.
https://reviewboard.mozilla.org/r/226884/#review232934
::: toolkit/mozapps/extensions/internal/AddonTestUtils.jsm:1291
(Diff revision 2)
> + *
> + * @param {Array<object>} messages
> + * The array of console messages to match.
> + * @param {object} options
> + * Options describing how to perform the match.
> + * @param {Array<ConsoleMessagePattern>} [expected = []]
Shouldn't this be `options.expected` (same with forbidden and forbidUnexpected)
Attachment #8957972 -
Flags: review?(aswan) → review+
| Assignee | ||
Comment 42•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8957972 [details]
Bug 1444758: Part 1: Add console message matching helper to AddonTestUtils.
https://reviewboard.mozilla.org/r/226884/#review232934
> Shouldn't this be `options.expected` (same with forbidden and forbidUnexpected)
Yes. Weird that ESLint didn't complain...
| Assignee | ||
Comment 43•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8957972 [details]
Bug 1444758: Part 1: Add console message matching helper to AddonTestUtils.
https://reviewboard.mozilla.org/r/226884/#review232934
> Shouldn't this be `options.expected` (same with forbidden and forbidUnexpected)
Yes. Weird that ESLint didn't complain...
Comment 44•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957973 [details]
Bug 1444758: Part 2: Migrate test_ext_sandbox_var to xpcshell.
https://reviewboard.mozilla.org/r/226886/#review232940
Attachment #8957973 -
Flags: review?(aswan) → review+
Comment 45•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957974 [details]
Bug 1444758: Part 3 - Migrate test_ext_schema to xpcshell.
https://reviewboard.mozilla.org/r/226888/#review232944
Attachment #8957974 -
Flags: review?(aswan) → review+
Comment 46•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957975 [details]
Bug 1444758: Part 4 - Migrate test_ext_background_api_injection to xpcshell.
https://reviewboard.mozilla.org/r/226890/#review232946
Attachment #8957975 -
Flags: review?(aswan) → review+
Comment 47•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957976 [details]
Bug 1444758: Part 5 - Migrate test_ext_contentscript_api_injection to xpcshell.
https://reviewboard.mozilla.org/r/226892/#review232950
Attachment #8957976 -
Flags: review?(aswan) → review+
Comment 48•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957977 [details]
Bug 1444758: Part 6 - Migrate test_ext_content_security_policy to xpcshell.
https://reviewboard.mozilla.org/r/226894/#review232954
Attachment #8957977 -
Flags: review?(aswan) → review+
Comment 49•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957978 [details]
Bug 1444758: Part 7 - Migrate test_ext_contentscript_async_loading to xpcshell.
https://reviewboard.mozilla.org/r/226896/#review232958
Attachment #8957978 -
Flags: review?(aswan) → review+
Comment 50•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957979 [details]
Bug 1444758: Part 8 - Migrate test_ext_contentscript_context to xpcshell.
https://reviewboard.mozilla.org/r/226898/#review232966
Attachment #8957979 -
Flags: review?(aswan) → review+
Comment 51•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957980 [details]
Bug 1444758: Part 9 - Migrate test_ext_contentscript_css to xpcshell.
https://reviewboard.mozilla.org/r/226900/#review232968
Attachment #8957980 -
Flags: review?(aswan) → review+
Comment 52•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957981 [details]
Bug 1444758: Part 10 - Migrate test_ext_contentscript_create_iframe to xpcshell.
https://reviewboard.mozilla.org/r/226902/#review232970
Attachment #8957981 -
Flags: review?(aswan) → review+
Comment 53•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957982 [details]
Bug 1444758: Part 11 - Migrate test_ext_contentscript_exporthelpers to xpcshell.
https://reviewboard.mozilla.org/r/226904/#review232972
Attachment #8957982 -
Flags: review?(aswan) → review+
Comment 54•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957983 [details]
Bug 1444758: Part 12a - Migrate test_ext_contentscript_teardown to xpcshell.
https://reviewboard.mozilla.org/r/226906/#review232976
Attachment #8957983 -
Flags: review?(aswan) → review+
Comment 55•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957984 [details]
Bug 1444758: Part 12b - Migrate test_ext_background_teardown to xpcshell.
https://reviewboard.mozilla.org/r/226908/#review232982
Attachment #8957984 -
Flags: review?(aswan) → review+
Comment 56•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957985 [details]
Bug 1444758: Part 12c - Migrate test_ext_tab_teardown to xpcshell.
https://reviewboard.mozilla.org/r/226910/#review232984
Was there some reason this used to test browser.tabs.create and window.open separately?
Attachment #8957985 -
Flags: review?(aswan) → review+
| Assignee | ||
Comment 57•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8957985 [details]
Bug 1444758: Part 12c - Migrate test_ext_tab_teardown to xpcshell.
https://reviewboard.mozilla.org/r/226910/#review232984
Possibly, but I think it was massive overkill. They both open tab pages. The lifecycle is the same.
Comment 58•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957986 [details]
Bug 1444758: Part 13 - Migrate test_ext_xhr_capabilities to xpcshell.
https://reviewboard.mozilla.org/r/226912/#review233016
Attachment #8957986 -
Flags: review?(aswan) → review+
Comment 59•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957997 [details]
Bug 1444758: Part 15 - Migrate test_ext_geturl to xpcshell.
https://reviewboard.mozilla.org/r/226924/#review233042
Attachment #8957997 -
Flags: review?(aswan) → review+
Comment 60•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957987 [details]
Bug 1444758: Part 14 - Migrate test_ext_unload_frame to xpcshell.
https://reviewboard.mozilla.org/r/226914/#review233044
Attachment #8957987 -
Flags: review?(aswan) → review+
Comment 61•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957998 [details]
Bug 1444758: Part 16 - Migrate test_ext_storage_content to xpcshell.
https://reviewboard.mozilla.org/r/226926/#review233046
Attachment #8957998 -
Flags: review?(aswan) → review+
Comment 62•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8957999 [details]
Bug 1444758: Part 17 - Migrate test_ext_storage_tab to xpcshell.
https://reviewboard.mozilla.org/r/226928/#review233048
Attachment #8957999 -
Flags: review?(aswan) → review+
Comment 63•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958000 [details]
Bug 1444758: Part 18 - Migrate test_ext_runtime_id to xpcshell.
https://reviewboard.mozilla.org/r/226930/#review233050
Attachment #8958000 -
Flags: review?(aswan) → review+
Comment 64•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958001 [details]
Bug 1444758: Part 19 - Migrate test_ext_permissions_xhr to xpcshell.
https://reviewboard.mozilla.org/r/226932/#review233054
Attachment #8958001 -
Flags: review?(aswan) → review+
Comment 65•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958001 [details]
Bug 1444758: Part 19 - Migrate test_ext_permissions_xhr to xpcshell.
https://reviewboard.mozilla.org/r/226932/#review233054
Comment 66•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958006 [details]
Bug 1444758: Part 20 - Migrate test_ext_background_generated_url to xpcshell.
https://reviewboard.mozilla.org/r/226934/#review233056
I think I would also r+ a simple removal of this test...
Attachment #8958006 -
Flags: review?(aswan) → review+
Comment 67•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958008 [details]
Bug 1444758: Part 21 - Migrate test_ext_eventpage_warning to xpcshell.
https://reviewboard.mozilla.org/r/226936/#review233058
Attachment #8958008 -
Flags: review?(aswan) → review+
Comment 68•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8958010 [details]
Bug 1444758: Follow-up: Fix some flakiness when tests are run in parallel.
https://reviewboard.mozilla.org/r/226942/#review233060
Attachment #8958010 -
Flags: review?(aswan) → review+
| Assignee | ||
Comment 69•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6390ec7df035a339d043cdd6079b416dacec19d7
Bug 1444758: Part 1: Add console message matching helper to AddonTestUtils. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/4c5ec164a4150bfd9e1cfe1488dd3c83ac62f37d
Bug 1444758: Part 2: Migrate test_ext_sandbox_var to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/aad0eb5b49f8f72f090d8050f214c083e2e60489
Bug 1444758: Part 3 - Migrate test_ext_schema to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/423b15cb3b3cc3896f3ecd8c36a5f85a95529391
Bug 1444758: Part 4 - Migrate test_ext_background_api_injection to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/d025331387095a92eccc0d809a9211a8f1281408
Bug 1444758: Part 5 - Migrate test_ext_contentscript_api_injection to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/79288785b4fa5c96d9f1a81e5ead8acf7bc3c492
Bug 1444758: Part 6 - Migrate test_ext_content_security_policy to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/8196ea8ba479d5a101db2e3931e43c89b7e8689e
Bug 1444758: Part 7 - Migrate test_ext_contentscript_async_loading to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/f927c4d64edbb2332a6b29d7e1249bd157aedb96
Bug 1444758: Part 8 - Migrate test_ext_contentscript_context to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/7698d507df9135738e8b944dbed57e383d7f35ed
Bug 1444758: Part 9 - Migrate test_ext_contentscript_css to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/b8820c9d6ee39ccd686f3eb4b70f3dcbe723d941
Bug 1444758: Part 10 - Migrate test_ext_contentscript_create_iframe to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/bb607c6c60a7467ebce866c6ae71a02a7ca68e35
Bug 1444758: Part 11 - Migrate test_ext_contentscript_exporthelpers to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/2da658cde8869439e839754481d9c5248c011940
Bug 1444758: Part 12a - Migrate test_ext_contentscript_teardown to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/97d0c1047cfab1d5ed1e000af5f4e7492eb41efa
Bug 1444758: Part 12b - Migrate test_ext_background_teardown to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/58e9f616332dc96835598f8aca025ab3973da47d
Bug 1444758: Part 12c - Migrate test_ext_tab_teardown to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/108ff2d828bb3c01d3a5d4e26e3dde56430e8201
Bug 1444758: Part 13 - Migrate test_ext_xhr_capabilities to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/546f73d3fc888160057bf544b072de3888bdb707
Bug 1444758: Part 14 - Migrate test_ext_unload_frame to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/d7a34b3beb82b55587bf7335063574a072bc4d9d
Bug 1444758: Part 15 - Migrate test_ext_geturl to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/bd302ace4a373d2bb27a819613a3c07fd6311e29
Bug 1444758: Part 16 - Migrate test_ext_storage_content to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/96e9a1bed72a109c8b6488a734e6217b14985db2
Bug 1444758: Part 17 - Migrate test_ext_storage_tab to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/db61caf2e434e819e3fac9ddf61d1d7944c1dd3c
Bug 1444758: Part 18 - Migrate test_ext_runtime_id to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/ca5ac83d40820d9d178cbfba14c4b6f04189bcec
Bug 1444758: Part 19 - Migrate test_ext_permissions_xhr to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/ea79fd9c2fe39af8ea1ba2a59913676563f0fe0b
Bug 1444758: Part 20 - Remove test_ext_background_generated_url. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/47b789279e13d4dbc3fca85f8e4d418ef23670d7
Bug 1444758: Part 21 - Migrate test_ext_eventpage_warning to xpcshell. r=aswan
https://hg.mozilla.org/integration/mozilla-inbound/rev/2cbcfa64364bdf2f74e552f0d3e0cfafd7756ae6
Bug 1444758: Follow-up: Fix some flakiness when tests are run in parallel. r=aswan
| Assignee | ||
Comment 70•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/72fd699e5741cdaff9f4f688bf488dcef06260cc
Bug 1444758: Follow-up: Disable test_ext_unload_frame for too frequent intermittent failures. r=bustage DONTBUILD
Comment 71•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6390ec7df035
https://hg.mozilla.org/mozilla-central/rev/4c5ec164a415
https://hg.mozilla.org/mozilla-central/rev/aad0eb5b49f8
https://hg.mozilla.org/mozilla-central/rev/423b15cb3b3c
https://hg.mozilla.org/mozilla-central/rev/d02533138709
https://hg.mozilla.org/mozilla-central/rev/79288785b4fa
https://hg.mozilla.org/mozilla-central/rev/8196ea8ba479
https://hg.mozilla.org/mozilla-central/rev/f927c4d64edb
https://hg.mozilla.org/mozilla-central/rev/7698d507df91
https://hg.mozilla.org/mozilla-central/rev/b8820c9d6ee3
https://hg.mozilla.org/mozilla-central/rev/bb607c6c60a7
https://hg.mozilla.org/mozilla-central/rev/2da658cde886
https://hg.mozilla.org/mozilla-central/rev/97d0c1047cfa
https://hg.mozilla.org/mozilla-central/rev/58e9f616332d
https://hg.mozilla.org/mozilla-central/rev/108ff2d828bb
https://hg.mozilla.org/mozilla-central/rev/546f73d3fc88
https://hg.mozilla.org/mozilla-central/rev/d7a34b3beb82
https://hg.mozilla.org/mozilla-central/rev/bd302ace4a37
https://hg.mozilla.org/mozilla-central/rev/96e9a1bed72a
https://hg.mozilla.org/mozilla-central/rev/db61caf2e434
https://hg.mozilla.org/mozilla-central/rev/ca5ac83d4082
https://hg.mozilla.org/mozilla-central/rev/ea79fd9c2fe3
https://hg.mozilla.org/mozilla-central/rev/47b789279e13
https://hg.mozilla.org/mozilla-central/rev/2cbcfa64364b
https://hg.mozilla.org/mozilla-central/rev/72fd699e5741
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Updated•8 years ago
|
Flags: qe-verify-
Comment 72•8 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8957985 [details]
Bug 1444758: Part 12c - Migrate test_ext_tab_teardown to xpcshell.
https://reviewboard.mozilla.org/r/226910/#review232984
FYI:
The browser.tabs.create test was a sanity check,
the window.open test was a time-sensitive regression test for https://bugzil.la/1288901
The window.open case should have behaved identically to the reference test (sanity check), but it did not until that bug was fixed. In this refactor, the test coverage by the regression test is lost. This means that if there is the context destruction logic ever changes, that bug 1288901 might be re-introduced again.
Updated•8 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•