Граф коммитов

918 Коммитов

Автор SHA1 Сообщение Дата
Tooru Fujisawa edfe01e5ed 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 f7ccc499ad Bug 1382499 - Fix typo in testing/mochitest/tests/SimpleTest/EventUtils.js r=smaug
MozReview-Commit-ID: B6wo6Px54jk

--HG--
extra : rebase_source : efbba991267c78caca0f5c224e59cafc5c0ecb02
2017-08-03 16:02:07 +08:00
Stone Shih 55c5359fa6 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 665fb7cd54 Backed out changeset de4929e39b7e (bug 1351148) 2017-08-11 15:19:30 +08:00
Stone Shih b27577d8d6 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 04f22c3207 Bug 1388725 - Fix add_task in SpawnTask.js to give a useful crash for unhandled exceptions. r=jmaher
MozReview-Commit-ID: 6ZTKhi1eZ4P

--HG--
extra : rebase_source : 86e90eeaca6410765d0795f323919df921e8799d
2017-08-09 14:16:27 +01:00
Andrew Halberstadt c2f15eecbf Bug 1328830 - Add ability to set prefs from the DEFAULT section of a mochitest manifest, r=jmaher
This will only work if runByManifest is enabled, otherwise the harness will error out. It's also
illegal to set this on an individual test, it must be on the entire manifest.

MozReview-Commit-ID: LWYa3Sk1uyW

--HG--
extra : rebase_source : ea4add087c795324745a0a5fc18b3ef50b2292b0
2017-07-20 09:31:32 -04:00
Andrew Halberstadt 126cf32e82 Bug 1385311 - Make sure AddressSanitizer errors turn the task orange, r=jmaher
MozReview-Commit-ID: EvLGeaLVotV

--HG--
extra : rebase_source : 5a1b9b70f0832507f54ff601b16a8e654084c10d
2017-07-28 09:35:17 -04:00
Carsten "Tomcat" Book 2ff6df9177 Backed out changeset 5198322f7a62 (bug 1351148) 2017-07-28 09:20:20 +02:00
Stone Shih a5bccae405 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 e94bfa4ddf 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

--HG--
extra : rebase_source : ce14fda2e71508d3e9dea39ad62e65a57b432779
2017-07-18 14:42:19 +02:00
Mike de Boer 10092f64d7 Bug 1380470 - Part 1 - Add add_task().skip() and add_task().only() for mochitest-browser unit tests. r=ahal
.skip() allows you to skip a specific task from running and .only() allows you
to focus on only one specific task.

MozReview-Commit-ID: 36qQOhICN7s

--HG--
extra : rebase_source : 4b8e15a65dd9370b87dfdba8c85c64aae76dd4a0
2017-07-18 14:42:16 +02:00
Andrew Halberstadt f85d81d30e Bug 1372263 - Add additional mochitest selftests for crashes, assertions and leaks, r=jmaher
This also starts running the selftests on linux debug builds, since that's the only place that we
can test assertions and leaks.

MozReview-Commit-ID: JTdTLOLWn5r

--HG--
extra : rebase_source : 340aca0c4e5f9697b1d652fd192332e47a1acab9
extra : histedit_source : 2d4b542d2122b4c6d2d48fc9c49848d5453e4533
2017-06-22 16:37:11 -04:00
Andrew Halberstadt 02ba790378 Bug 1372263 - Add ability to skip mochitest selftests based on mozinfo properties, r=jmaher
MozReview-Commit-ID: JTdTLOLWn5r

--HG--
extra : rebase_source : 4b709c731f43e00dbc0e6596287811b739a3556c
extra : histedit_source : 71938673eecdb975e930d3b305433b3528acf7c7
2017-06-22 16:36:15 -04:00
Carsten "Tomcat" Book 5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00
Paolo Amadini be3f9ed657 Bug 1374241 - Add self-tests for unhandled rejection handling in browser-chrome tests. r=Mossop
MozReview-Commit-ID: 9gloXfhfZ3x

--HG--
rename : testing/mochitest/tests/browser/browser_fail_add_task.js => testing/mochitest/tests/browser/browser_fail_add_task_uncaught_rejection.js
extra : rebase_source : e4ce3389715d144711f23d10e2779ccd7fece134
extra : intermediate-source : 971751d97bb4c13a565f35db82cd411d68fa36e7
extra : source : c9c01c06908add6e1631121bed3d0cfaa8feeefa
2017-06-29 00:12:58 +01:00
Andrew Halberstadt 95c0561603 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

