Commit Graph
664 Commits
Author SHA1 Message Date
Andrew McCreight a72d749bab Bug 1377587, part 1 - Always act like __exposedProps__ is missing. r=krizsa
This patch gently removes support for __exposedProps__ by changing
ExposedPropertiesOnly::check() to always return false, while still
failing silently in deny for some kinds of access.

The tests that I changed all involve testing the behavior with
__exposedProps__. I adjusted them to expect it to fail, or to adjust
the error message they get when they fail. That seemed better than
deleting them entirely.

Note that test_bug1065185.html had a bug, so that it never executed
the first case. I fixed that, and then fixed up the test to work when
__exposedProps__ is not supported.

This also removes various bits of the test framework that use
__exposedProps__, but don't actually need to.

MozReview-Commit-ID: 8fvkAmITmXY
2017-08-22 14:24:11 -07:00
Michael Layzell ee1064853c Bug 1199729 - Part 4: Update EventUtils to simulate drag events more accurately, r=baku 2017-09-08 11:05:08 -04:00
Tooru Fujisawa 33daed41dc Bug 1393160 - Detect visibility of the drag event target and fail if hidden. r=smaug 2017-08-27 21:03:31 +09:00
Chung-Sheng Fu cb1f3d7e76 Bug 1382499 - Fix typo in testing/mochitest/tests/SimpleTest/EventUtils.js r=smaug
MozReview-Commit-ID: B6wo6Px54jk
2017-08-03 16:02:07 +08:00
Stone Shih 744eec94bc Bug 1351148 Part4: Revise those test cases that have some tasks have to be processed before or after the synthesized key events. r=smaug.
Make sure input events are processed before or after the dependent tasks.

MozReview-Commit-ID: 8KfZnT2wjJR
2017-06-07 14:28:16 +08:00
Stone Shih 5e5cea7619 Backed out changeset de4929e39b7e (bug 1351148) 2017-08-11 15:19:30 +08:00
Stone Shih 263fd4d632 Bug 1351148 Part4: Revise those test cases that have some tasks have to be processed before or after the synthesized key events. r=smaug.
Make sure input events are processed before or after the dependent tasks.

MozReview-Commit-ID: 8KfZnT2wjJR
2017-06-07 14:28:16 +08:00
Mark Banner 841c44632e Bug 1388725 - Fix add_task in SpawnTask.js to give a useful crash for unhandled exceptions. r=jmaher
MozReview-Commit-ID: 6ZTKhi1eZ4P
2017-08-09 14:16:27 +01:00
Carsten "Tomcat" Book 4c1b3192ca Backed out changeset 5198322f7a62 (bug 1351148) 2017-07-28 09:20:20 +02:00
Stone Shih 34554b5597 Bug 1351148 Part4: Revise those test cases that have some tasks have to be processed before or after the synthesized key events. r=smaug.
Make sure input events are processed before or after the dependent tasks.

MozReview-Commit-ID: 8KfZnT2wjJR
2017-06-07 14:28:16 +08:00
Mike de Boer 7b31e1dde9 Bug 1380470 - Part 2 - Add add_task().skip() and add_task().only() for mochitest-chrome unit tests. r=ahal
Changes were made to the SpawnTask.js file, which is where the add_task
implementation lives for this API.

MozReview-Commit-ID: 7bPlcrrJkCi
2017-07-18 14:42:19 +02:00
Andrew Halberstadt 0b16685cac Bug 1372567 - Fix problems with mochitest structured logging, r=jgraham
The mochitest harness uses testEnd multiple times to log various failures. This can result
in several testEnd messages, which will soon cause mozlog to spit out an error. Instead,
these should be testStatus.

This also starts using mozlog's assertion_count log action to log test assertions (again,
instead of testEnd).

MozReview-Commit-ID: FFsyicSso5Y
2017-06-21 08:40:19 -04:00
Johann Hofmann 56bb768096 Bug 1364896 - Part 3 - Add a test for contextmenu touchmode. r=dao,jmaher
This also adds a utility function for synthesizing native touch
events to Eventutils.js.

I did not add a test for searchbar because of intermittent issues
with showing the contextmenu (that are not reproducible manually).
I believe this is rather related to searchbar functionality than
my patches.

MozReview-Commit-ID: Dqm92Saosxz
2017-06-23 11:48:35 +02:00
Ryan VanderMeulen 72cc2193ea Backed out 3 changesets (bug 1364896) for causing bug 1376466.
Backed out changeset 5c870a786e94 (bug 1364896)
Backed out changeset 134d9ee1e545 (bug 1364896)
Backed out changeset 8f52f28a9eaa (bug 1364896)
2017-06-27 14:32:07 -04:00
Johann Hofmann cba92e4ddd Bug 1364896 - Part 3 - Add a test for contextmenu touchmode. r=dao,jmaher
This also adds a utility function for synthesizing native touch
events to Eventutils.js.

