Mark Banner
3b36b732b2
Bug 1463673 - Add the expected argument to Assert.throws/rejects for various tests in toolkit/. r=mossop
...
MozReview-Commit-ID: LsWlHC16145
2018-05-22 19:25:34 +01:00
Kris Maglione
187318b0b7
Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
...
MozReview-Commit-ID: Iv4T1MVAF5
2018-05-19 20:17:45 -07:00
Jan-Erik Rediger
96146257d0
Bug 1320052 - Update external snapshot callers to not deal with subsessions. r=chutten
...
MozReview-Commit-ID: DGTer5oMnwd
2018-05-02 15:56:03 +02:00
arthur.iakab
043600c175
Backed out 6 changesets (bug 1320052) on request by Dexter for requently failing test verify dom/base/test/browser_use_counters.js
...
Backed out changeset 07db52945b1f (bug 1320052)
Backed out changeset 7a64a23bf183 (bug 1320052)
Backed out changeset c95a4b0c6642 (bug 1320052)
Backed out changeset 4749633bd02f (bug 1320052)
Backed out changeset c7b8f6d55a0b (bug 1320052)
Backed out changeset b0396db0229c (bug 1320052)
2018-05-08 17:38:29 +03:00
Jan-Erik Rediger
25536db351
Bug 1320052 - Update external snapshot callers to not deal with subsessions. r=chutten
...
MozReview-Commit-ID: DGTer5oMnwd
2018-05-02 15:56:03 +02:00
Kris Maglione
62f14a5089
Bug 1446833: Part 4 - Make sure directory service overrides actually take effect. r=rhelmer
...
The directory service caches certain directory entries, or has them set by
other callers using `.set()`. When we try to override those directories with
custom providers, the cached value still takes precedence.
It might make more sense to just store the directory entry values directly in
the directory service's hash, but this patch just takes the less obtrusive
path of clearing cached values for keys that we override.
This patch also fixes the few instances where add-on manager tests leave files
in the global temporary directory which are now caught by the shutdown
assertions.
MozReview-Commit-ID: Jq92TngLO1L
2018-03-18 15:55:08 -07:00
Florian Quèze
5715aadbec
Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop.
2018-02-28 18:51:35 +01:00
Florian Quèze
f6add2cafd
Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop.
2018-02-28 18:51:33 +01:00
Jared Wein
d5ab8bee00
Bug 1436575 - Manually fix the errors from no-compare-against-boolean-literal that the autofix couldn't change. r=standard8
...
MozReview-Commit-ID: 6NtfU76sPKv
2018-02-08 13:35:53 -05:00
Bob Owen
ae632db932
Bug 1409063: Remove OS.Constants.Path attributes that were added for WebappsInstaller.jsm and are no longer used. r=baku
2018-02-09 14:09:25 +00: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
Florian Quèze
c5f15a4700
Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop.
2018-02-01 20:45:22 +01: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:
37e3803c7a/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:
37e3803c7a/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:
37e3803c7a/processors/chromeutils-import.jsm
MozReview-Commit-ID: 1Nc3XDu0wGl
2018-01-29 15:20:18 -08:00
Florian Quèze
1838aa9e08
Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs.
2017-12-21 11:10:23 +01:00
Florian Quèze
082ca8b2a3
Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs.
2017-12-21 11:08:17 +01:00
Mark Banner
e47ccbfec3
Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
...
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01:00
Dan Banner
5af4450327
Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
...
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
MilindL
7d7d80db18
Bug 1063635 Part 3 - Fix tests for native writeAtomic. r=Yoric
...
MozReview-Commit-ID: 94lNCMUEg7c
2017-08-29 20:20:26 +05:30
Kris Maglione
051a41c813
Bug 1371065: Part 1 - Remove external references to the add-on SDK. r=Mossop,glandium
...
MozReview-Commit-ID: D5KyHcg8Ujk
2017-09-12 11:54:47 -07:00
Sebastian Hengst
9b8548a73c
Backed out changeset 61a23e8fbf54 (bug 1063635)
2017-09-01 15:53:39 +02:00
MilindL
f45d76a349
Bug 1063635 Part 3 - Fix tests for native writeAtomic. r=Yoric
...
MozReview-Commit-ID: 94lNCMUEg7c
2017-08-29 20:20:26 +05:30
Chris H-C
eabcba7afb
bug 1376600 - Remove registered(Keyed)Histograms r=Dexter
...
With the removal of the old addonHistograms, all histograms are now registered.
So removing registered(Keyed)Histograms should be straightforward?
Unfortunately not, as this was how we filtered data based on dataset
(opt-in/opt-out), so a little more fiddling was needed to get C++ to only
serialize dataset-appropriate data (instead of post-facto filtering it in JS).
MozReview-Commit-ID: HDplhmzmzJl
2017-08-22 09:42:09 -04:00
Mark Banner
44963145a5
Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop
...
MozReview-Commit-ID: 35MaseieNUk
2017-08-20 18:52:05 +01:00
Masatoshi Kimura
747aea1659
Bug 938704 - Make OS.File support modern iterators. r=florian,Yoric
...
MozReview-Commit-ID: 8F1DtgakxM3
2017-08-19 15:04:13 +09:00
Andrew McCreight
44a3dce5bf
Bug 1368219 - Remove the unused OSFile.getAvailableFreeSpace. r=Yoric
...
The test is failing frequently on Linux 32 debug, and the method is unused.
MozReview-Commit-ID: 5ngM1pfDV7g
2017-08-18 08:59:28 -07:00
Dan Banner
3037c7821e
Bug 1379256 - Enable the rest of the recommended ESLint rules for toolkit/components/osfile. r=mossop
...
MozReview-Commit-ID: F5GmnvS9LpM
2017-08-09 15:23:19 +01:00
Dan Banner
146dee0bb0
Bug 1379256 - fix no-undef issues for toolkit/components/osfile. r=mossop
...
MozReview-Commit-ID: B0vImMrMGF6
2017-08-09 14:42:27 +01:00
Dan Banner
ab430856f3
Bug 1379256 - Enable more ESLint rules for toolkit/components/osfile (automatic fixes). r=mossop
...
MozReview-Commit-ID: EBIwfqkaSnD
2017-08-09 14:21:27 +01:00
Eric Rahm
4d399e631a
Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
2017-08-11 17:45:18 -07:00
Masatoshi Kimura
0af76969af
Bug 1375125 - Stop using nsILocalFile in the tree. r=froydnj
...
This mechanically replaces nsILocalFile with nsIFile in
*.js, *.jsm, *.sjs, *.html, *.xul, *.xml, and *.py.
MozReview-Commit-ID: 4ecl3RZhOwC
2017-08-04 17:49:22 +09:00
Dan Banner
2e0390eae4
Bug 1386666 - Remove try..catch(ex if ex) statements from toolkit/components/osfile/ so that ESLint can parse the files. r=mossop
...
MozReview-Commit-ID: 786dBxzN3Uc
2017-07-31 16:34:04 +01:00
Wes Kocher
20161e7382
Backed out changeset 856215476aa4 (bug 1386666) for eslint failures a=backout
...
MozReview-Commit-ID: FdO8WkzBvfj
2017-08-02 11:47:42 -07:00
Dan Banner
09b858b978
Bug 1386666 - Remove try..catch(ex if ex) statements from toolkit/components/osfile/ so that ESLint can parse the files. r=mossop
...
MozReview-Commit-ID: 786dBxzN3Uc
2017-07-31 16:34:04 +01:00
Chris H-C
d212df97df
bug 1366294 - Part 13 - Fix telemetry-using tests. r=Dexter
...
Some tests were using "secret" APIs to get at telemetry knowledge from various
processes in various ways. Adjust them so that they work with the new ways of
doing things.
MozReview-Commit-ID: 2iBL00HVGyg
2017-07-24 09:52:26 -04:00
Florian Quèze
c0468168f5
Bug 1368456 - remove Promise.jsm imports in tests, r=mconley.
2017-06-23 11:25:52 +02:00
Florian Quèze
c30094cdf7
Bug 1374282 - script generated patch to remove generators from add_task in browser/ and toolkit/, r=Mossop.
2017-06-22 12:51:43 +02:00
milindl
e73275b164
Bug 850636 - add an option outSerializationDuration to measure the time for message serialization,r=Yoric
...
This changes the `Scheduler.post` method to check for options in the `args`,
and accordingly update it with the time it takes for running `Scheduler.worker.post`.
This also changes the `test_duration.js` to add another duration (serialization duration)
for the operations where `Scheduler.post` is called.
MozReview-Commit-ID: EGPeHfMYI1U
2017-06-03 21:44:37 +05:30
Florian Quèze
15feaa278a
Bug 1362882 - script-generated patch to switch from Promise.defer() to new Promise() where it's straightforward, rs=Mossop.
2017-05-12 14:55:27 +02:00
Florian Quèze
38c24463e4
Bug 1353542 - Cleanup the script output and fix tests, r=Mossop.
2017-05-12 14:54:05 +02:00
Florian Quèze
b2499a4c57
Bug 1353542 - smaller script-generated patch converting remaining generators that are likely tasks (actual generators were identified by hand and whitelisted), r=Mossop.
2017-05-12 14:45:01 +02:00
Florian Quèze
ff53eb9a63
Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop.
2017-05-12 14:42:39 +02:00
Florian Queze
451928e614
Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws.
2017-04-14 21:51:39 +02:00
Sebastian Hengst
f75839c723
Backed out changeset 55f3df15eaa6 (bug 1356569)
2017-04-14 23:39:17 +02:00
Florian Queze
61aabdf237
Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws.
2017-04-14 21:51:39 +02:00
Mark Banner
ec9074e132
Bug 1347712 - Change the testing configurations into ESLint configurations within eslint-plugin-mozilla - automatically update .eslintrc.js test config files for new config locations. r=jaws
...
MozReview-Commit-ID: LH0CQOPfoe6
2017-03-20 12:36:37 +01:00
Tooru Fujisawa
785e901961
Bug 1338263 - Remove remaining legacy generator from toolkit/components/osfile/tests/xpcshell/. r=Yoric
2017-02-11 01:53:24 +09:00