--HG--
extra : rebase_source : 5e8d02714fcf24f2b86a9867b0403bbda0d00f91
2017-06-21 08:40:19 -04:00
Johann Hofmann 0c2ea0509c 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

--HG--
extra : rebase_source : e59df4f487f60cea137fbf8aea71a854a5706de9
2017-06-23 11:48:35 +02:00
Ryan VanderMeulen 309d4a291b 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 acba8482a8 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

--HG--
extra : rebase_source : d5c4333609b68773e62447bd3158cadfa89b803b
2017-06-23 11:48:35 +02:00
Tooru Fujisawa 4735d8aaac Bug 1375938 - Fix documentation comment about synthesizeNativeOSXClick. r=smaug DONTBUILD 2017-06-25 23:57:56 +09:00
Andrew McCreight 31e39883db Bug 1375262 - Add the ability to pass sandbox options to SpecialPowers.loadChromeScript(). r=jmaher
SpecialPowers.loadChromeScript() sends a script to the child process,
then creates a sandbox, and runs the script in that sandbox. There are
various sandboxOptions that can be passed when creating a sandbox, and
it would be nice to have that functionality for loadChromeScript.

I just need this for wantGlobalProperties, but I might as well make it
as general as possible. I'm not sure all of the types it can take can
actually be serialized across processes, but I guess that's okay.

MozReview-Commit-ID: GoJjXdjizFk

--HG--
extra : rebase_source : 9c2bc190dbf5a080978953cffd64205e8b816367
2017-06-20 15:50:20 -07: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 Halberstadt 8177e735f3 Bug 1048446 - [python-test] Create a mochitest selftest harness, r=jmaher
This will create a mochitest selftest harness based on |mach python-test|. There
is also a basic test that checks whether TEST-PASS and TEST-UNEXPECTED-FAIL work.

MozReview-Commit-ID: Jqyhbj7nC6z

--HG--
extra : rebase_source : d73b37305590a415e350ee45785a85635e7d4209
2017-05-31 13:52:01 -04:00
Joel Maher b44356bc28 Bug 1368364 - backout bug 1242505 as it causes browser/modules/ intermittent failures. r=paolo 2017-06-03 10:34:14 +02:00
Paolo Amadini f960ce1e88 Bug 1242505 - Part 4 - Add self-tests for unhandled rejection handling in browser-chrome tests. r=Mossop
MozReview-Commit-ID: 9gloXfhfZ3x

--HG--
rename : testing/mochitest/tests/browser/browser_fail_add_task.js => testing/mochitest/tests/browser/browser_fail_add_task_uncaught_rejection.js
extra : rebase_source : 7e03f6112ec15c4e85235e590f76ee2321d68cfd
extra : source : c9c01c06908add6e1631121bed3d0cfaa8feeefa
2017-05-27 09:15:19 +01:00
Paolo Amadini a002e5d1d1 Bug 1365649 - Improve browser-chrome self-tests and the "fail-if" manifest property handling. r=Mossop
The browser-chrome self-test files now use the setExpectedFailuresForSelfTest function to specify the exact number of assertion failures that will be triggered. Also, most failures are now intercepted when specifying the "fail-if" property in a "browser.ini" manifest, while previously only those triggered using the "ok" function were intercepted. This allows re-enabling several browser-chome self-tests.

MozReview-Commit-ID: DlDjWaJPfvH

--HG--
extra : rebase_source : d9977dac6ecbd2b28f5697d22ce6edf4e1d4f899
extra : source : 6da58c7bb247d3e879012bea8d848eb68f16e36e
2017-05-27 09:12:02 +01:00
Sebastian Hengst 2748dd52d2 Backed out changeset 6da58c7bb247 (bug 1365649) for frequently failing devtools/client/netmonitor/test/browser_net_simple-request-data.js. r=backout 2017-05-28 11:32:16 +02:00
Sebastian Hengst 2aea17aeb6 Backed out changeset c9c01c06908a (bug 1242505) 2017-05-28 11:31:06 +02:00
Paolo Amadini 71878bc0cf Bug 1242505 - Part 4 - Add self-tests for unhandled rejection handling in browser-chrome tests. r=Mossop
MozReview-Commit-ID: 9gloXfhfZ3x

