Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Victor Porof 2b036e45c5 Bug 1561435 - Format testing/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35962

--HG--
extra : source : c0948f31e520ca087279cf429ca5f1db5a8341b8
2019-07-05 11:01:24 +02:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Andreas Tolfsen d5dfaa44a7 Bug 1453381 - Fix lint violations in Marionette xpcshell tests. r=whimboo
This patch is partly machine generated and partly massaged by hand
to achieve a satisfactory result.

MozReview-Commit-ID: IG46e93KoOb

--HG--
extra : rebase_source : 02f8fa6ec28a737a4151a757f75cf7ae36427e30
2018-04-11 20:26:53 +01:00
Andreas Tolfsen 67fe97531f Bug 1453381 - Move Marionette xpcshell tests to subdirectory. r=whimboo
In order to more easily facilitate linting of xpcshell unit tests,
this patch moves the tests to the test/unit subdirectory.

MozReview-Commit-ID: K1rtmreFWRL

--HG--
rename : testing/marionette/test_action.js => testing/marionette/test/unit/test_action.js
rename : testing/marionette/test_assert.js => testing/marionette/test/unit/test_assert.js
rename : testing/marionette/test_browser.js => testing/marionette/test/unit/test_browser.js
rename : testing/marionette/test_cookie.js => testing/marionette/test/unit/test_cookie.js
rename : testing/marionette/test_dom.js => testing/marionette/test/unit/test_dom.js
rename : testing/marionette/test_element.js => testing/marionette/test/unit/test_element.js
rename : testing/marionette/test_error.js => testing/marionette/test/unit/test_error.js
rename : testing/marionette/test_evaluate.js => testing/marionette/test/unit/test_evaluate.js
rename : testing/marionette/test_format.js => testing/marionette/test/unit/test_format.js
rename : testing/marionette/test_message.js => testing/marionette/test/unit/test_message.js
rename : testing/marionette/test_navigate.js => testing/marionette/test/unit/test_navigate.js
rename : testing/marionette/test_session.js => testing/marionette/test/unit/test_session.js
rename : testing/marionette/test_sync.js => testing/marionette/test/unit/test_sync.js
rename : testing/marionette/unit.ini => testing/marionette/test/unit/xpcshell.ini
extra : rebase_source : b77cdb754ddc90d1c4ff0e2f6a8dead5168677fe
2018-04-11 19:54:42 +01:00