Rachel Fenichel
d11cc047a4
chore: fix more lint ( #5700 )
...
* chore: fix 918 violations of comma-dangle rule
* chore: fix 2 violations of comma-spacing
* chore: fix 13 violations of padded-blocks
* chore: fix 50 violations of block-spacing
* chore: fix one violation of semi-spacing
* chore: fix 4 violations of space-before-blocks
* chore: fix 38 violations of object-curly-spacing
* chore: fix 30 violations of key-spacing
* chore: fix 3 violations of quote-props
* chore: fix 5 violations of arrow-parens
* chore: fix 8 violations of no-tabs
* chore: allow uncommented helper functions in mocha tests
* chore: fix several more lint errors
* chore: tweak eslint configuration in core and tests
* chore: rebuild for tests
2021-11-10 10:18:36 -08:00
Rachel Fenichel
1ebec55393
chore: apply prefer-const rule fixes in mocha tests ( #5682 )
2021-11-05 14:25:33 -07:00
Rachel Fenichel
52c0427d85
chore: run eslint--fix for no-var rule in tests/mocha ( #5637 )
2021-10-25 11:37:23 -07:00
Beka Westberg
410365f4a1
feat: add support for defining toolboxes using pure json ( #5392 )
...
* feat: add recycling to core
* feat: add support for json block definitions in flyout
* tests: reorganize tests
* tests: add tests for generating contents
* Fixup reycling
* tests: add tests for recycling
* fix: types
* fix: lint
* fix: PR comments
* fix: creating blocks from flyout
* test: add test block to playground
* fix: types
* feat: add support for enabled
2021-09-20 13:08:35 -07:00
alschmiedt
5b1586ee1b
test: update mocha tests to use goog_module ( #5440 )
...
* Use goog.module in mocha tests
* Fix compiler warnings
* Make test helpers a module
* Name test modules Blockly.test.*
This is to be more consistent with how non-test modules are named.
Also remove top-level goog.require of TestHelpers (now
Blockly.test.helpers) since requiring a side-effect-less module does
nothing.
* Convert block_test.js and comment_test.js to goog.module syntax
* Address PR comments
* Goog modulify tests
* Goog modulify toolbox helpers
* Fixes imports and moves common tests from workspace_test.js to a helper file.
* Update test deps after rebase
Co-authored-by: Christopher Allen <cpcallen+git@google.com >
2021-09-16 13:00:38 -07:00
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
4d8da1cda2
Allow es6 in mocha tests lint check ( #4062 )
...
* Allow es6 in mocha tests.
2020-07-24 14:41:56 -07:00
alschmiedt
d0e91a15a2
Toolbox definition ( #3891 )
...
* Add support for creating a toolbox with JSON
2020-05-13 08:16:53 -07:00