Commit Graph
150 Commits
Author SHA1 Message Date
Julian Descottes c336e62d65 Bug 1487078 - Move extensions helper xpcshell test to aboutdebugging-new;r=daisuke
Depends on D4646

Differential Revision: https://phabricator.services.mozilla.com/D4647
2018-08-31 06:55:53 +00:00
Julian Descottes 550bd51089 Bug 1487078 - Copy addon helper to aboutdebugging-new;r=daisuke
Depends on D4548

Differential Revision: https://phabricator.services.mozilla.com/D4646
2018-08-31 08:12:16 +00:00
Coroiu Cristina 86d034fd12 Backed out 2 changesets (bug 1477137) for devtools failures at devtools/client/aboutdebugging/test/browser_addons_toggle_debug.js
Backed out changeset c75f46c67e27 (bug 1477137)
Backed out changeset dd5e331122a9 (bug 1477137)
2018-07-27 16:45:06 +03:00
Daisuke Akatsuka a3c9471d9d Bug 1477137 - Part 2: Add a test for remove temporary and undo. r=jdescottes
MozReview-Commit-ID: nLjj4gcOrm
2018-07-27 17:49:28 +09:00
Mark Striemer 19707c9a26 Bug 1425347 - Hide system add-ons by default in about:debugging r=jdescottes
MozReview-Commit-ID: 4bhF6Zxsn6w
2018-05-28 15:33:26 -05:00
Ethan Glasser-Camp bf1655440f Bug 1440022: disconnect push tests from actually running r=lina
These tests were only not connecting due to an implementation detail
of the Push component.

MozReview-Commit-ID: 49JPgsfRxTF
2018-06-13 20:46:17 -04:00
Joel Maher d0823df1ef Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
654c821247 Bug 1299001 - Disable devtools/client/aboutdebugging/test/browser_addons_debug_webextension_popup.js for frequent timeouts on Linux64 debug r=jmaher 2018-06-08 02:52:00 +03:00
Noemi Erli 3788c45fcf Backed out changeset 8704878dc845 (bug 1299001) for Gecko Decision Task failure on a CLOSED TREE 2018-06-08 12:12:09 +03:00
c159264233 Bug 1299001 - Disable devtools/client/aboutdebugging/test/browser_addons_debug_webextension_popup.js for frequent timeouts on Linux64 debug r=jmaher 2018-06-08 00:20:00 +03:00
Julian Descottes 9456167901 Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks
2018-06-01 12:19:35 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Julian Descottes 73c95e71eb Bug 1458808 - add test to debug serviceworker from application panel;r=jlast,ladybenko
MozReview-Commit-ID: EXQAnjycyco
2018-04-17 19:16:56 +02:00
Michael Ratcliffe a4ac391ae6 Bug 1098374 - Telemetry: Stop all monkey patching in devtools telemetry tests r=yulia
Changes and notes:
  - Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
    contains test helpers to aid in creating and running telemetry tests.
  - Removed any telemetry monkeypatching as it is not dependable and no longer
    needed (there is some left in GCLI but the test is now disabled because
    we are removing GCLI soon anyhow).
  - Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
    have had to make it available everywhere that shared-head.js is used.
  - All telemetry tests have been rewritten to use the new helper.
  - shared-head.js cannot be imported by tests inside
    `devtools/client/performance/test/` because perf have custom `once` and
    `waitFor` implementations that act differently from the ones inside
    `shared-head.js`. This means I had to import the telemetry helpers into
    `devtools/client/performance/test/head.js`
  - Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
    to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
    others to be thorough).
  - Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
    test some expired scalars. I also corrected the way the scalars are logged
    because it was completely wrong.

MozReview-Commit-ID: JjQEGM6hT61
2018-05-01 18:06:14 +01:00
Kris Maglione edea7a2390 Bug 1454202: Part 4 - Convert add-on providers to use promise-based methods. r=aswan
MozReview-Commit-ID: 9e4CtcxWSiM
2018-04-21 15:30:40 -07:00
Kris Maglione d3bbf87c83 Bug 1454202: Part 1 - Update legacy callers to use Promise-based AddonManager APIs. r=aswan
***
Bug 1454202: Part 1a - Auto-replace uses of callback-based AddonManager APIs with Promise-based versions. r=aswan

