gecko-dev/dom/tests/mochitest
Tom Ritter aa82f54ab6 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ

--HG--
extra : rebase_source : df8a03e76eaf9cdc9524dbb3eb9035af237e534b
2018-02-12 11:39:41 -06:00
..
ajax Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku 2018-02-12 11:39:41 -06:00
beacon Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
bugs Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
chrome Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
crypto Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8 2017-04-12 11:10:00 +01:00
dom-level0 Bug 1380617 - Fix tests that expect unicode encoding of hostname r=smaug 2017-08-09 17:44:08 +02:00
dom-level1-core
dom-level2-core Bug 1358104 - Only throw InvalidCharacterError for bad XML id's, not NamespaceError r=baku 2017-04-20 17:37:07 +03:00
dom-level2-html Bug 1279218 - Remove tests related to the applet tag; r=bz 2017-07-10 16:15:16 -07:00
fetch Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
gamepad Bug 1336002 - Part 4: Add gamepad button touched tests; r=Lenzak,qdot 2017-04-10 11:48:30 +08:00
general Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku 2018-02-12 11:39:41 -06:00
geolocation Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
localstorage Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
orientation
pointerlock Bug 1430303 - Implement ShadowRoot.pointerLockElement, r=mrbkap 2018-02-03 22:08:30 +02:00
script Bug 1386644 - Enable test for bug 1053321 on Android, r=bkelly 2018-01-11 07:19:00 +02:00
sessionstorage Bug 1361974 - Add nsIDOMWindowUtils API to check usage of a given storage r=mayhemer 2017-05-04 14:29:36 +02:00
storageevent Bug 1354730. Disable named property object (aka global scope polluter) behavior for all Xrays. r=kmag 2017-10-16 10:58:09 -04:00
webcomponents Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
whatwg Bug 1380617 - Fix tests that expect unicode encoding of hostname r=smaug 2017-08-09 17:44:08 +02:00