Commit Graph

2777 Commits

Author SHA1 Message Date
Neil Fraser
3909bd420a Remove all goog.asserts and goog.isXxx
First step to reducing Closure’s footprint.
2018-07-11 12:20:02 -07:00
Andrew n marshall
02dc7b1d1d Fixing JSDoc for the return type of Blockly.WorkspaceComment.parseAttributes (#1966) 2018-07-03 12:07:25 -07:00
Andrew n marshall
cf3f914be8 Moving TODOs out of jsdoc comments. (#1965) 2018-07-03 11:42:40 -07:00
Andrew n marshall
ec4963f4b4 Merge pull request #1961 from rachel-fenichel/master_to_develop_june
Master->develop
2018-07-02 12:35:00 -07:00
Andrew n marshall
1bd135c9a5 Updating NPM package version to 1.20180629.0-develop (#1962) 2018-07-02 12:34:03 -07:00
Neil Fraser
13f7e75ffb Supress empty <variables> tag in XML. 2018-06-29 17:52:26 -07:00
Rachel Fenichel
a89b541de6 Merge branch 'master' into master_to_develop_june 2018-06-29 16:45:05 -07:00
Rachel Fenichel
b88a3bf41a Merge pull request #1944 from google/rc/june_2018
June 2018 release
2018-06-29 16:30:51 -07:00
Rachel Fenichel
a4b2a990d5 Merge pull request #1957 from rachel-fenichel/bugfix/generator_test_loadall
Remove variable IDs from colour test XML
2018-06-29 11:00:58 -07:00
Rachel Fenichel
999f8a114d Remove variable IDs from colour test XML 2018-06-29 10:47:03 -07:00
translatewiki.net
b4e5463195 Localisation updates from https://translatewiki.net. 2018-06-28 07:18:22 +02:00
Rachel Fenichel
b141dbd3f5 Merge pull request #1950 from rachel-fenichel/bugfix/adjusted_colours
Fix colour generator tests
2018-06-27 14:48:31 -07:00
Rachel Fenichel
28eb831754 Better error messages in colour generator tests 2018-06-27 14:41:53 -07:00
Rachel Fenichel
83855248a6 Correctly adjust indices in colour tests 2018-06-27 14:32:40 -07:00
Andrew n marshall
eafc3cd099 Adding appropriate test values to number field test blocks (#1943) 2018-06-26 18:19:01 -07:00
Rachel Fenichel
d4a4b79dd5 Merge pull request #1940 from rachel-fenichel/master_to_develop_again
Merge master to develop to make git history happy
2018-06-26 13:36:37 -07:00
Rachel Fenichel
3d7a0eb7e1 Merge branch 'master' into master_to_develop_again 2018-06-26 13:30:14 -07:00
Rachel Fenichel
29d804de34 Merge pull request #1937 from rachel-fenichel/rebuild
Rebuild on develop before cutting a release
2018-06-26 12:53:50 -07:00
Rachel Fenichel
5ffa9122c8 Rebuild 2018-06-26 12:48:24 -07:00
Andrew n marshall
51253f9787 Updating npm dependencies. (#1936) 2018-06-26 12:32:49 -07:00
Andrew n marshall
02ea01c234 Revert changes to i18n/js_to_json.py from 4cb4b42 (#1935) 2018-06-25 17:34:55 -07:00
Rachel Fenichel
d92e464c20 Merge pull request #1933 from AnmAtAnm/fix-blockfactory-define-code
Revert breaking changes to BlockFactory
2018-06-25 18:47:13 -04:00
Rachel Fenichel
caac6b8324 Merge pull request #1932 from rachel-fenichel/lint/infix_curly
Add curly and space-infix-ops rules
2018-06-25 17:12:44 -04:00
Andrew n marshall
2747396cd3 Fixes to handling <pre> text content. 2018-06-25 13:20:10 -07:00
Rachel Fenichel
5b1e249adc Fix lint 2018-06-25 12:12:24 -07:00
Rachel Fenichel
4e2b2b97c3 Add curly and space-infix-ops rules 2018-06-25 12:09:55 -07:00
translatewiki.net
74fda799f5 Localisation updates from https://translatewiki.net. 2018-06-25 08:09:48 +02:00
Rachel Fenichel
787baf7bdd Merge pull request #1930 from jollytoad/fix-duplicate-var
Fix case of redeclared var (i) in Blockly.Block.prototype.jsonInit
2018-06-19 04:55:10 -07:00
Mark Gibson
709d31b729 Fix case of duplicate var (i) 2018-06-19 11:00:24 +01:00
Andrew n marshall
100d9f1a1c Support %{..} in flyout_button (#1927) (#1929)
Expand %{..} references in toolbox <button> and <label>
2018-06-18 11:45:36 -07:00
translatewiki.net
f7e62262cc Localisation updates from https://translatewiki.net. 2018-06-18 07:53:03 +02:00
Andrew n marshall
b4cfe263fa Removing (most) Closure from BlockFactory (#1925)
Replacing all Closure goog. library calls from BlockFactory, with the exception of the ColorPicker and the test for the warning about running without Closure. This includes (almost) all goog.provide and goog.require statements.
2018-06-15 15:29:41 -07:00
Andrew n marshall
a87dcc66fb Rebuilding _compressed.js files. (#1920)
This captures changes to core/xml.js that are required by
Node, since the gulpfile builds from the compressed files.
2018-06-13 10:48:21 -07:00
Andrew n marshall
83d8559de7 Clarifying the description of the generators demo. (#1919)
Adding a link back to the "Running JavaScript" page.
2018-06-12 14:29:33 -07:00
Neil Fraser
05fcdc3510 Remove goog.Timer 2018-06-12 14:06:10 -07:00
Andrew n marshall
7886d24130 Fixing xml.js: Always throw XML I/O errors; Support parsing in Node (#1911)
* Improved Blockly.XML comments.
 * Support JSDOM as an alternate parser under Node.js
 * Throw standard errors instead of goog.asserts.
 * Adding textToDomDocument_ and override in gulpfile.
2018-06-12 14:03:10 -07:00
Rachel Fenichel
0c1de911a4 Merge pull request #1910 from rachel-fenichel/tests/move_utils
Move a test function into utils
2018-06-07 17:14:42 -07:00
Rachel Fenichel
3c6a29c705 Move a test function into utils 2018-06-07 16:58:58 -07:00
Rachel Fenichel
d5795b8828 Merge pull request #1908 from google/rachel-fenichel-patch-1
Update chromedriver version
2018-06-07 12:05:59 -07:00
Rachel Fenichel
55dca1eed5 Update chromedriver version
See https://github.com/LLK/scratch-blocks/pull/1568
2018-06-07 11:25:42 -07:00
Rachel Fenichel
b63021079b Merge pull request #1907 from rachel-fenichel/tests/headless_comment
Add some workspace comment tests
2018-06-07 10:05:44 -07:00
Rachel Fenichel
7b29ea9bf3 Add some workspace comment tests 2018-06-06 17:12:23 -07:00
Andrew n marshall
2c84161b4a Correct require goog.Timer statements. (#1906) 2018-06-06 15:57:53 -07:00
Rachel Fenichel
2f67cc235e Merge pull request #1904 from rachel-fenichel/bugfix/1804
Remove custom touch handling code for dropdown fields
2018-06-06 15:30:35 -07:00
Rachel Fenichel
bae346963f Remove custom touch handling code for dropdown fields 2018-06-06 12:34:28 -07:00
Andrew n marshall
dc081e3677 Fixed typo (#1899)
Correct name in FieldButton member reference.
2018-06-06 10:42:19 -07:00
Andrew n marshall
e9aae34388 Adaptive popup size for FieldDropdowns (#1897)
Replace the fixed dropdown height with one responsive to the document's viewport.

This is adapted from Bohdan-Tereta's proposed solution:
https://github.com/google/blockly/pull/1483#issuecomment-381638639

It is sub-optimal, in that is does not adapt to field height (variable
due to workspace zoom), and it does not fully utilize the space above
or below the field if the block is near the top or the bottom.
2018-05-31 16:37:09 -07:00
Andrew n marshall
15817e78a1 Fix case where lack of colour attribute results in null. (#1894)
Fixes regression in #1893. Patch on change in #1831.
Verify typeof colour variable before passing through Number().
Missing attributes return null, and Number(null) === 0, resulting in a red hues category color.
2018-05-31 12:31:18 -07:00
Rachel Fenichel
5159de83cf Merge pull request #1892 from rachel-fenichel/bugfix/merge_too_many_events
Make event filtering stricter for move events
2018-05-25 10:40:09 -07:00
Rachel Fenichel
1f9c0d0e95 Add a comment with some context on this test. 2018-05-25 10:38:55 -07:00