I did not add a test for searchbar because of intermittent issues
with showing the contextmenu (that are not reproducible manually).
I believe this is rather related to searchbar functionality than
my patches.

MozReview-Commit-ID: Dqm92Saosxz
2017-06-23 11:48:35 +02:00
Tooru Fujisawa f30f436454 Bug 1375938 - Fix documentation comment about synthesizeNativeOSXClick. r=smaug DONTBUILD 2017-06-25 23:57:56 +09:00
J. Ryan Stinnett 2f621462e9 Bug 1328509 - Check failure patterns in assertSnapshots. r=xidorn
Several mochitests call `assertSnapshots`, which prints a reftest-like output
for use with the reftest analyzer.  Update these lines to check failure patterns
before printing, like the regular assertion methods do.

MozReview-Commit-ID: CfChoar7bp8
2017-05-25 10:13:25 -05:00
Phil Ringnalda dc5d30b907 Backed out 6 changesets (bug 1328509) for Windows 7 failures in test_visited_reftests.html
Backed out changeset 8388d8c76fed (bug 1328509)
Backed out changeset 182a88607e08 (bug 1328509)
Backed out changeset 008efac7764b (bug 1328509)
Backed out changeset c2ce10b8bc37 (bug 1328509)
Backed out changeset 65bbc73c87aa (bug 1328509)
Backed out changeset e20d3d5170c2 (bug 1328509)

MozReview-Commit-ID: BSmqdFP1Zom
2017-05-24 22:12:53 -07:00
J. Ryan Stinnett 2ef5634cae Bug 1328509 - Check failure patterns in assertSnapshots. r=xidorn
Several mochitests call `assertSnapshots`, which prints a reftest-like output
for use with the reftest analyzer.  Update these lines to check failure patterns
before printing, like the regular assertion methods do.

MozReview-Commit-ID: CfChoar7bp8
2017-05-24 21:20:07 -05:00
Andrew McCreight a0b16d7df1 Bug 1366023 - Explicitly import Services.jsm in a few content scripts. r=Gijs
MozReview-Commit-ID: 5HS9tXk3oa9
2017-05-12 15:57:53 -07:00
Florian Quèze 38c24463e4 Bug 1353542 - Cleanup the script output and fix tests, r=Mossop. 2017-05-12 14:54:05 +02:00
Xidorn Quan 511a2a0799 Bug 1340434 part 2 - Request complete log and mark suppressed unexpecteds. r=jmaher
MozReview-Commit-ID: FFP7UfmJ1xs
2017-02-17 23:45:13 +11:00
Masayuki Nakano 19a1cb9c60 Bug 1217700 part.4 Add automated tests for IMEContentObserver r=m_kato
IMEContentObserver notifies IME of 3 notifications at most when editor is changed.

The order is:
1. text change (with merged range if 2 or more change occurred during an edit transaction)
2. selection change (only the latest selection change. other changes occurred before that during an editor transaction are ignored)
3. position change (scrolled, resized, window moved, etc)

This does not check the behavior in designMode because some operation in testWithHTMLEditor() causes unexpected behavior, e.g., moving focus. It *might* be bug of design mode.  However, it doesn't matter for this bug.  The important thing of this bug is, there should be automated tests for IMEContentObserver.  And fortunately, IMEContentObserver does not check the type of editor.  So, it's enough to test only contenteditable element for HTMLEditor at least for now.  Therefore, I gave up to test it in designMode for now.

MozReview-Commit-ID: 7L6ZlbVMU2P
2017-04-19 21:57:58 +09:00
Florian Queze d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst 42670ceca0 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 9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Geoff Brown e2116c3fec Bug 1354042 - Delete pending crash reports between mochitests; r=jmaher 2017-04-09 11:31:19 -06:00
Stone Shih 2b86511344 Bug 606885 - Fire drag events with keyboard modifiers. r=enn 2017-02-17 11:29:42 +08:00
Tomislav Jovanovic 09bffff571 Bug 1343583 - Adapt test framework to function toString revision r=aswan
MozReview-Commit-ID: LHABSIrgpBi
2017-03-02 20:38:25 +01:00
Wes Kocher cd6ff174c9 Backed out 2 changesets (bug 1343583) at developer's request a=backout
Backed out changeset 10fccfc11db1 (bug 1343583)
Backed out changeset 3b9e06e3d9b8 (bug 1343583)