This was done using the following script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/4cd5ae959765d0965dd0cc635de3e953bf46edbb/processors/aom-api-generators.jsm

MozReview-Commit-ID: 8hobLz15a66
***
Bug 1454202: Part 1b - Manually fix eslint errors after auto-rewrite. r=aswan

This also deletes an obsolete test whose xpcshell variant was already deleted.

MozReview-Commit-ID: DM9W9Q2SVIE
***
Bug 1454202: Part 1c - Manually fix non-eslint issues after auto-rewrite. r=aswan

MozReview-Commit-ID: DtMscWZuExc
2018-04-14 19:38:18 -07:00
Julian Descottes 77cdcb1aa0 Bug 1445197 - part 3: Move about:debugging worker module to a shared module;r=ochameau
Extract all the logic that will be shared between about debugging and the application
panel to a dedicated client module.

MozReview-Commit-ID: Ccnmp3dCZpW
2018-04-20 16:27:15 +02:00
Kris Maglione 31b62bd68b Bug 1453881: Part 1a - Automatically write add_task(function*) to add_task(async function) r=ochameau
This was done using the script at:

https://bitbucket.org/kmaglione/m-c-rewrites/src/bc5629735d8c7e4150f376d4a906e7c7c23132ba/processors/add-task-async.jsm?at=default&fileviewer=file-view-default

MozReview-Commit-ID: KxuS9Cen87
2018-04-12 21:10:04 -07:00
Alexandre Poirot d10cea6483 Bug 1453712 - Use a preference to set the testing flag. r=jryans
MozReview-Commit-ID: 1cjSQnXtc4h
2018-04-12 09:22:42 -07:00
Jonathan Kingston e8dbd6acf1 Bug 1374741 - Within devtools/ tests make openUILinkIn() provide the correct triggeringPrincipal. r=jryans
MozReview-Commit-ID: GNEe8H0sc4L
2018-02-21 23:21:03 +00:00
Brian Birtles 93df0e7bd8 Bug 1444301 - Move disable pop-up autohide feature to toolbox menu; r=jryans
MozReview-Commit-ID: 3cJKqIxaFkV
2018-04-05 10:13:22 +09:00
Nicolas Chevobbe 8007c0babc Bug 1382581 - Adapt extension code to the EventEmitter change in devtools/client/framework; r=rpl.
MozReview-Commit-ID: 3I7kmXiPOqd
2018-03-14 18:12:17 +01:00
Alexandre Poirot 22e91d7acd Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans
MozReview-Commit-ID: HaGOC5cn3JD
2018-03-12 19:46:35 -05:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
J. Ryan Stinnett 742921268c Bug 1442312 - Wait for addon reload to finish in tests. r=jdescottes
In about:debugging's browser_addon_reload.js test, we would request a reload
without waiting for it to reply.  This led to the RDP connection closing before
the reply could be sent, triggering later errors.

For better test correctness, we now emit an event on reply and the test waits to
receive it before proceeding.

MozReview-Commit-ID: Jfps7MJ6Pzo
2018-03-08 19:05:32 -06:00
J. Ryan Stinnett a7231a768e Bug 1442312 - Move allowed rejections into specific tests they apply to. r=ochameau
By moving only the rejections that actually still apply into each test and out
of the shared head file, we are much more likely to notice new instances and
catch them when writing and editing tests in the future.

Bug 1018184 can be used to actually resolve these issues.

MozReview-Commit-ID: Qb71PsuutB
2018-03-08 18:14:52 -06:00
J. Ryan Stinnett aa067adb85 Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl
2018-03-02 19:14:05 -06:00
Cosmin Sabou 111a73f847 Backed out 4 changesets (bug 1436187) for mochitest devtools failures at browser_se_editors-error-gutter.js on a CLOSED TREE
Backed out changeset 253f74e28723 (bug 1436187)
Backed out changeset 9875771c9967 (bug 1436187)
Backed out changeset b2d808aa8c2e (bug 1436187)
Backed out changeset e747480f3cd2 (bug 1436187)
2018-03-07 22:04:35 +02:00
J. Ryan Stinnett 039b00fd39 Bug 1436187 - Move existing shared head files to devtools/client/shared. r=bgrins
Move shared-head.js and shared-redux-head.js into shared.

