Sam El-Husseini
2ac4149d98
Misc compiler warnings. ( #3172 )
...
* Fix misc compiler warnings. Use ws.getToolbox() instead of ws.toolbox_
2019-10-07 11:06:56 -07:00
Neil Fraser
b46a4fe286
Bring our license format up to date ( #3127 )
...
* Google changed from an Inc to an LLC.
This happened back in 2017 but we didn’t notice. Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.
* Remove project description/titles from licenses
This is no longer part of Google’s header requirements. Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).
* License no longer requires URL.
* Fix license regexps.
2019-10-02 14:46:56 -07:00
Sam El-Husseini
6d2a0ac31b
Remove closure dependency from tests ( #2889 )
...
* Remove goog.testing dependency and use mocha as a test runner instead of goog.testing.jsunit
2019-08-22 11:10:53 -07:00
Rachel Fenichel
4c130aab83
Rename createVarBlock to createMockVarBlock, and pass in the workspace as a parameter
2018-01-29 15:15:32 -08:00
Rachel Fenichel
4cd0b36944
Fix event ordering for variables created from XML implicitly
2017-12-19 14:25:52 -08:00
Rachel Fenichel
6218750207
Fix events for variable fields on new blocks; fix tests
2017-12-19 11:28:23 -08:00
Rachel Fenichel
637a909de7
Tests
2017-12-06 15:56:18 -08:00
Rachel Fenichel
38d134aa4f
Tests
2017-12-06 15:49:20 -08:00
Rachel Fenichel
90e79c6ba9
Remove ws.updateVariableStore and tests, and ws.getVariableUses
2017-12-05 13:52:01 -08:00
Rachel Fenichel
5169b2da18
Get rid of workspace.deleteVariable
2017-12-05 13:44:08 -08:00
Rachel Fenichel
d1c2401fcf
All but XML tests now pass
2017-12-04 14:19:19 -08:00
Rachel Fenichel
b78264a33e
Update tests in workspace_test. Get rid of renameVariable
2017-12-01 16:21:19 -08:00
Rachel Fenichel
b870c3ccb9
Allow variables of different types to share the same name.
2017-11-30 13:16:16 -08:00
Neil Fraser
2445a752b7
Resolve another 20 warnings.
2017-10-24 14:06:29 -07:00
picklesrus
5518873389
Revert "Remove all all instances calling setValue on variable fields with the name instead of the id" ( #1296 )
...
* Revert "Create WorkspaceViewport class (#1291 )"
This reverts commit 6c00d77c9e .
* Revert "Remove all all instances calling setValue with name. (#1254 )"
This reverts commit 8e8b6b27af .
2017-08-28 16:55:44 -07:00
marisaleung
8e8b6b27af
Remove all all instances calling setValue with name. ( #1254 )
2017-08-24 14:34:01 -07:00
marisaleung
d852a2b116
In DropdownCreate check for Msg.DELETE_VARIABLE.
2017-06-09 16:22:25 -07:00
marisaleung
c58553b7ba
Create utility function for checking variable values.
2017-06-09 15:24:31 -07:00
marisaleung
cd0487e816
Clean up and create test utilities file.
2017-06-01 10:36:01 -07:00
marisaleung
a6f85cec53
Appease eslint: semicolons and such.
2017-05-25 13:44:06 -07:00
marisaleung
cd5bb0d888
Changed parameter name in workspace for clarity.
2017-05-18 14:14:17 -07:00
marisaleung
12ea998155
Created separate file for VariableMap
2017-05-03 17:04:15 -07:00
marisaleung
d903b5e86b
VariableMap and functions added.
2017-05-03 10:51:24 -07:00
marisaleung
b159c7c3b5
Create separate file for VariableMap and its functions.
2017-05-02 15:06:12 -07:00
marisaleung
2994805e6a
VariableMap and functions added.
2017-05-02 10:07:46 -07:00
Andrew n marshall
fb0f1b05dd
Unit tests for JSON block definitions (just the start) ( #850 )
...
* Beginnings of a JSON block definition unit test set.
* Dispose of unit test workspaces and blocks in finally blocks.
* Clarify JSON error message by echoing arg notation.
2017-01-20 14:18:33 -08:00
Neil Fraser
99f332f749
Fix getBlockById unit test. Issue #323
2016-04-07 14:35:01 -07:00
Neil Fraser
23251b5187
Create workspace id database.
2015-12-09 10:17:40 +01:00
Neil Fraser
3b3ef79fbd
Create block id database.
2015-12-09 10:02:42 +01:00
Neil Fraser
6acaf35967
Add workspace.newBlock, deprecate Blockly.Block.obtain.
2015-12-07 16:40:45 +01:00
Neil Fraser
3ff69d47fe
Inject can now take an ID. Also, fix unit tests.
2015-04-29 20:26:04 -07:00
Neil Fraser
1c39a638e3
Lint fixes.
2015-01-22 15:58:10 -08:00
Neil Fraser
6cc26f07ac
Adding unit tests for workspace.
2015-01-11 14:18:50 -08:00