Commit Graph

102 Commits

Author SHA1 Message Date
Ciure Andrei
1ec36c1e93 Backed out changeset 3325c31e498c (bug 1423247) for taking a new approach targeting Mozilla59 r=backout a=backout on a CLOSED TREE 2017-12-20 01:46:37 +02:00
Drew Willcoxon
7e756780ec Bug 1423247 - Couple Awesome Bar Composition (matchBuckets pref) to user's Address bar state (unified vs. 2 bar). r=mak
MozReview-Commit-ID: LZIWVcDvMrK

--HG--
extra : rebase_source : fc6f1c71641601ff40e289b13a70bc67039b10b4
2017-12-14 14:14:10 -08:00
Andrew Halberstadt
7f664cfdaf Bug 1209463 - [test] Log suite names in test harnesses, r=gbrown
Suite names are currently only used by formatters to print out
an overall summary from |mach test| and |mach mochitest|. So
this doesn't need to be exact and can be tweaked further at a
later date.

If multiple test invocations have the same suite name, their
results will be merged in the overall summary. If a suite name
is missing, the summary will contain a placeholder name.

MozReview-Commit-ID: K1xpb9hUQRX

--HG--
extra : rebase_source : cc8cc8b36255d939dd5dffd3c5444c34951ac8e2
2017-11-27 17:20:06 -05:00
aceman
996910e5ce Bug 1422547 - Define uniqueProcessID in newAppInfo of testing/modules/AppInfo.jsm as it is accessed in xpcshell tests and ExtensionUtils.jsm. r=mccr8 2017-12-02 16:16:00 +02:00
aceman
09f4e1d218 Bug 1420758 - Define processType in newAppInfo of testing/modules/AppInfo.jsm as it is accessed in xpcshell tests. r=mccr8 2017-11-27 14:21:00 -05:00
Andreea Pavel
c29bb2e0be Backed out 1 changesets (bug 1420758) for xpcshell failures, e.g. browser/modules/test/unit/test_LaterRun.js r=backout a=backout a=backout on a CLOSED TREE
Backed out changeset b2ac071a8544 (bug 1420758)
2017-11-27 16:52:38 +02:00
aceman
fe60e4df87 Bug 1420758 - define processType in newAppInfo of testing/modules/AppInfo.jsm as it is accessed in xpcshell tests. r=mccr8 2017-11-26 14:47:00 +02:00
Dan Banner
b2e847755c Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
MozReview-Commit-ID: GrlcOI9K2hJ

--HG--
extra : rebase_source : 6574cf3c67eb11733ffd9999c260f71c8551abc4
2017-05-28 19:57:46 +01:00
Paolo Amadini
8c27468e31 Bug 1413438 - Restore the logic preventing access denied errors when removing temporary files on Windows. r=mak
MozReview-Commit-ID: B4NG5XqNg9m

--HG--
extra : rebase_source : 368e3ca8130c85d9791feb524996f1b14e093744
extra : source : 98e4cee0879f356d2f4d61e76aa0fb50f174f55a
2017-11-06 08:34:40 +00:00
Kit Cambridge
064ed56076 Bug 1368209 - Refactor Engine::_processIncoming into three stages. r=eoger,tcsc
* In the first stage, we fetch changed records, newest first, up to the
  download limit. We keep track of the oldest record modified time we
  see.
* Once we've fetched all records, we reconcile, noting records that
  fail to decrypt or reconcile for the next sync. We then ask the store
  to apply all remaining records. Previously, `applyIncomingBatchSize`
  specified how many records to apply at a time. I removed this because
  it added an extra layer of indirection that's no longer necessary,
  now that download batching buffers all records in memory, and all
  stores are async.
* In the second stage, we fetch IDs for all remaining records changed
  between the last sync and the oldest modified time we saw in the
  first stage. We *don't* set the download limit here, to ensure we
  add *all* changed records to our backlog, and we use the `"oldest"`
  sort order instead of `"index"`.
* In the third stage, we backfill as before. We don't want large deltas
  to delay other engines from syncing, so we still only take IDs up to
  the download limit from the backlog, and include failed IDs from the
  previous sync. On subsequent syncs, we'll keep fetching from the
  backlog until it's empty.

Other changes to note in this patch:

* `Collection::_rebuildURL` now allows callers to specify both `older`
  and `newer`. According to :rfkelly, this is explicitly and
  intentionally supported.
* Tests that exercise `applyIncomingBatchSize` are gone, since that's
  no longer a thing.
* The test server now shuffles records if the sort order is
  unspecified.

