Commit Graph

652 Commits

Author SHA1 Message Date
Monica Kozbial
17eade1017 Partial conversion of workspace tests to mocha. (#3838) 2020-04-17 16:31:12 -07:00
Monica Kozbial
0adf7efd5f Converting jsunit asserts to chai. (#3831)
* Converting jsunit asserts to chai.

* Move jsunit functions to test_utilities.

* Adding eslint exception for helper method.
2020-04-17 16:08:46 -07:00
Sam El-Husseini
cfa198c6a0 Fix bug with dropdown divs in mutator dialogs. (#3835) 2020-04-17 13:19:40 -07:00
Monica Kozbial
a74cd0898c Converting variable map tests to mocha. (#3827)
* Converting variable map tests to mocha.

* Removing TODO updating chai syntax.
2020-04-16 17:47:17 -07:00
Monica Kozbial
e838027629 Convert variable model tests to mocha. (#3829)
* Convert variable model tests to mocha.

* Delete old jsunit test.

* Updating to use chai syntax.
2020-04-16 17:39:38 -07:00
Monica Kozbial
9c400f2bf0 Converting variable tests to mocha. (#3828) 2020-04-16 14:18:12 -07:00
Beka Westberg
9e98df9949 Fix collapsed blocks not updating when modified (#3806)
* Stop recursive render calls

* Fix visibility bugs.

* Make toString ignore collapsed input.

* Add automatic collapse rendering handling

* Fix insertion markers with collapsed

* Add tests

* Fix build?

* PR comments

* Add missing jsdoc
2020-04-16 13:02:05 -07:00
Monica Kozbial
d61f3c6f38 Converting extensions_test to mocha. (#3820)
* Converting extensions_test to mocha.

* Add spacing between test cases.

* Fix cleanup for block type.

* Add cleanup for event state.
2020-04-15 15:55:49 -07:00
Monica Kozbial
ab5f7d8a00 Converting event tests to mocha. (#3811)
* Convert remaining jsunit tests for events to mocha.

* Fix eslint.
2020-04-15 11:29:17 -07:00
alschmiedt
3a902ee970 Update ast node (#3808)
* Update ast node
2020-04-15 10:10:21 -07:00
Monica Kozbial
c740d2781c Converting json junit test to mocha. (#3809)
* Converting json_test to mocha.

* Adding exceptions to mocha eslint config.

* Address PR comments.
2020-04-14 18:17:34 -07:00
Monica Kozbial
8a2fe6411f Converting xml tests to mocha. (#3818)
* Converting xml tests to mocha.

* Remove async

* Updating no variable test.

* Addressing PR comments.
2020-04-14 14:10:10 -07:00
Monica Kozbial
e0521265b2 Fixing event tests and removing duplicate tests. (#3810) 2020-04-14 13:22:06 -07:00
Monica Kozbial
b1b2af2a48 Converting utils tests to mocha and removing duplicates. (#3813)
* Converting utils tests to mocha and removing duplicates.

* Adding eslint exception for helper function.

* Splitting tokenizeInterpolation into chunks.
2020-04-14 13:21:48 -07:00
Monica Kozbial
d35b3659c8 Removed duplicate block tests and renamed tests. (#3812)
* Removed duplicate block tests and renamed tests.

* Refactor shared code and add comment about parent/middle/child.
2020-04-13 15:52:44 -07:00
Monica Kozbial
1a0d966b70 Updating chrome version in selenium config. (#3805) 2020-04-10 10:19:43 -07:00
Beka Westberg
bcfde92afb Fix setValue not handling block disposal (#3766) 2020-04-06 09:59:30 -07:00
Sam El-Husseini
4f9b4a707a Add field set source block tests (#3796)
* Set the source block on fields in mocha tests.
2020-04-03 14:50:33 -07:00
Abby
600b5726ad Merge branch 'master' of https://github.com/google/blockly into rc/Apr_20 2020-04-02 16:38:23 -07:00
Monica Kozbial
a9223b0b22 Typo fixes. (#3769) 2020-03-25 15:47:27 -07:00
Monica Kozbial
d6abf4798e Fixing operator precedence in Lua and and adding test. (#3765)
* Fixing operator precedence in Lua and and adding test.

* Updating golden files.
2020-03-25 14:34:07 -07:00
Sam El-Husseini
71f7285333 Fix mutator field scale (#3763)
* Fix mutator zoom scale
2020-03-23 17:34:12 -07:00
Sam El-Husseini
d7ca6996a4 Update rendering playground to use rendererOverrides: (#3743) 2020-03-12 11:45:14 -07:00
Sam El-Husseini
1d3a1655c6 Support multiple renderer / theme combos on the same page. (#3732)
* Support multiple renderer / theme combos on the same page.
2020-03-11 20:09:00 -07:00
Sam El-Husseini
29dc7bd7f7 Adjust marker and cursor colours from the theme (#3735)
* Support adjusting marker and cursor colours from the theme
2020-03-11 11:23:29 -07:00
Sam El-Husseini
eb07793ba8 Cleanup Blockly UI components. (#3723)
* Cleanup Blockly UI components. Remove unnecessary getters
2020-03-11 10:40:16 -07:00
Nitin Kumar
9a466fe212 chore: fix typo (#3736) 2020-03-11 07:44:35 -07:00
Sam El-Husseini
a9e10807ca Support extending themes with a base theme property. (#3731)
* Support extending themes with a base theme property.
2020-03-10 10:30:13 -07:00
Sam El-Husseini
5450c41d66 Fix test_themes copywright 2020-03-09 11:57:46 -07:00
Sam El-Husseini
21763b7e00 Support enabling start hats from themes (#3722)
* Support themes configuring the start hats of blocks. Add test themes
2020-03-05 17:34:31 -08:00
Sam El-Husseini
8c5c33902b Flash on render (#3721)
* Flash a block when it's renderered in debug mode
2020-03-05 13:26:10 -08:00
Beka Westberg
ec8d76f143 Add workspace comment context menu option to playground (#3708)
* Add WScomment context menu option to playground
2020-02-25 14:32:51 -08:00
Beka Westberg
981c0b5d12 Fix checkbox field rerendering on setCheckChar (#3704)
* Fix checkbox field rerendering on setCheckChar
2020-02-24 11:13:48 -08:00
Rachel Fenichel
b8535e7d56 Merge pull request #3693 from rachel-fenichel/decompose_gulpfile
Break gulpfile into multiple subfiles
2020-02-20 17:58:21 -08:00
Rachel Fenichel
b4a448c632 Update task names in another file 2020-02-20 17:44:29 -08:00
Sam El-Husseini
eb40ca44ba Dynamic fonts (#3698)
* Piping themes into the renderer and ensuring fields update their size information when constants change.
2020-02-20 17:16:01 -08:00
Neil Fraser
4e2f8e6e02 Use SPDX licences.
This is a followup to #3127.
At the time, SPDX licenses were pending approval by Google.
2020-02-11 13:27:20 -08:00
Sam El-Husseini
4a94dc8a85 Unpack self-closing tags when converting domToText (#3665)
* Unpack self-closing tags when converting domToText
2020-01-27 15:32:12 -08:00
Sam El-Husseini
f6b5e9ebb4 Add test block for field image with a click handler (#3642) 2020-01-23 16:19:24 -08:00
Monica Kozbial
067aa58428 Fix test align block. (#3643) 2020-01-23 13:37:24 -08:00
Monica Kozbial
46df648200 Fix test align block. (#3643) 2020-01-23 13:35:51 -08:00
Monica Kozbial
c84ee46a89 Setting default options in workspace constructor. (#3592)
* Setting default options in workspace constructor.

* Changing logic for parsing workspace options.

* Adding gridPattern declaration to options and updating options handling for workspace.

* Addressing PR comments.

* Moving objects to constructor.

* Using constructor instead of casting for Blockly.Options.

* fix eslint

* Adding types.

* Change in type.

* eslint fix.

* Fix typings.
2020-01-17 15:16:20 -08:00
alschmiedt
1a2fb6ddf0 Add new build scripts (#3608)
* Add new build scripts

* Fix pr comments
2020-01-16 16:52:20 -08:00
Sam El-Husseini
4f07776dd9 IE 11 doesn't allow the same property to be set on an object twice in strict mode. (#3586) 2020-01-14 13:10:18 -08:00
Sam El-Husseini
f0f1681253 Cleanup connection test blocks in playground (#3588)
* Move connection test blocks handlers into test_blocks file out of the playground.
2020-01-14 09:02:57 -08:00
Beka Westberg
1278cd95ea test: Added connection test blocks. (#3525)
* test: Added connection test blocks.
2020-01-13 15:51:42 -08:00
alschmiedt
7e34d94610 Fixes blockly games blocks being black (#3579)
* Fixes blockly games blocks being black
2020-01-13 13:34:29 -08:00
Sam El-Husseini
1fedbfa591 Add two new zelos rendering playgrounds for all the blocks in pxtblockly and scratchblocks. (#3582) 2020-01-13 11:57:50 -08:00
Beka Westberg
6d1bb201f7 feat: Improved procedure arg interaction. (#3527)
* feat: Improved procedure arg interaction.

* Added docs.

* Fixed typos and typings.

* Fixed typings?

* Changed visibility to private.
2020-01-07 13:55:46 -08:00
Neil Fraser
cd1d18b7a0 STRICT is no longer supported by Closure Compiler
Apparently 'PRUNE' is the new option, but it's undocumented.  More info:
https://github.com/google/blockly-games/issues/176
2020-01-06 11:04:24 -08:00