MozReview-Commit-ID: 5NUxcl9gkLl
2018-03-02 19:14:05 -06:00
Alexandre Poirot 13e5d4f0f5 Bug 1434374 - Auto-rewrite Cu.import into ChromeUtils.import or require calls. r=jdescottes
MozReview-Commit-ID: 7YyLu5q23Hs
2018-02-07 01:37:36 -08:00
Andrew McCreight 272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Kris Maglione 0bb74efdf1 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Cosmin Sabou f09d6d985d Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione fd67f090b2 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Brindusan Cristian 483ba301cb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione 683a97d172 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/37e3803c7a23385bab5ea077ba8692bcfe1608fc/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Julian Descottes a46329cb93 Bug 1272774 - allow listTabs to return favicon data from PlacesUtils;r=ochameau
MozReview-Commit-ID: 8bkn3mG6YkL
2018-01-04 17:25:45 +01:00
Julian Descottes 5b07830664 Backed out changeset 00b1cae7d55f (bug 1425393) for failing devtools/client/aboutdebugging/test/browser_service_workers.js r=backout
MozReview-Commit-ID: ELnV9jwTwtV
2018-01-11 10:43:40 +01:00
Julian Descottes 4ca0e568b7 Bug 1425393 - open sw tabs in background in about:debugging tests;r=ochameau
MozReview-Commit-ID: 8UyrTDtHa7b
2017-12-12 15:49:36 -06:00
Julian Descottes 627cbf096f Bug 1425897 - Fix race condition in about:debugging test helper;r=baku
MozReview-Commit-ID: ELvxWzld9Um
2017-12-20 19:40:49 +01:00
Ben Kelly 66f4be5f20 Bug 1293277 P9 Disable browser_service_workers_push_service.js on non-e10s due to races. r=jryans 2017-12-12 15:44:48 -05:00
Julian Descottes 5bd5b3601c Bug 1386613 - stop using waitForMutations in aboutdebugging tests (remaining tests);r=ochameau
MozReview-Commit-ID: HDNzIFwp4Ur
2017-12-05 22:44:18 +01:00
Julian Descottes 6024c760fb Bug 1386613 - stop using waitForMutations in aboutdebugging tests (addons);r=ochameau
MozReview-Commit-ID: Ii32r9Dhjje
2017-12-05 22:17:15 +01:00
Julian Descottes e84c5847e4 Bug 1386613 - stop using waitForMutations in aboutdebugging tests (serviceworkers);r=ochameau
MozReview-Commit-ID: 3JMEZUx8rTt
2017-12-05 17:40:34 +01:00
Joel Maher 5953e2d68d Bug 1387827 - Disable 2 devtools tests on coverage builds for frequent timeouts. r=gbrown, a=test-only 2017-10-16 11:42:23 -04:00
Julian Descottes 83a97cd8e6 Bug 1352586 - decrease sw timeout in about:debugging test;r=me
MozReview-Commit-ID: Zeuh4xv5xb
2017-09-27 19:39:01 +02:00
Julian Descottes 89825d0373 Bug 1354937 - stop using mutations in browser_service_workers_status.js;r=ochameau
MozReview-Commit-ID: 7VUpgyOF68
2017-09-21 23:44:26 +02:00
Ian Moody c35155c2a3 Bug 1395367 - Update devtools tests to handle toolbox.showFrameMenu being async. r=ochameau
MozReview-Commit-ID: BSnpdRwWKla
2017-09-21 23:23:20 +01:00
Julian Descottes 75aa1b9f00 Bug 1333759 - use waitUntil instead of mutations in aboutdebugging test helper;r=ochameau
Several aboutdebugging test helpers rely on mutations to know when the UI is updated.
Since we are using React, we don't have any control on the actual mutations that
will be performed by the framework to reach a target UI state.

Using waitUntil with a DOM predicate should be more stable and less intermittent prone.

MozReview-Commit-ID: AnrEItpWkWL
2017-08-22 21:28:31 +02:00
Andrew Halberstadt 1ecb0adc26 Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw
2017-08-10 14:48:21 -04:00