Eric Rosenbaum
6bb3cdc9e2
Add extension blocks with icons to playground
2017-12-01 11:35:51 -05:00
Paul Kaplan
f6006971f7
Update "public" annotation for external procedure def callback.
2017-11-29 09:28:41 -05:00
Paul Kaplan
37341daca3
Add logic for edit/create custom procedures, wire up the playground
2017-11-22 14:29:12 -05:00
Rachel Fenichel
c865f36837
Apply new names for procedure components
2017-11-16 13:18:53 -08:00
Rachel Fenichel
3f170d8c40
procedures_mutator_root -> procedures_declaration_root
2017-11-16 13:18:53 -08:00
Rachel Fenichel
da17573fe4
'add random input' and 'remove random input' buttons
2017-11-10 11:53:49 -08:00
Rachel Fenichel
9854afeedb
Add labels and inputs, rename them, and push changes to the right side playground
2017-11-10 11:53:13 -08:00
Paul Kaplan
cc410c1326
Merge pull request #1211 from paulkaplan/fix-camel-case-xml
...
Change variableType to variabletype in xml.
2017-11-06 13:42:08 -05:00
Paul Kaplan
807743d20f
Change variableType to variabletype in xml.
...
Scratch-blocks version of blockly pr #1422
2017-11-06 10:29:43 -05:00
Rachel Fenichel
0a6c8470ec
use goog.dom.createDom instead of Blockly.Xml.textToDom
2017-11-02 16:50:03 -07:00
Rachel Fenichel
5fd27a1fc7
Add JSDoc
2017-11-01 14:57:06 -07:00
Rachel Fenichel
5a0cf50516
Use procedure utility functions for some other blocks
2017-11-01 14:14:11 -07:00
Rachel Fenichel
e526166dd1
Progress on being able to apply the same mutation multiple times to a block
2017-10-31 18:28:17 -07:00
Rachel Fenichel
a02d69e09b
Make the 'ok' button apply a mutation in the custom procedure playground
2017-10-27 11:12:46 -07:00
Ken
3ce4930c65
Remove "fake some drags!" button from playground
...
Removed the "fakeManyDrags", "fakeDrag", "fakeDragWrapper" functions; removed button input that called "fakeManyDrags"
2017-10-25 21:28:07 +08:00
Rachel Fenichel
bc1550e1b1
Merge pull request #1177 from rachel-fenichel/feature/custom_procedure_playground_2
...
Add buttons to custom procedure playground
2017-10-24 13:07:53 -07:00
Rachel Fenichel
762f6e7ae2
Add default blocks
2017-10-24 12:57:56 -07:00
picklesrus
2996c86c53
Do not refresh the toolbox when a new variable is created on the work… ( #1166 )
...
* Do not refresh the toolbox when a new variable is created on the workspace but it already exists in the variable map. This gets rid of some calls to Toolbox.refreshSelection. e.g. when you drag a variable block out of the toolbox, we were refreshing the toolbox. It will also help with xml loading for workspaces using multiple of the same variable reporter. More needs to be done to solve #879 , but this helps a little.
* Fix typo
2017-10-24 12:40:22 -07:00
Rachel Fenichel
6b1184bc28
Add some buttons
2017-10-23 17:05:01 -07:00
Rachel Fenichel
9c80139eea
Create a playground for working on custom procedure editing.
2017-10-20 17:34:48 -07:00
Rachel Fenichel
36682a4912
Merge pull request #1165 from rachel-fenichel/bugfix/1163
...
Add a serializable attribute to fields.
2017-10-20 16:40:13 -07:00
Rachel Fenichel
3d44202834
Add tests for field serializability.
2017-10-20 15:15:00 -07:00
picklesrus
3b09a53855
Get workspace_svg test to pass in scratch-blocks. It is off in another directory outside of jsunit so it is not run on travis... There are also some js errors reported that should be fixed too. But minor progress at least. ( #1164 )
2017-10-20 15:09:42 -07:00
Paul Kaplan
8263afcba5
Revert "Implement Blockly.Events.filter in linear time ( #1205 )"
...
This reverts commit 910284856e
.
2017-10-20 15:06:48 -04:00
Rachel Fenichel
b4b721df66
Merge pull request #1152 from rachel-fenichel/feature/delete_procedure
...
Feature/delete procedure
2017-10-20 08:32:44 -07:00
Rachel Fenichel
63ab0baf3b
Merge pull request #1158 from rachel-fenichel/bugfix/1127
...
Hack to fix 1127 while we consider strict connection types
2017-10-20 08:31:43 -07:00
Rachel Fenichel
5e3073c441
Hack to fix 1127 while we consider strict connection types
2017-10-19 16:06:12 -07:00
Paul Kaplan
6fced52ef8
Add new test to the vertical and horizontal test runner files
2017-10-19 16:57:54 -04:00
Rachel Fenichel
3d37a8ae9e
Tests for widget div math. ( #1338 )
...
* New widget div functions, used in context menu code
* Make all widget div positioning functions use the same argument order
* Use new widget div functions for fields
* share code for measuring menu size
* Get rid of positionMenu
* Update copyright date
* Rebuild blockly_uncompressed because there's a new require in town
* Test for widget div math
2017-10-19 14:59:02 -04:00
Evan W. Patton
910284856e
Implement Blockly.Events.filter in linear time ( #1205 )
...
* Implement Blockly.Events.filter in linear time
For large App Inventor projects (order 1k+ blocks, 100+ top-level
blocks), the O(n^2) behavior of Blockly.Event.filter was causing
performance issues when rearranging blocks or pasting from the
backpack. This commit provides a linear merge implementation using a
key that uniquely identifies a block so that multiple events targeting
the same block are merged. This change benefits from O(1) amortized
lookup using an object as a key-value store.
* Add event filter unit tests and fix logic bugs
* Update Blockly.Events.filter unit tests
2017-10-19 12:03:51 -04:00
Rachel Fenichel
b64beeb883
Add tests
2017-10-18 17:15:01 -07:00
Rachel Fenichel
b02333edf0
Fix spelling in test
2017-10-18 13:33:40 -07:00
Paul Kaplan
ee477fce57
Merge branch 'run-tests-on-travis' of github.com:paulkaplan/scratch-blocks into run-tests-on-travis
2017-10-18 11:55:53 -04:00
Paul Kaplan
d1ee51ee57
Move scripts folder into tests
2017-10-18 11:55:42 -04:00
Paul Kaplan
a28299d35d
Merge branch 'develop' into run-tests-on-travis
2017-10-18 11:52:16 -04:00
Paul Kaplan
0d7f26bd32
Update closure library and revert test runner change.
...
Closure library being out of date caused the test
runner as written in blockly/develop not to work.
2017-10-18 09:34:33 -04:00
Paul Kaplan
8ec8a29e6a
Fix horizontal tests
2017-10-18 09:26:49 -04:00
Paul Kaplan
660503193f
Get unit tests running on travis
2017-10-18 09:06:33 -04:00
Rachel Fenichel
af6cbd8d13
reorder horizontal tests and add procedure_test.js
2017-10-17 17:02:59 -07:00
Rachel Fenichel
99fa91fb4f
Include procedure tests in vertical_tests.html
2017-10-17 17:01:10 -07:00
Rachel Fenichel
46800eec34
Put tests in order
2017-10-17 17:00:30 -07:00
Rachel Fenichel
66d1383b59
tests for procedure.findCallers
2017-10-17 16:58:41 -07:00
Rachel Fenichel
3834f14d72
Fix vertical_tests.html and remove orphaned test
2017-10-13 16:45:09 -07:00
Rachel Fenichel
a52cd8d3f6
Fix typo that caused a test to fail
2017-10-13 16:43:21 -07:00
Rachel Fenichel
adb81f52dc
Remove test_maxBlocksWorkspace because limiting block numbers is not implemented in scratch-blocks
2017-10-13 16:37:57 -07:00
Rachel Fenichel
a206a46a21
fix test_addTopBlock_TrivialFlyoutIsTrue
2017-10-13 16:36:55 -07:00
Rachel Fenichel
859560f185
Put a test in a try/catch so it doesn't break all subsequent tests
2017-10-13 16:17:13 -07:00
Rachel Fenichel
cde1b9c1d2
Fix test_parent_tooltip_when_inline
2017-10-13 15:39:19 -07:00
Rachel Fenichel
ec7180710f
Fix test_SearchForClosest
2017-10-13 15:34:56 -07:00
Paul Kaplan
78a842fea4
Merge pull request #1021 from marisaleung/develop_addingListsWithVariableTypeChecksMerged
...
Create data_flyout.js and add lists to the flyout.
2017-08-11 08:55:05 -04:00