Commit Graph

182 Commits

Author SHA1 Message Date
Sam El-Husseini 30343c8cf6 Move the theme manager into WorkspaceSvg (#3400) 2019-11-05 10:44:51 -08:00
Sam El-Husseini 91e211e87c Remove tests that have been converted into mocha (#3373)
* Remove tests that have been converted into mocha
2019-10-30 17:36:48 -07:00
Rachel Fenichel 207e0ebe7b Add tests and better validation for block styles 2019-10-30 17:24:03 -07:00
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 d28e897e47 Add a sample renderer instance. (#3136)
* Add a sample renderer instance.
2019-10-02 13:22:54 -07:00
Beka Westberg 1baf7d1dcf Added a bunch of connection related tests. 2019-09-27 15:56:29 -07:00
Neil Fraser 27f554c647 Strip out unused Closure functions (#3121)
No functional changes.
2019-09-27 13:30:53 -07:00
Monica Kozbial f4136fdc2a Adding test and updating TODO. (#3102)
* Adding test and updating TODO.

* changing bug number referenced in TODO
2019-09-27 11:12:37 -07:00
Sam El-Husseini 870824bc3e Workspace theme (#3093)
* Move the theme object so it's on the workspace.

* Add support for subscribing UI elements to theme component styles and changes.
2019-09-26 16:52:17 -07:00
Monica Kozbial e1e9513e86 Disconnect child block always for block.dispose(/* healStack */ true) (#3073)
* Disconnecting child block even if it cannot be connected to parent block.

* Bump disconnected child block.

* Added method for behavior on failed connection and updated expected behavior of unplug in unit tests.

* Removing obsolete TODO and calling new helper method in tests.
2019-09-25 10:47:29 -07:00
Beka Westberg e05e26ab45 Fixed insertFieldAt (#2939)
* Fixed insertFieldAt.
* Updated tests to reflect upcomming config changes.
2019-09-16 11:11:18 -07:00
Neil Fraser 5650fe51a2 Typos. 2019-09-12 18:24:48 -07:00
Sam El-Husseini 09d2a167f9 Fix travis by running browser tests in headless mode (#3001)
* Fix travis by running browser tests in headless mode
2019-09-11 17:25:22 -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
Beka Westberg 16c59d2ffc Added tests and remove jsunit fields test file. 2019-08-16 09:57:27 -07:00
Neil Fraser abc452109e Fix XML across Blockly. (#2727)
Also fixes references to createSvgElement
2019-07-30 15:08:47 -07:00
Sam El-Husseini 57868e7e83 Remove all calls to goog.math (#2739)
* Replace calls to goog.math.Size and goog.math.Coordinate with Blockly equivelants
2019-07-30 11:22:08 -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
alschmiedt dfd393ae41 Remove typo 2019-07-01 16:29:19 -07:00
alschmiedt e75628bf9d Properly tear down tests 2019-07-01 14:46:46 -07:00
Beka Westberg 942c7c2a38 Deleted inaccurate jsunit procedure tests. 2019-06-25 15:08:01 -07:00
Neil Fraser 775ce34eac Simplify workspace.getBlocksBoundingBox
Previously it returned x,y,width,height.  Returning top,bottom,left,right results in simpler code, both in this function and in downstream callers.

This commit makes the minumum change to the metrics_test.  I’m happy to change the test’s data if that makes more sense.
2019-06-07 10:32:57 -07:00
Neil Fraser d1a29739d8 Move utilities into own directory.
TODO: There are more functions which may be migrated into dom and string.
2019-06-07 10:32:57 -07:00
Neil Fraser a18aa76e67 Update colour tests
Blockly now normalizes colours lowercase.
2019-06-05 16:41:04 -07:00
Beka Westberg f0d6fbd192 Reorganized field view initialization. 2019-05-31 10:38:18 -07:00
Neil Fraser 5c614d73c1 Add tests for XY regexs. 2019-05-24 15:45:05 -07:00
Beka Westberg f16c9c0beb Refactored field validation. 2019-05-24 14:23:42 -07:00
Rachel Fenichel da2a89e177 Update to webdriverio v5; fix resulting test breakages 2019-04-30 14:38:33 -07:00
alschmiedt d3f8464876 Fixes test case for unplug 2019-04-02 16:45:43 -07:00
Neil Fraser 8254e2aa22 Failing unit tests no longer show useful info. 2019-03-29 15:24:37 -07:00
alschmiedt c7b748c4d1 Merge pull request #2270 from alschmiedt/changeStyleNames
Changes colour names
2019-02-06 15:35:59 -08:00
alschmiedt 58c365e377 Changes colour names 2019-02-06 14:24:41 -08:00
alschmiedt 99f4f48321 Fix event description for theme 2019-02-05 13:43:54 -08:00
Rachel Fenichel 71e91534e8 Update connection_db_test 2019-02-04 08:59:55 -08:00
alschmiedt caf664db04 Small fixes 2019-01-09 15:38:30 -08:00
alschmiedt f480b1ff79 Changes Blockly style to be Blockly theme. 2019-01-08 11:40:57 -08:00
alschmiedt 1b3955d9d6 Fixing review comments 2018-12-21 07:52:50 -08:00
alschmiedt 8544491228 Small fixes 2018-12-19 09:53:54 -08:00
alschmiedt 692555cf1c Fixes broken set_style test 2018-12-18 13:58:09 -08:00
alschmiedt 4918da9538 Adds ability to provide a hue value for primary colour 2018-12-12 11:39:23 -08:00
alschmiedt fbd44c80f9 Adds tests for adding blockly styles 2018-12-11 13:25:53 -08:00
Rachel Fenichel 6169a6488f Merge pull request #2139 from rachel-fenichel/bugfix/2107
Bugfix/2107
2018-11-27 13:57:10 -08:00
Rachel Fenichel 9ed9dd2f08 Add tests 2018-11-27 13:48:23 -08:00
alschmiedt 76538e67e7 Merge pull request #2133 from alschmiedt/single_code_block
Generate Code For Single Block
2018-11-27 13:38:20 -08:00
alschmiedt d64b6fe9e0 Changes function name 2018-11-27 13:31:32 -08:00
alschmiedt e9773be499 Adds tests for a nested loop and disabled block 2018-11-27 09:32:48 -08:00
alschmiedt 6366d7be24 Tests blockToCode function for all generators 2018-11-21 11:45:25 -08:00