--HG--
rename : testing/mochitest/tests/browser/browser_fail_add_task.js => testing/mochitest/tests/browser/browser_fail_add_task_uncaught_rejection.js
extra : rebase_source : 31e3a52cb783a656119253e6a380260883bb0de3
2017-05-27 09:15:19 +01:00
Paolo Amadini 07056b1bad Bug 1365649 - Improve browser-chrome self-tests and the "fail-if" manifest property handling. r=Mossop
The browser-chrome self-test files now use the setExpectedFailuresForSelfTest function to specify the exact number of assertion failures that will be triggered. Also, most failures are now intercepted when specifying the "fail-if" property in a "browser.ini" manifest, while previously only those triggered using the "ok" function were intercepted. This allows re-enabling several browser-chome self-tests.

MozReview-Commit-ID: DlDjWaJPfvH

--HG--
extra : rebase_source : 498914c84ab69dd484fb5487ad9967073c331fd3
2017-05-27 09:12:02 +01:00
J. Ryan Stinnett e9136d19a5 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 30a91cb819 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 3d8b73c8cf 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 9cc36bb50a Bug 1366023 - Explicitly import Services.jsm in a few content scripts. r=Gijs
MozReview-Commit-ID: 5HS9tXk3oa9

--HG--
extra : rebase_source : f63765ed9759073b00a66c35f07dbb11c1585326
2017-05-12 15:57:53 -07:00
Christoph Kerschbaumer e4f38c8d7c Bug 1362993 - Rewrite gBrowser.addTab() to use BrowserTestUtils.addTab(). r=florian 2017-05-15 21:49:50 +02:00
Florian Quèze 4e937e42a2 Bug 1353542 - Cleanup the script output and fix tests, r=Mossop. 2017-05-12 14:54:05 +02:00
Xidorn Quan 658ec0d2cc Bug 1340434 part 2 - Request complete log and mark suppressed unexpecteds. r=jmaher
MozReview-Commit-ID: FFP7UfmJ1xs

--HG--
extra : rebase_source : e3c5ee954c3a64359fc4423b8644ee718f463555
2017-02-17 23:45:13 +11:00
Masayuki Nakano d457e48592 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

--HG--
extra : rebase_source : 8282fe7aa2f4d405f2576f05d46b60b044223855
2017-04-19 21:57:58 +09: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 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
Dan Banner cdf987089d Bug 1107904 - Remove packed.js and references to it as it is unused. r=standard8
MozReview-Commit-ID: K5TLF92pHq4

--HG--
extra : rebase_source : 295bf325a07fa8ec4c55a8babf5418588308dca6
2017-04-12 11:10:00 +01:00
Geoff Brown 7998c8ce76 Bug 1354042 - Delete pending crash reports between mochitests; r=jmaher 2017-04-09 11:31:19 -06:00
Stone Shih 229b4ba331 Bug 606885 - Fire drag events with keyboard modifiers. r=enn
--HG--
extra : rebase_source : c6e4ac37ea2397d86368cb59b0a68aa3a9f43d79
2017-02-17 11:29:42 +08:00
Tomislav Jovanovic 5cbc8240df Bug 1343583 - Adapt test framework to function toString revision r=aswan
MozReview-Commit-ID: LHABSIrgpBi

--HG--
extra : rebase_source : dd165454a14544b546fb973262e7b814cd0c627c
2017-03-02 20:38:25 +01:00
Wes Kocher b9ff582762 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 b9dd9e5d3a Bug 1343583 - Adapt test framework to function toString revision r=aswan
MozReview-Commit-ID: LHABSIrgpBi

--HG--
extra : rebase_source : 305fd3b2f7c8d8a6054f2621cde6f48f0dcd9a20
2017-03-02 18:32:33 +01:00
Kartikaya Gupta cc5638514c Bug 1341476 - Make the dump-dmd-after-test mochitest option work again. r=jmaher
MozReview-Commit-ID: 85oqrrzyYUR

--HG--
extra : rebase_source : d594e77dfa4ee7c0cb3b9dae891da69bf14b4555
2017-02-23 19:36:08 -05:00
Greg Mierzwinski ba5aaf53e6 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

--HG--
extra : rebase_source : 351754541801f69f7c54807f6bdd3a3d1baf9222
2017-02-20 22:55:59 -05:00