Victor Porof
5a4a810e4d
Bug 1561435 - Format testing/, a=automatic-formatting
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D35962
2019-07-05 11:01:24 +02:00
Ian Moody
9a71b08d20
Bug 1541025 - testing/ automated ESLint no-throw-literal fixes. r=jmaher
...
Result of running:
$ mach eslint -funix testing/ | sed -Ee 's/:.+//' - | xargs sed -E \
-e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
-e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
-e 's/throw \(/throw new Error(/g' -i
Differential Revision: https://phabricator.services.mozilla.com/D25758
2019-04-02 13:44:16 +00:00
Gijs Kruitbosch
bb0958915c
Bug 1541958 - remove nsIUserInfo which is unused, r=mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D26212
2019-04-04 20:09:34 +00:00
Mark Banner
d5029e0dae
Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D23850
2019-03-28 09:38:14 +00:00
Kris Maglione
856fa07b17
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
2019-01-17 10:18:31 -08:00
Mark Banner
3d6aaad3f5
Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Mark Banner
66456fdd15
Bug 1452706 - Make the 'expected' argument to Assert.throws/rejects required rather than optional. r=mikedeboer
...
MozReview-Commit-ID: 25flGw5sWga
2018-06-01 14:33:31 +01:00
Coroiu Cristina
aba0081bbd
Backed out 3 changesets (bug 1452706) for xpcshell failures at devtools/server/tests/unit/test_format_command.js
...
Backed out changeset 6abc5dc6baaf (bug 1452706)
Backed out changeset 4fbd34b0807a (bug 1452706)
Backed out changeset 626c790eb6f3 (bug 1452706)
2018-07-04 21:20:21 +03:00
Mark Banner
77e86411e0
Bug 1452706 - Make the 'expected' argument to Assert.throws/rejects required rather than optional. r=mikedeboer
...
MozReview-Commit-ID: 25flGw5sWga
2018-06-01 14:33:31 +01:00
Kris Maglione
fd7e9e6a69
Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
...
This also removes any redundant Ci.nsISupports elements in the interface
lists.
This was done using the following script:
https://bitbucket.org/kmaglione/m-c-rewrites/src/acecb401b76cfcc6ff7f0ba3ae69929955716152/processors/chromeutils-generateQI.jsm
MozReview-Commit-ID: AIx10P8GpZY
2018-04-22 20:55:06 -07:00
Thom Chiovoloni
cc4865fffe
Bug 1439772 - Avoid truncating operands when reporting failure for Assert.deepEqual r=mikedeboer
...
MozReview-Commit-ID: 1hlYFE3Xcwn
2018-02-20 18:17:16 -05: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
Dan Banner
503979c95a
Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
...
MozReview-Commit-ID: GrlcOI9K2hJ
2017-05-28 19:57:46 +01:00
Eric Rahm
4d399e631a
Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
2017-08-11 17:45:18 -07:00
Geoff Brown
af6269644d
Bug 1375678 - Enable eslint on testing/modules - additional changes; r=standard8
2017-06-23 15:08:04 -06:00
Geoff Brown
0a70da2e30
Bug 1375678 - Enable lint on testing/modules - mechanical changes; r=standard8
2017-06-23 15:08:02 -06:00
Florian Quèze
d0406d270c
Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop.
2017-06-22 12:51:42 +02:00
Sebastian Hengst
a7e0b60a11
Backed out changeset cc96b54811f6 (bug 1357625) for failing xpcshell's test_PromiseUtils.js. r=backout
2017-04-19 16:29:47 +02:00
Mark Hammond
83fa644b0a
Bug 1357625 - Have Assert.rejects resolve with the expected exception. r=mikedeboer
...
MozReview-Commit-ID: FJ31cd5pgul
2017-04-19 12:51:43 +10:00
Paolo Amadini
f28e656618
Bug 1237961 - Assert.throws raises a TypeError exception when the "expected" parameter is an arrow function. r=mikedeboer
...
MozReview-Commit-ID: CyhD00Uwbwj
2017-01-20 15:38:56 +01:00
Mark Banner
55868dde7c
Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
...
MozReview-Commit-ID: 62Hp5ISxowJ
2017-01-18 10:30:39 +00:00
Carsten "Tomcat" Book
036e6d2fa3
Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
...
Backed out changeset 647025383676 (bug 1202902 )
Backed out changeset d70c7fe532c6 (bug 1202902 )
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
12369728f5
Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
...
Backed out changeset cfc1820361f5 (bug 1202902 )
2015-10-07 12:13:45 +02:00
Shu-yu Guo
474f49adb7
Bug 1202902 - Scripted fix the world.
2015-10-06 14:00:31 -07:00
Andrew Halberstadt
0328985a1e
Bug 1042998 - Use StructuredLog.jsm for mochitest logging, r=chmanchester
2015-09-04 14:37:32 -04:00
Ehsan Akhgari
437d95a148
Bug 1154275 - Remove ise() in favor of is(); r=Ms2ger
2015-05-13 14:31:58 -04:00
Hiroyuki Ikezoe
0fb34fb89c
Bug 1147751 - Implement Assert.greater, Assert.greaterOrEqual, Assert.less and Assert.lessOrEqual. r=mikedeboer
2015-04-24 01:12:00 -04:00
Georg Fritzsche
bd5e6f542a
Bug 1140558 - Part 2 - Make the testing deepEqual implementation shared properly in ObjectUtils.jsm. r=yoric
2015-04-02 21:33:46 +02:00
Wes Kocher
444b4ec633
Backed out 14 changesets (bug 1143714, bug 1143796, bug 1139751, bug 1139460, bug 1140558) for Win PGO xpcshell failures
...
Backed out changeset d2567d89cda3 (bug 1139751)
Backed out changeset a8edee74d07f (bug 1139751)
Backed out changeset 613fd260f646 (bug 1143796)
Backed out changeset 7a6f6bdd6edf (bug 1143796)
Backed out changeset fdf9d0174142 (bug 1143714)
Backed out changeset 18989d1ebd43 (bug 1140558)
Backed out changeset a4f545b715ae (bug 1140558)
Backed out changeset b2e92f548736 (bug 1140558)
Backed out changeset a082c774db0a (bug 1140558)
Backed out changeset f9f66f6aaa86 (bug 1139460)
Backed out changeset d8b62b11c43e (bug 1139460)
Backed out changeset 77090798e88c (bug 1139460)
Backed out changeset ea6da072eb0c (bug 1139460)
Backed out changeset 58c2eb92a959 (bug 1139460)
2015-04-01 20:52:33 -07:00
Georg Fritzsche
10c1edf784
Bug 1140558 - Part 2 - Make the testing deepEqual implementation shared properly in ObjectUtils.jsm. r=yoric
2015-04-01 21:06:19 +02:00
Hiroyuki Ikezoe
1586d1a005
Bug 1139254 - Introduce a new jsm to register mock easily. r=gps
2015-03-24 19:15:00 -04:00
Mark Hammond
8a46536fb4
Bug 984172 (part 1) - add Assert.rejects. r=mikedeboer
2014-10-17 13:06:38 +11:00
Andrew Halberstadt
11b824f09b
Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester
2014-10-07 18:18:28 -04:00
Joshua Cranmer
c49cec126d
Bug 1067047 - Assert.deepEqual does not work correctly with invalid Dates, r=mikedeboer
2014-09-16 17:24:21 -05:00
Chris Manchester
b0147b68a6
Bug 916265 - Implement a jsm to output structured log messages.;r=ted
2014-07-21 14:34:01 -07:00
Mike de Boer
355ce664f5
Bug 1014482: update XPCShell self-tests to be compatible with global Assert.jsm methods. r=gps
2014-05-30 16:26:44 +02:00
Mike de Boer
38a36bcd26
Bug 967564: report operand, even when a custom message is specified. r=gps
2014-02-10 13:12:40 +01:00
Mike de Boer
34b92d2ff6
Bug 966681: improve robustness of error reporting. r=Unfocused
2014-02-04 00:09:28 +01:00
Mike de Boer
35f9581a9b
Bug 873126: integrate Assert.jsm into Mochitest. r=ted
2013-11-21 11:26:33 +01:00
Mike de Boer
40830435eb
Bug 873126: integrate Assert.jsm into XPCShell-test. r=gps
2013-11-19 13:53:20 +01:00
Mike de Boer
16f0913470
Bug 873126: introduce a common JS Assert library. r=gps,Unfocused
2013-11-19 13:53:18 +01:00