Neil Fraser
abc452109e
Fix XML across Blockly. ( #2727 )
...
Also fixes references to createSvgElement
2019-07-30 15:08:47 -07:00
Neil Fraser
31a9c02362
Stop generating dynamic XML from text.
...
Removes last goog.string reference.
2019-07-15 14:37:27 -07:00
Neil Fraser
829dcc207c
Make type and variabletype attributes optional
...
If a variable doesn’t have a type, then don’t add these empty attributes in the XML.
2019-07-15 14:37:27 -07:00
Neil Fraser
52b6ce18a5
Fix unit tests
2019-07-08 13:29:43 -07:00
Neil Fraser
8d70598b6b
Recompile due to changed dependencies.
2018-10-16 11:34:10 -07:00
Rachel Fenichel
23666664fa
Fix context menus on blocks with variables
2018-04-12 16:56:07 -07:00
Rachel Fenichel
6218750207
Fix events for variable fields on new blocks; fix tests
2017-12-19 11:28:23 -08:00
Rachel Fenichel
6bb048d1bb
All tests pass
2017-12-04 14:29:16 -08:00
Rachel Fenichel
d1c2401fcf
All but XML tests now pass
2017-12-04 14:19:19 -08:00
Rachel Fenichel
b870c3ccb9
Allow variables of different types to share the same name.
2017-11-30 13:16:16 -08:00
Rachel Fenichel
66586bf622
Add a test for case-sensitivity in the variable names, ids, etc. in the flyout
2017-11-03 16:03:32 -07:00
Rachel Fenichel
30716fbd78
switch to variabletype everywhere
2017-11-03 16:03:32 -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
733d869f8e
Add VariableType checks.
2017-07-20 16:47:37 -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
dc06872a37
Deserialization variables at top.
2017-05-24 15:29:46 -07:00
marisaleung
ce4a84b3cf
Include variables at top of serialization.
2017-05-24 10:53:44 -07:00
marisaleung
1cd8e1fcc1
Add type, id, and info to the generated xml.
...
Add xml tests for fieldToDom.
Update workspace tests to pass with new changes.
2017-05-19 15:47:39 -07:00
Andrew n marshall
6313b202f7
unction to function corrects #962 ( #970 )
2017-03-08 07:47:48 -08:00
Andrew n marshall
6e1ffe09c2
Adding Blockly.Xml.appendDomToWorkspace() ( #962 )
...
This is a copy (with additional comments) of PR #822 (and also #961 ) by @qnoirhomme with unrelated files removed. See #822 for full review.
2017-03-03 08:40:00 -08: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
Rodrigo Queiro
ef55c29d52
Add a test for domToWorkspace
...
This would have caught a recent
[Scratch Blocks regression](https://github.com/LLK/scratch-blocks/pull/557 )
where domToWorkspace failed unless given a WorkspaceSvg instance.
2016-08-09 15:50:34 +02:00
Neil Fraser
510d96276e
Improve a couple of XML literal strings.
2015-09-24 15:20:31 -07:00
Neil Fraser
1c39a638e3
Lint fixes.
2015-01-22 15:58:10 -08:00
Neil Fraser
1467f746f6
Add XML unit tests.
2014-11-25 15:57:31 -08:00