MozReview-Commit-ID: 4EXvNOa8mIo

--HG--
extra : rebase_source : f382f0a883c5aa1f6a4466fefe22ad1a88ab6d20
2017-11-01 11:09:57 -07:00
NARCIS BELEUZU
1b5408583f Backed out 3 changesets (bug 1368209)xpcshell failures services/sync/tests/unit/test_syncengine_sync.js on CLOSED TREE
Backed out changeset 1b868efa368f (bug 1368209)
Backed out changeset b88c681ccdc1 (bug 1368209)
Backed out changeset 4b8e56844ae9 (bug 1368209)
2017-11-03 11:40:06 +02:00
Kit Cambridge
4105f1cb3a Bug 1368209 - Refactor Engine::_processIncoming into three stages. r=eoger,tcsc
* In the first stage, we fetch changed records, newest first, up to the
  download limit. We keep track of the oldest record modified time we
  see.
* Once we've fetched all records, we reconcile, noting records that
  fail to decrypt or reconcile for the next sync. We then ask the store
  to apply all remaining records. Previously, `applyIncomingBatchSize`
  specified how many records to apply at a time. I removed this because
  it added an extra layer of indirection that's no longer necessary,
  now that download batching buffers all records in memory, and all
  stores are async.
* In the second stage, we fetch IDs for all remaining records changed
  between the last sync and the oldest modified time we saw in the
  first stage. We *don't* set the download limit here, to ensure we
  add *all* changed records to our backlog, and we use the `"oldest"`
  sort order instead of `"index"`.
* In the third stage, we backfill as before. We don't want large deltas
  to delay other engines from syncing, so we still only take IDs up to
  the download limit from the backlog, and include failed IDs from the
  previous sync. On subsequent syncs, we'll keep fetching from the
  backlog until it's empty.

Other changes to note in this patch:

* `Collection::_rebuildURL` now allows callers to specify both `older`
  and `newer`. According to :rfkelly, this is explicitly and
  intentionally supported.
* Tests that exercise `applyIncomingBatchSize` are gone, since that's
  no longer a thing.
* The test server now shuffles records if the sort order is
  unspecified.

MozReview-Commit-ID: 4EXvNOa8mIo

--HG--
extra : rebase_source : 13605dd3a43569a6d83dc2eb15a578a7bbd5c1ca
2017-11-01 11:09:57 -07:00
Paolo Amadini
98b8fb39b7 Bug 1411979 - Share the getTempFile function in xpcshell and browser tests. r=mak
MozReview-Commit-ID: 5hshgOrFqws

--HG--
extra : rebase_source : c7b173f7c2685c9522ef0626b74819273352a373
extra : source : 68e85782bbcab3c06e729551643bdc602cf8de71
2017-10-31 13:25:45 +00:00
Sebastian Hengst
7bf9eb161a Backed out 2 changesets (bug 1411979) for failing xpcshell's toolkit/components/jsdownloads/test/unit/test_PrivateTemp.js. r=backout on a CLOSED TREE
Backed out changeset 7a4f33d16b9e (bug 1411979)
***
Backed out changeset 68e85782bbca (bug 1411979)

--HG--
extra : histedit_source : 0226bf9f95762ef7fe4e57aee97b96ae5deff496%2C066dd55855dbcbd146642acd72bcd4e5d8044a2f
2017-10-30 19:19:45 +01:00
Paolo Amadini
7e4a6c3456 Bug 1411979 - Share the getTempFile function in xpcshell and browser tests. r=mak
MozReview-Commit-ID: 5hshgOrFqws

--HG--
extra : rebase_source : 9377484a4416829e0bfbe30c70d434b331e7301c
2017-10-30 16:53:22 +00:00
Paolo Amadini
dac52b86d6 Bug 1412282 - Allow calling Assert.jsm methods directly from other test-only modules. r=mikedeboer
This adds a global instance that can be used by invoking assertion methods directly on the imported Assert object. The test suites set the global reporter function to the one for the currently running test.

MozReview-Commit-ID: 8dksVc9o7r

--HG--
extra : rebase_source : 3e382c6d24c6019d29963811c37469cfc23b928f
2017-10-27 14:38:30 +01:00
Peter Major
f8303b4ca2 Bug 1409195 - Improve Assert.throws documentation. r=mikedeboer,ato
Adds a new segment that should make it clearer that if the second
parameter of the Assert.throws method is of string type, the
parameter will not be used to verify the error message.

