Closed
Bug 1344616
Opened 8 years ago
Closed 8 years ago
Support testing content scripts in xpcshell
Categories
(WebExtensions :: General, enhancement)
WebExtensions
General
Tracking
(firefox55 fixed)
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: kmag, Assigned: kmag)
References
Details
Attachments
(2 files)
No description provided.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8843831 [details]
Bug 1344616: Support running content script tests in xpcshell.
https://reviewboard.mozilla.org/r/117440/#review119306
::: testing/mochitest/BrowserTestUtils/ContentTask.jsm:17
(Diff revision 1)
>
> const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
> Cu.import("resource://gre/modules/Promise.jsm");
> Cu.import("resource://gre/modules/Services.jsm");
>
> -const FRAME_SCRIPT = "chrome://mochikit/content/tests/BrowserTestUtils/content-task.js";
> +const FRAME_SCRIPT = "resource://testing-common/content-task.js";
Lets keep the BrowserTestUtils changes in the same patch together.
Attachment #8843831 -
Flags: review?(mixedpuppy) → review+
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8843832 [details]
Bug 1344616: Migrate content script mochitests to xpcshell.
https://reviewboard.mozilla.org/r/117442/#review119360
::: testing/mochitest/BrowserTestUtils/moz.build:9
(Diff revision 2)
> # License, v. 2.0. If a copy of the MPL was not distributed with this
> # file, You can obtain one at http://mozilla.org/MPL/2.0/.
>
> TESTING_JS_MODULES += [
> 'BrowserTestUtils.jsm',
> + 'content/content-task.js',
dito here, move to the other patch
Attachment #8843832 -
Flags: review?(mixedpuppy) → review+
Assignee | ||
Comment 6•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8843832 [details]
Bug 1344616: Migrate content script mochitests to xpcshell.
https://reviewboard.mozilla.org/r/117442/#review119360
> dito here, move to the other patch
Good catch
Assignee | ||
Comment 7•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b476abd6506156db7bfe9589cb0de7390969b008
Bug 1344616: Support running content script tests in xpcshell. r=mixedpuppy
https://hg.mozilla.org/integration/mozilla-inbound/rev/295f8f82ced346ca72e836ac9bbc33d21c8e92fd
Bug 1344616: Migrate content script mochitests to xpcshell. r=mixedpuppy
Assignee | ||
Comment 8•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0aac487103cebe31b430b44d21b89720fc3989ef
Bug 1344616: Follow-up: Fix devtools test failure. r=me
Comment 9•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b476abd65061
https://hg.mozilla.org/mozilla-central/rev/295f8f82ced3
https://hg.mozilla.org/mozilla-central/rev/0aac487103ce
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•