MozReview-Commit-ID: FKEYDU9MZIa
2017-03-02 10:44:07 -08:00
Tomislav Jovanovic 7e509610d6 Bug 1343583 - Adapt test framework to function toString revision r=aswan
MozReview-Commit-ID: LHABSIrgpBi
2017-03-02 18:32:33 +01:00
Kartikaya Gupta f9c9933d83 Bug 1341476 - Make the dump-dmd-after-test mochitest option work again. r=jmaher
MozReview-Commit-ID: 85oqrrzyYUR
2017-02-23 19:36:08 -05:00
Greg Mierzwinski c71d2a6dd7 Bug 1301984 - Add code coverage to mochitest-plain tests. r=jmaher
This patch allows the use of the flag '--jscov-dir-prefix' for mochitest plain tests to enable code coverage collection with the JS Debugger. It also enables the mochitest-plain tests for the linux64-jsdcov build platform.

MozReview-Commit-ID: 6RqMEZ1I0D7
2017-02-20 22:55:59 -05:00
Kartikaya Gupta 3160eccc64 Bug 1341450 - Repair incorrect check for missing DMDReportAndDump function. r=jmaher
MozReview-Commit-ID: 9lZEvxOYoR3
2017-02-21 18:58:30 -05:00
Xidorn Quan 4896541b3d Bug 1337674 followup 3 - Fix assertion check.
MozReview-Commit-ID: EckSAiEeou5
2017-02-18 12:17:24 +11:00
Carsten "Tomcat" Book 9dea0edd9e Backed out changeset 1081a37acef9 (bug 1340434) for ongoing failures in test_acid3_test46.html 2017-02-17 14:46:15 +01:00
Carsten "Tomcat" Book 8e399a4d6c Backed out changeset 83b51e1ba3e1 (bug 1340434) 2017-02-17 14:45:52 +01:00
Carsten "Tomcat" Book c7c3307149 Backed out changeset 5c217cd4e9dc (bug 1340434) 2017-02-17 14:45:50 +01:00
Xidorn Quan 5cc78e865c Bug 1340434 followup 2 - Fix call before define error in js again. a=tomcat
MozReview-Commit-ID: 8pDzjrEtLoW
2017-02-17 23:45:13 +11:00
Xidorn Quan 977b3d1e1d Bug 1340434 followup - Fix call before define error in js. a=tomcat
MozReview-Commit-ID: JP8ephv8Al
2017-02-17 22:38:47 +11:00
Xidorn Quan c044dcc83c Bug 1340434 - Request complete log and mark suppressed unexpecteds. r=jmaher
MozReview-Commit-ID: FFP7UfmJ1xs
2017-02-17 17:21:00 +11:00
Xidorn Quan a96d0c0d0e Bug 1337674 part 3 - Add failure pattern file support to mochitest. r=jmaher
MozReview-Commit-ID: EcK8AJbXfwh
2017-02-16 16:41:50 +11:00
Boris Zbarsky 8025d9b5f0 Bug 1334957 part 1. Mark NotifyPaintEvent and all its members as chromeonly. r=smaug 2017-02-01 18:12:38 -05:00
Florian Quèze c8cf49999e Bug 1334156 - script-generated patch to replace .ownerDocument.defaultView with .ownerGlobal, r=jaws. 2017-01-27 10:51:03 +01:00
Florian Quèze 0a4ee94a29 Bug 1334199 - script-generated patch to omit getComputedStyle's second argument when it's falsy, r=jaws. 2017-01-27 10:51:02 +01:00
Blake Kaplan be771d8873 Bug 1330822 - Remove CPOWs from browser_context_menu_iframe.js. r=Gijs
This was tricky because synthesizeMouse would compute the incorrect
coordinates if the requested event target was in a sub-frame. With this patch,
we deal correctly with sub-frames.

MozReview-Commit-ID: KpUKxFXKMrl
2016-11-11 15:07:18 -08:00
Florian Quèze 63de711857 Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws. 2017-01-17 11:50:25 +01:00
Carsten "Tomcat" Book 11757a7943 merge mozilla-inbound to mozilla-central a=merge 2017-01-12 10:14:43 +01:00
Florian Quèze b36a8b8f42 Bug 1330147 - automatic removal of the third boolean parameter in removeObserver calls, r=jaws. 2017-01-11 22:27:42 +01:00
pyang 8d4b33418e Bug 1286312 - Add mochitest option to run tests using https r=ahal
MozReview-Commit-ID: EHooQEjEDfF
2017-01-06 21:51:13 +08:00