MozReview-Commit-ID: 6pYRfQwNYPi
2017-10-19 13:31:12 +01:00
Dan Banner
7caa92d5d8 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
Ryan VanderMeulen
0dcd727f08 Merge m-c to autoland. a=merge 2017-10-11 17:55:13 -04:00
Marco Bonardo
65ca393243 Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0

--HG--
extra : rebase_source : 7f93059ce057a8bf98996e31932a47523c555fd1
2017-10-10 01:18:23 +02:00
Sebastian Hengst
d4cf5c3f6e Backed out changeset 1ac7fce0b369 (bug 1406860) for failing xpcshell tests, e.g. toolkit/components/places/tests/unit/test_000_frecency.js. r=backout
--HG--
extra : amend_source : d56cb30d1aa7bb64597e273eef64e9d35056914e
2017-10-11 18:25:57 +02:00
Marco Bonardo
ac4197582b Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0

--HG--
extra : rebase_source : f919a0f84ff46fcfa56ddbfb2ba8b060b34cb12a
2017-10-10 01:18:23 +02:00
Olli Pettay
d30c23d095 Bug 1407408 - Add waitForTick to TestUtils.jsm, r=paolo
--HG--
extra : rebase_source : 530d10963ea7059437e9edc64b15ddeb1908750b
2017-10-11 12:18:36 +03:00
Robert Strong
5e2db259a2 Bug 1402376 - test code - Add whether the client has an incompatible version of JAWS to the update url. r=jimm 2017-09-22 12:45:39 -07:00
Andrew McCreight
b9c140d5d6 Bug 1400566 - Explicitly get the global of |this| in CoverageUtils.jsm. r=kmag
With shared JSM globals, |this| is an NSVO, not a global.

MozReview-Commit-ID: V1j4tipw3m

--HG--
extra : rebase_source : b696dfb881e58c6262b7715ded12422edbdec6d3
2017-09-16 11:06:17 -07:00
Steve Armand
e46ff00709 Bug 1368967 - Enable the ESLint generator-star-spacing rule across mozilla-central. r=standard8
MozReview-Commit-ID: 5do3eoCEAMR

--HG--
extra : rebase_source : 5f692e474e1d7d173fcb4c9c08617f0fe489e443
2017-09-04 00:49:32 -04:00
Kris Maglione
8b415f700f Bug 1394556: Part 1 - Fix strict mode errors in JSM scripts. r=Mossop
MozReview-Commit-ID: 4LmJQql7Y2c

--HG--
extra : rebase_source : f18b5547a5a57db4e8b990bfc34f06690ac9da7a
extra : histedit_source : 7281bafbde4bf231752d9d868ec8ca1d2f55a2f9
2017-08-30 01:50:27 -07:00
Andrew McCreight
e9b051a4af Bug 1366896, part 2 - Add and use Cc.Initialize method. r=krizsa
MozReview-Commit-ID: Amqt9JsTMqG

--HG--
extra : rebase_source : dff173ed60a254fa449b2e85d71eee6cc7daba26
2017-05-24 14:12:11 -07:00
Eric Rahm
0938982c90 Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
--HG--
extra : rebase_source : 063c7f95dda063eafabfa1921366bd1957b8fe73
2017-08-11 17:45:18 -07:00
Rajesh Kathiriya
881bce09ea Bug 1374670 - Enabled the ESLint no-tabs rule across mozilla-central r=standard8
MozReview-Commit-ID: RT5QTipaOW

--HG--
extra : rebase_source : 84bccaeba083bc430316d3c80d5c8f56494f1950
2017-07-04 21:30:18 +05:30
Geoff Brown
3115836c5c Bug 1375678 - Enable eslint on testing/modules - additional changes; r=standard8 2017-06-23 15:08:04 -06:00
Geoff Brown
03ec89d132 Bug 1375678 - Enable lint on testing/modules - mechanical changes; r=standard8 2017-06-23 15:08:02 -06:00
Florian Quèze
66f6d259bc Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Andrew McCreight
aa2e0787df Bug 1375188 - Don't import TextEncoder from osfile.jsm in CoverageUtils.jsm. r=Gijs
This import is unnecessary, because the WebIDL interface for
TextEncoder has Exposed=System, so it is available on the JSM
global. I can revert some of the changes from bug 1348103 at the same
time.

I need to remove this import, because it will break with shared JSM
globals.

MozReview-Commit-ID: BKmaH8iTFnI

