Commit Graph

1876 Commits

Author SHA1 Message Date
Rachel Fenichel
db26c4c541 use goog.string.startswith instead of string.startswith (#1065) 2017-04-25 14:12:21 -07:00
Rachel Fenichel
74adf30355 Merge master into develop (#1063)
- pick up translation changes
- clean up trailing spaces
2017-04-24 16:08:21 -07:00
picklesrus
28572dadac Rebuild blockly_uncompressed to pick up a testing change to make travis happy. Fix a build warning from a multi-line string in the process. (#1059) 2017-04-21 16:20:13 -07:00
picklesrus
52f76013b5 Change how blockly handles cursors. The old way was quite slow becau… (#1057)
* Change how blockly handles cursors.  The old way was quite slow because it changed the stylesheet directly.  See issue #981 for more details on implementation and tradeoffs.  This changes makes the following high level changes: deprecate Blockly.Css.setCursor, use built in open and closed hand cursor instead of custom .cur files, add css to draggable objects to set the open and closed hand cursors.
2017-04-21 14:57:54 -07:00
marisaleung
54178c65ae Merge pull request #1055 from marisaleung/develop
Create a variable model with name, id, and type.
2017-04-20 13:31:22 -07:00
marisaleung
9577e5ddc4 Created a variable model with name, id, and type.
Created a jsunit test file for variable model.
2017-04-20 13:19:53 -07:00
Andrew n marshall
1c45724e37 Correcting #1054 (#1056)
single quotes. better logic.
2017-04-19 14:38:22 -07:00
Andrew n marshall
25788a016e Enforcing non-empty names on value inputs and statement inputs. (#1054) 2017-04-19 11:03:16 -07:00
marisaleung
2588ff8353 Merge pull request #1049 from marisaleung/develop
bumpNeighbours_ function moved to block_svg.
2017-04-19 10:25:18 -07:00
appr
25555b5c20 Fix French translation of "colour with rgb" block (#1053)
"colorier", which is currently used, is a verb and proposed "couleur" is
a noun: the block in question does not change colour of anything, it
creates new colour instead, thus noun is more applicable.

Also, noun is used in French translation of "random colour" block:
"couleur aléatoire".
2017-04-19 06:17:50 -07:00
Carlos
b1aadd109b Update RegEx in js-to-json to match windowi eol (#1050)
The current regex only works with the "\n" line endings as it expects no characters after the optional ";" at the end of the line. In windows, if it adds the "\r" it counts as a characters and is not part of the line terminator so it doesn't match.
2017-04-18 13:54:12 -07:00
marisaleung
21bf339e5d bumpNeighbours_ function moved to block_svg.
Fixed #1009
2017-04-17 15:22:53 -07:00
marisaleung
bae3493980 Merge pull request #1044 from marisaleung/develop
field_angle renders degree symbol consistently.
2017-04-17 09:59:21 -07:00
marisaleung
bc1ca547a4 field_angle renders degree symbol consistently.
Fixes #973
2017-04-14 12:17:09 -07:00
shirletan
23e5728ff4 use pretest instead of preinstall in package.json (#1043)
* cherry pick for pretest fix

* put pretest target to test_setup.sh

* fix conflict

* cherry pick for get_chromedriver.sh

* add some sleep to wait download to finish

* use node.js stable

* use npm test target
2017-04-13 15:23:48 -07:00
marisaleung
606adccf38 Merge pull request #1039 from marisaleung/develop
Ensure useDragSurface is a boolean.
2017-04-11 15:42:53 -07:00
marisaleung
e4edc3899a Ensure useDragSurface is a boolean.
Fixed #988
2017-04-11 15:33:51 -07:00
marisaleung
50831a953a Merge pull request #1038 from marisaleung/develop
Renames Blockly.workspaceDragSurface to Blockly.WorkspaceDragSurface.
2017-04-11 15:30:43 -07:00
marisaleung
f19b2c87aa Renames Blockly.workspaceDragSurface to Blockly.WorkspaceDragSurface.
Fixes #880.
2017-04-11 14:01:25 -07:00
RoboErikG
a8da16036e Enable google/blockly with continuous build on travis ci (#1023) (#1035)
* create .travis for ci job

* initial checkin for blocky-web travis ci job

* rename file to .travis.yaml for typo

* remove after_script

* added cache

* rename .travis.yaml to .travis.yml

* Update .travis.yml

* include build script

* fix yaml file format issue

* debug install part

* debug build issue

* Update .travis.yml

* remove cache for now

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* more debug info

* Update .travis.yml

* Update .travis.yml

* fix typo

* installing chrome browser

* remove chrome setting config

* run build.py as part of npm install

* Update .travis.yml

* update karma dependency

* use karma as test runner

* fix typo

* remove karma test for now

* Update .travis.yml

* Update package.json

* add npm test target

* add browserstack-runner depdendency

* update browser support

* fix typo for test target

* fix chrome typo

* added closure dependency

* add google-closure-library

* include blockly_uncompressed.js and core.js dependency

* uncomment out core/*.js files

* add kama job as part of install

* remove browserstack add on for now

* fix karma config typo

* add karma-closure

* add os support

* remove typo config

* include more closure files

* change os back to linux

* use closure-library from node_modules

* change log level back to INFO

* change npm test target to use open browser command instead of karma

* change travis test target to use open command instead of karma

* list current directory

* find what's in current dir

* typo command

* Update .travis.yml

* typo again

* open right index.html

* use right path for index.html

* xdg-open to open default browser on travis

* exit browser after 5s wait

* change timeout to 1 min

* exit after opening up browser

* use browser only

* use karma

* remove un-needed dependency

* clean up script section

* fix typo

* update build status on readme

* initial commit for selenium integration tests

* update selenium jar path

* fix test_runner.js typo

* add more debug info

* check java version

* add && instead of 9288

* fix java path

* add logic to check if selenium is running or not

* add some deugging info

* initial commit to get chromedriver

* add chromedriver flag

* add get_chromedriver.sh to package.json and .travel

* change browser to chrome for now

* fix path issue

* update chromdriver path

* fix path issue again

* more debugging

* add debug msg

* fix typo

* minor fix for getting chromedriver

* install latest chrome browser

* clean up pakcage.json

* use npm target for test run

* remove removing trailing comma

* fix another trailing comma

* updated travis test target

* clean up scripts

* not sure nmp run preinstall

* redirect selenium log to tmp file

* revert writing console log to file

* update test summary

* more clean up

* minor clean up before pull request

* resolved closure-library conflict

1. add closure-library to dependencies instead of devDependencies.
2. add lint back in scripts block

* fix typo (adding comma) in script section
2017-04-11 13:38:11 -07:00
Andrew n marshall
a21d04b804 Making text_count use a text color (like text_length, which also returns a number). (#1027) 2017-04-10 16:26:30 -07:00
vicng
ae2aaa2159 - Allows use of Blockly's messaging format for category name, colour,… (#1028)
...in toolbox XML.
- Updated code editor demo to use this message format
- Re-built blockly_compressed.js
2017-04-07 15:32:50 -07:00
vicng
dfc50ba843 - Changed error message referencing 'procedure' instead of 'function' (#1019)
- Added iOS specific UI messages
- Fixed bug with js_to_json.py script where it didn't recognize ' character
2017-04-06 12:41:09 -07:00
CoryDCode
33355415df Adding the common modal class. (#1017)
Centralizes accessible modal behavior.
2017-04-05 16:06:45 -07:00
Rachel Fenichel
4b44635867 Merge pull request #1025 from rachel-fenichel/cleanup/misc
Miscellaneous comment cleanup
2017-04-05 16:06:25 -07:00
Rachel Fenichel
f2f522d77a Miscellaneous comment cleanup 2017-04-05 15:52:49 -07:00
Rachel Fenichel
352719235d Merge pull request #1018 from rachel-fenichel/bugfix/block_context_menu
Block browser context menu in the toolbox and flyout
2017-04-05 10:42:27 -07:00
RoboErikG
ba37894b51 Merge pull request #1021 from google/RoboErikG-readme-dev
Add links to the dev registration form and contributor guidelines
2017-04-04 16:47:39 -07:00
RoboErikG
eea01e3e06 Add links to the dev registration form and contributor guidelines 2017-04-04 16:40:40 -07:00
Rachel Fenichel
077547ec90 Block browser context menu in the toolbox and flyout 2017-04-04 14:36:01 -07:00
CoryDCode
8e199ec04b Adding an add variable modal to accessible Blockly. (#1015)
* Adding the remove variable modal and functionality to accessible Blockly.

* Adding the add variable modal for accessible Blockly.
2017-04-03 16:16:50 -07:00
Rachel Fenichel
1ad3359730 Merge pull request #965 from K-ran/feature/minimap
Adding new minimap demo.
2017-04-03 11:30:49 -07:00
Karan Purohit
619237c05d Minimap position bug fix for browsers other than chrome. Added touch support. 2017-04-02 13:31:46 +05:30
CoryDCode
537bf17b7d Adding the remove variable modal and functionality to accessible Blockly. (#1011) 2017-03-30 11:31:31 -07:00
Katelyn Mann
3ed3f5ba84 Merge branch 'master' into develop 2017-03-28 12:42:57 -07:00
Rachel Fenichel
b25ab029e4 Merge pull request #1005 from rachel-fenichel/bugfix/IE10_offsets
RemoveAttribute doesn't work on SVG elements in IE 10.  Use setAttrib…
2017-03-28 09:06:23 -07:00
Rachel Fenichel
92f3880008 RemoveAttribute doesn't work on SVG elements in IE 10. Use setAttribute to null instead. 2017-03-27 17:25:41 -07:00
Niklas Laxström
65371a69cf Localisation updates from https://translatewiki.net. 2017-03-27 08:11:50 +02:00
CoryDCode
b0856b879d Fixing commenting from the last commit. (#1000) 2017-03-23 14:49:05 -07:00
CoryDCode
6cc6848961 Added the variable modal and component and implemented basic renaming functionality. (#991) 2017-03-23 13:47:26 -07:00
Katelyn Mann
06ebf52dd1 Merge branch 'develop' 2017-03-23 11:35:11 -07:00
picklesrus
bfe23ea1b3 rebuild develop (#996) 2017-03-23 11:33:25 -07:00
picklesrus
36fa5f6016 Fix #986. Looks like the original PR just forgot this block. (#992) 2017-03-23 10:20:42 -07:00
Katelyn Mann
23f645dfc7 Merge remote-tracking branch 'origin/develop' into develop 2017-03-22 14:24:28 -07:00
Rachel Fenichel
815fd6fd79 Merge pull request #982 from rachel-fenichel/bugfix/IE_text_rendering
Bugfix/ie text rendering
2017-03-22 10:14:21 -07:00
Katelyn Mann
9e4ed972b0 update from master + build 2017-03-22 10:05:20 -07:00
Niklas Laxström
aba79e2735 Localisation updates from https://translatewiki.net. 2017-03-20 07:21:00 +01:00
Rachel Fenichel
85b4f5f1a8 Fix #969 2017-03-17 16:25:45 -07:00
picklesrus
fd7d8b1ac8 Fix #967 by overriding the updateWidth method in FieldImage blocks to be a no-op. FieldImage fields should not change size after the width is set in init. The updateWidth and, therefore, getCachedWidth is now being called by BlockSvg renderFields_ (see commit d55d9cbd9f). IIUC, updateWidth/getCachedWidth was only called from render before which is overridden in FieldImage to be a no-op already. (#979) 2017-03-17 16:15:40 -07:00
Niklas Laxström
33fce3f62f Localisation updates from https://translatewiki.net. 2017-03-16 07:59:13 +01:00