Commit Graph

776 Commits

Author SHA1 Message Date
alschmiedt
d01169fa79 Toolbox Rewrite (#4223)
Rewrite the toolbox in order to get rid of old closure code and make it easier to extend.

Co-authored-by: Maribeth Bottorff <maribethb@google.com>
2020-09-02 08:13:07 -07:00
Monica Kozbial
739b8b3adc Viewport change event (#4180)
* Adding viewport ui event emitting and tests

* comment out viewport ui event logic and add TODO for reference
2020-08-31 18:41:20 -07:00
Monica Kozbial
61bdbc5034 Fixing issues with workspace dispose in event tests. (#4211)
* Fixing issues with workspace dispose in event tests.
2020-08-31 16:35:36 -07:00
Monica Kozbial
43b23f6d4a Stub modify in navigation_modify workspace keys test (#4214) 2020-08-31 13:20:54 -07:00
Abby
ed38a45efd Update chrome driver version 2020-08-26 08:10:09 -07:00
Monica Kozbial
6152354348 Check contents of warnings messages in tests. (#4212)
* Check contents of warnings messages in tests.
2020-08-21 14:45:02 -07:00
Monica Kozbial
1b9af5413c Add missing field to block definition in test. (#4209) 2020-08-21 11:06:21 -07:00
Monica Kozbial
886f8b7ad8 Update assert to notExists call (#4206) 2020-08-21 11:04:38 -07:00
Monica Kozbial
ed386faa04 Capture expected warnings logged when modify_ call fails. (#4204) 2020-08-21 11:03:51 -07:00
Monica Kozbial
7dd57adf83 Give Blockly div in tests a height. (#4207) 2020-08-20 19:02:19 -07:00
Monica Kozbial
b87d4497ae Update test asserts on stubs to use sinon asserts (#4205)
* Update asserts for stubs to use sinon asserts.

* Manual update of unclear stub assert.
2020-08-20 19:01:46 -07:00
Monica Kozbial
30e231bb71 Remove unnecessary block dispose that was causing test leakage. (#4210)
* Remove unnecessary block dispose that was causing test leakage.

* Remove unused block array.
2020-08-20 19:00:48 -07:00
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