--HG--
extra : rebase_source : bbb2944245ec2d8040f5138e1c6ee00ea05a52a3
2017-06-21 09:28:52 -07:00
Paolo Amadini
10ee6a5c4e Bug 1362970 - Part 2 - Script-generated patch to convert .then(null, ...) to .catch(...). r=florian
Changes to Promise tests designed to test .then(null) have been reverted, and the browser/extensions directory was excluded because the projects it contains have a separate process for accepting changes.

MozReview-Commit-ID: 1buqgX1EP4P

--HG--
extra : rebase_source : 3a9ea310d3e4a8642aabbc10636c04bfe2e77070
2017-06-19 11:32:37 +01:00
Edouard Oger
adde19d4f4 Bug 1369855 - Update sinon.js to version 2.3.2. r=markh
MozReview-Commit-ID: FPB4HebP3g7

--HG--
extra : rebase_source : 1e55c1dbc8bff59e1a7a097e4a6a58a19bc95688
2017-06-02 15:50:30 -04:00
Greg Mierzwinski
92afe39265 Bug 1348103 - Fix test_chrome_bookmarks.js error when collecting code coverage on linux64-jsdcov. r=Gijs
This patch first adds an argument to the 'do_get_file(...)' function call in 'test_chrome_bookmarks.js' that simply allows the 'chromefiles' folder to be non-existent if it does not exist. The 'CoverageUtils.jsm' file is then modified so that the import of 'osfile.jsm' does not interfere with any tests. So, it is now imported into the script after the test has completed. Two other tests have unwanted behaviour that cause code coverage collection to fail so they are also skipped through this patch.

MozReview-Commit-ID: H42HN1solkh

--HG--
extra : rebase_source : 82706778961cd5d7dee4f66eb691d8ec62bde365
2017-04-29 10:47:24 -04:00
Marco Bonardo
444b7b3de9 Bug 1356440 - Favicons of bookmarks views don't update on visit. r=mrbkap,past,enndeakin
MozReview-Commit-ID: 8j5yLqr7MTc

--HG--
extra : rebase_source : 0da3b4bf0fca0462e22f76c1392f1d9e69f0e71c
extra : amend_source : d6c92db62af2b62671cf13f0b5385b2bc2c8b81e
2017-04-19 11:41:49 +02:00
Florian Queze
4c6a68d1c9 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Florian Queze
37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
159215e6f4 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst
a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze
a363fb8c8b Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Greg Mierzwinski
4d2572b183 Bug 1317019 - Fix object iteration and check if scriptName exists. r=chmanchester,jmaher
This patch first implements an iterator so that we can properly iterate over the elements of the object returned by the _getMethodNames function. Next, the recordTestCoverage function now checks to see if the file actually has methods before recording them. And finally, some formatting was done.

MozReview-Commit-ID: EPOeYlMBc0w

--HG--
extra : rebase_source : c2145303916189804ba6ff31ede9310ab63d5104
2017-01-21 16:04:28 -07:00
Paolo Amadini
bfb4e9151f Bug 1237961 - Assert.throws raises a TypeError exception when the "expected" parameter is an arrow function. r=mikedeboer
MozReview-Commit-ID: CyhD00Uwbwj

--HG--
extra : rebase_source : 24a80ca12bfdded82f4bc3487ee491defa60da7b
2017-01-20 15:38:56 +01:00
Mark Banner
16e6d381ac Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ

--HG--
extra : rebase_source : daa8efb3409031fea553f4fd0c9d0746e38dc308
extra : histedit_source : b4c23aacf678ba0d0ac9c09191a7c494ead11a08
2017-01-18 10:30:39 +00:00
Joel Maher
f1fecc26b0 Bug 1326465 - add BUG_COMPONENTS to testing/. r=gbrown,ted
ensuring moz.build files have BUG_COMPONENTS for all files
in the testing/ subdirectory is a win.  There are a lot of
older files and some files used in many harnesses.  If the
files are primarily used for mochitest, they are associated
with the testing::mochitest component, otherwise I chose
the testing::general component.

There is an exception web-platform-tests, these have many
test files that need to be matched to proper components.

MozReview-Commit-ID: IIv9W2kEqeN
2016-12-30 16:16:56 -05:00
James Graham
d8c76e7543 Bug 1321127 - Add a assertion_count action to mozlog, r=ahal
This is intended as a structured replacement for the assertion checks
that previously used unstructured logs. It adds a log action
assertion_count, which takes the actual number of assertions observed
during a test, the minimum expeced number and the maximum expected
number. It also updates the reftest harness to use this logging.

MozReview-Commit-ID: JgjLlaYuvSG
2016-12-08 09:53:21 -10:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00