Commit Graph

764 Commits

Author SHA1 Message Date
Monica Kozbial
a9f1d2e219 Field test deprecated logs (#4198)
* Cleanup of tests.

* Suppress warning logs in field tests.
2020-08-20 13:58:18 -07:00
Monica Kozbial
6e39d2f2e2 Capture expected warning in registry test. (#4201) 2020-08-20 13:57:21 -07:00
Monica Kozbial
f849f8801d Minor stub and assert cleanup (#4185)
* Fix order or assert equal arguments.

* Replace usages of callsFake with returns where appropriate
2020-08-20 11:07:32 -07:00
Monica Kozbial
49e0ff4318 Handle testing deprecated methods. (#4195)
* Handle testing deprecated methods.
2020-08-19 17:53:49 -07:00
Monica Kozbial
ab474c8966 Add missing constants to test constants mock. (#4200) 2020-08-19 17:53:15 -07:00
Monica Kozbial
afd10cb3a2 Fix workspace cleanup in tests. (#4169) 2020-08-19 15:40:12 -07:00
Monica Kozbial
408319823e Remove references to removed test_blocks.js (#4173)
* Remove test blocks reference from compile tests.

* Remove test blocks reference from compile script
2020-08-18 16:33:57 -07:00
Monica Kozbial
34aff27f96 Add missing workspace cleanup (#4167) 2020-08-17 15:06:24 -07:00
Monica Kozbial
a89ff37bd8 Add checks to WorkspaceSvg dispose and fix shared Workspace tests (#4170)
* Fix workspace tests and add add checks for WorkspaceSvg dispose

* Move flyout test to WorkspaceSvg
2020-08-17 10:32:55 -07:00
Monica Kozbial
2568305c57 Remove unecessary delete calls in test cleanup. (#4174) 2020-08-13 10:56:49 -07:00
Monica Kozbial
68528c2887 Use event dispatching to test trashcan click. (#4156) 2020-08-13 10:54:40 -07:00
Monica Kozbial
c7c6e27625 Upgrade mocha. (#4172) 2020-08-13 10:54:09 -07:00
Monica Kozbial
f8f98831af Add zoom controls tests. (#4159) 2020-08-12 18:39:35 -07:00
Monica Kozbial
929abd29ba Update events fire stub. (#4165) 2020-08-12 14:07:28 -07:00
Monica Kozbial
332ff10672 Test gesture triggered events and event assertion refactor (#4155)
* Refactor event assertion helpers and add assertions to gesture test.
2020-08-12 13:27:37 -07:00
Monica Kozbial
b0b3c67b90 Support dispatching pointer events in click tests (#4154)
* Add helpers for simulating mouse click.

* Update field and workspace click tests.
2020-08-11 11:17:33 -07:00
Rachel Fenichel
e4b8f61e5d Merge pull request #4146 from rachel-fenichel/upgrade_eslint
Upgrade eslint
2020-08-10 16:01:56 -07:00
Monica Kozbial
fa36fdb01f Xml test cleanup (#4119)
* Add call for shared setup and cleanup

* Fix test errors

* Add missing workspace cleanup.
2020-08-10 16:01:41 -07:00
Rachel Fenichel
0951b5e613 Update eslintrc for eslint v7, and resolve new lint errors 2020-08-10 15:10:48 -07:00
Maribeth Bottorff
9568d3f2cc Add tests for contextmenu_items (#4118)
Add tests for context menu items
2020-08-10 11:46:10 -07:00
mfallihee
254fb60481 Use toLocaleString to count decimal places consistently (#4124) 2020-08-10 10:47:14 -07:00
Rachel Fenichel
a2f851cda6 Merge pull request #4140 from google/rachel-fenichel-patch-1
Increase mocha timeout to 5m30s
2020-08-10 10:43:48 -07:00
Rachel Fenichel
2624026ad6 Update run_mocha_tests_in_browser.js 2020-08-10 10:37:05 -07:00
Rachel Fenichel
8ad78169fb Merge pull request #4121 from rachel-fenichel/deserialization_tests
Add and use helper functions in block_test.js
2020-08-06 12:02:24 -07:00
Rachel Fenichel
a39f688b6b Merge pull request #4122 from rachel-fenichel/delet_screenshot_tests
remove pixel-perfect screenshot tests
2020-08-06 11:54:44 -07:00
Rachel Fenichel
3922bd30c2 Alphabetize 2020-08-06 11:47:20 -07:00
Monica Kozbial
b9b8281c61 Add high precision constraint test case for FieldNumber (#4115)
* Add test case for high precision setValue

* Fix eslint
2020-08-06 11:35:42 -07:00
Rachel Fenichel
ecb8739c5f Lint 2020-08-06 10:30:04 -07:00
Rachel Fenichel
6f0dddc2fa Add createRenderedBlock to eslint globals 2020-08-06 10:20:16 -07:00
Rachel Fenichel
3a7a636d28 Move createRenderedBlock to test helpers, fix setup, use helper in more places 2020-08-05 20:33:34 -07:00
Monica Kozbial
7015607f45 Insertion Marker tests async cleanup (#4117)
* Add call for shared setup and cleanup

* Skip failing test suite

* Fix TODO formatting
2020-08-05 20:24:57 -07:00
Monica Kozbial
cadc419928 Adding cleanup to theme tests (#4112) 2020-08-05 20:24:13 -07:00
Rachel Fenichel
50b2745900 remove pixel-perfect screenshot tests 2020-08-05 20:11:22 -07:00
Rachel Fenichel
6dd5428e5b Add and use helper functions in block_test.js 2020-08-05 19:58:23 -07:00
Monica Kozbial
ba228ec235 Nav modify test shared cleanup (#4114)
* Add call for shared setup and cleanup

* skip failing tests
2020-08-05 17:20:21 -07:00
Monica Kozbial
b69f59eae7 Cleanup of chai asserts (#4100) 2020-08-05 16:03:06 -07:00
Monica Kozbial
2e92123314 Adding async cleanup to tests (#4103)
* Adding setup and teardown to more mocha tests.

* Update workspace dispose cleanup calls.
2020-08-05 16:00:00 -07:00
Monica Kozbial
b7305c1eed Shared events cleanup (#4092)
* Remove temp fix for event queue cleanup.

* Implementing shared setup and cleanup.

* Remove unecessary restore and add comment.

* Adds helper for workspace teardown

* Remove unecessary restore calls in event tests
2020-08-03 16:50:23 -07:00
Sam El-Husseini
51bbc2d9bb Move events into the global registry (#4053)
* Move events into the global registry
2020-08-03 08:11:58 -07:00
Sam El-Husseini
02ff548801 Snap dev tools to 1.1.1 (#4077) 2020-07-27 11:33:06 -07:00
Sam El-Husseini
af5b273288 Snap to 1.1.0 (#4075) 2020-07-27 10:49:36 -07:00
Monica Kozbial
3868db3221 Refactor shared (#4066)
* Refactoring event helpers.

* Fix concurrent test failure.
2020-07-24 14:49:39 -07:00
Monica Kozbial
4d8da1cda2 Allow es6 in mocha tests lint check (#4062)
* Allow es6 in mocha tests.
2020-07-24 14:41:56 -07:00
Sam El-Husseini
5d43d256e2 Move test blocks to dev-tools, refactor advanced playground (#4057)
* Remove remaining advanced playground actions, and remove test blocks
2020-07-24 13:53:00 -07:00
Monica Kozbial
64488c1402 Add listener for flyout events to playground. (#4035)
* Update workspace click and add listener for flyout events to playground.

* Fix test.

* Fix typing error

* change variable

* Update variable.
2020-07-20 14:00:03 -07:00
Rachel Fenichel
e1a221de30 Fix tests 2020-07-17 11:23:39 -06:00
Rachel Fenichel
7a515b2caf Lint 2020-07-17 09:49:37 -06:00
Rachel Fenichel
1700efc77b Add distance parameter to canConnect 2020-07-16 17:40:13 -06:00
Rachel Fenichel
bc0f54b769 Fix tests 2020-07-16 17:40:13 -06:00
Rachel Fenichel
3322834a9b Add deprecation warnings and tests 2020-07-16 17:40:13 -06:00