SillyInventor
2fc2ee2c4b
Adding sequencer unit tests for each function
2017-02-16 14:30:00 -05:00
Christopher Willis-Ford
3b3daf8aca
Add hat execution order test
2017-02-14 16:33:42 -08:00
SillyInventor
e8949dcdf5
Added remaining tests
2017-02-10 13:06:39 -05:00
SillyInventor
3324f51193
Added some unit tests for some thread functions
2017-02-09 18:18:53 -05:00
griffpatch
9cb595312e
Implement "Stop this script" function
...
Existing implementation incorrectly terminates the entire thread.
See: http://llk.github.io/scratch-vm/#144142535
2017-02-08 09:44:10 +00:00
morant
e16f2924a3
Merge branch 'develop' of https://github.com/LLK/scratch-vm into develop
2017-02-07 09:53:17 -05:00
Andrew Sliwinski
92ff57de7d
Add basic test coverage for the sound blocks
2017-02-03 17:39:36 -05:00
SillyInventor
1ac89f5aa4
Added new util function that sends tan function infinities correctly
...
Changed mathop to call new math util
Changed sin & cos to round correctly (to get 0)
Added testing for the new math util function
Added testing for the new mathop functions
2017-01-31 19:05:54 -05:00
morant
c6c1a63ff0
Merge branch 'feature/194' of https://github.com/morantsur/scratch-vm into develop
...
+ Solve code conflicts, and handle deserialization of 3.0 projects.
# Conflicts:
# src/index.js
# test/unit/serialization_sb2.js
2017-01-27 20:05:54 -05:00
griffpatch
0dcaa46107
Fix lint issues
...
Had to update the test scripts to handle the alpha channel, also I note
that all the hex tests are using CSS notation, not scratch notation
(which is 0x not #)
2017-01-27 17:05:17 +00:00
Christopher Willis-Ford
f8088be127
Undo accidental harmless but unnecessary change
2017-01-20 11:37:54 -08:00
Christopher Willis-Ford
88cc50aa18
Code review: more docs, move constants, clone util
...
Changes include:
- Added missing JSDoc for items in `scratch3_pen.js` and `target.js`.
- Moved constants used by `Scratch3PenBlocks` into the class.
- Created a constant for minimum and maximum pen size.
- Added `util/clone.js` to host cloning functionality.
- Pen blocks now check for the renderer before trying to use it.
- The pen integration test covers all blocks, though `clear`, `stamp`,
and `pen down` will skip some of their functionality when there is no
renderer.
2017-01-20 11:26:18 -08:00
Christopher Willis-Ford
72f17d6dc4
Add pen integration test
...
See `pen.sb2` for details
2017-01-19 15:58:00 -08:00
Christopher Willis-Ford
d0845728ee
Add unit tests for new color-related functionality
...
Also, fix a math error in `Color.rgbToHsv`.
Newly covered functions:
- `toRbgColorObject` from `util/cast.js`
- `hsvToRgb` from `util/colors.js`
- `rgbToHsv` from `util/colors.js`
- `mixRgb` from `util/colors.js`
2017-01-19 15:24:45 -08:00
Andrew Sliwinski
6ee8959100
Improve integration test coverage
2017-01-05 16:58:31 -05:00
Andrew Sliwinski
6d83931341
WIP clean-up
2016-12-30 10:19:58 -05:00
Andrew Sliwinski
7d5820585b
Resolve lint issues
2016-12-23 21:31:00 -05:00
Andrew Sliwinski
dfc6614a5b
Build out integration test SB2 files
2016-12-23 21:08:13 -05:00
Andrew Sliwinski
b8af7c0723
Add minimal integration tests
2016-12-23 14:09:35 -05:00
Andrew Sliwinski
4709cae4b7
Basic integration (end-to-end) testing for default project
2016-12-23 10:39:19 -05:00
Tim Mickel
2f0ce7137c
Rename Clone -> RenderedTarget ( #317 )
2016-10-26 11:19:43 -04:00
Andrew Sliwinski
1b4a1ca1bc
Resolve merge conflicts
2016-10-24 15:53:42 -04:00
Andrew Sliwinski
153df22918
Address feedback from PR review
2016-10-24 15:16:06 -04:00
Andrew Sliwinski
5b73ffa66c
Add minimal test coverage for control blocks
2016-10-24 14:38:24 -04:00
Andrew Sliwinski
8b87b36ed3
Resolve race condition with the clock tests
2016-10-24 12:03:43 -04:00
Andrew Sliwinski
336bc65e2d
Add minimal test coverage and docs for mouse module
2016-10-24 11:56:52 -04:00
Ray Schamp
7712b2902f
Fix quote-props
2016-10-24 11:02:19 -04:00
Ray Schamp
0e909cb9a5
Fix comma-spacing
2016-10-24 10:57:52 -04:00
Ray Schamp
f6c0064235
All linting other than console statements
2016-10-23 22:20:29 -04:00
Ray Schamp
68ed110b49
Pass with eslint --fix
...
Resolved whitespace issues, e.g., space-before-function-paren and key-spacing
2016-10-23 12:41:45 -04:00
Andrew Sliwinski
faf8a898a0
Add minimal test coverage and docs for keyboard module.
2016-10-21 18:31:07 -04:00
Andrew Sliwinski
7e9745ce3f
Add basic test coverage for clock module.
2016-10-21 12:42:32 -04:00
Andrew Sliwinski
1615c47d80
Merge pull request #279 from thisandagain/bugfix/229
...
Fix `degToRad` function definition
2016-10-17 11:56:48 -04:00
Andrew Sliwinski
9cd4d96101
Add test coverage for SB2 importer ( #278 )
2016-10-17 11:55:21 -04:00
Andrew Sliwinski
ace9a96fc2
Fix degToRad function definition. Resolves GH-229
2016-10-17 11:52:02 -04:00
Andrew Sliwinski
157b6152f5
Address feedback from PR review. GH-103
2016-10-04 14:37:39 -04:00
Andrew Sliwinski
953c892aab
Add unit test coverage for operator blocks. Resolves GH-103
2016-10-03 21:43:31 -04:00
Andrew Sliwinski
4205d05cdb
Address feedback from PR review. GH-103
2016-10-03 18:23:43 -04:00
Andrew Sliwinski
8ca6944292
Add unit tests for all utility modules. Re GH-103
2016-10-03 16:34:57 -04:00
Tim Mickel
5728d648b1
Ensure clone.effects is defined on each instance ( #225 )
...
* Ensure clone.effects is defined on each instance
* Add regression test for GH-224
2016-10-03 10:16:43 -04:00
Tim Mickel
14feb64005
Create a new input if one doesn't exist ( #148 )
...
* Create a new input if one doesn't exist
* Add regression tests for move-into-empty and obscuring shadows via move
2016-09-08 09:40:01 -04:00
Tim Mickel
9a8b68643a
Shadow improvements ( #135 )
...
* Always add `next` to block representation
* Add `shadow` property to inputs, to maintain obscured shadows
* Create obscured shadows in SB2 import
* Add XML import of obscured shadows
* Alias SB2 shadow inputs to block inputs
* Add shadow to inputs on "delete inputs" test
* Add a small test to ensure obscured shadows are preserved
* Add more obscured shadow tests
2016-09-06 10:55:52 -04:00
Tim Mickel
020250e258
Test: take out old blockListener check
2016-08-31 13:57:54 -04:00
Tim Mickel
4faaf1b685
Rename stacks
to scripts
...
Further pushing toward removing ambiguity of what "stack" means in the codebase.
2016-08-11 11:11:27 -04:00
Tim Mickel
7780b25c46
Project wide rename substack -> branch
2016-08-10 11:43:49 -04:00
Tim Mickel
9f89caa0e6
Add regression test for adapter's empty field handling
2016-06-14 18:14:15 -04:00
Tim Mickel
2339c5e710
Additional tests for invalid adapter
inputs
2016-06-07 12:01:47 -04:00
Tim Mickel
e9accca107
Add test for blocks.js changeBlock
2016-06-07 11:40:47 -04:00
Tim Mickel
6e087475f6
Tests for blocks.js getters
2016-06-07 11:34:01 -04:00
Tim Mickel
8421308782
Add delete test for blocks with inputs/statements
2016-06-07 11:18:41 -04:00
Tim Mickel
855caab8d2
Add blocks delete chain test
2016-06-07 11:11:20 -04:00
Tim Mickel
06eaee9108
Additional adapter tests for new cases
2016-06-07 11:04:44 -04:00
Tim Mickel
4eb63cf33e
Test for CREATE event with substack
2016-06-07 10:49:12 -04:00
Tim Mickel
53372c5704
Fixing case problem with blocks.js tests
2016-06-06 16:17:12 -04:00
Tim Mickel
7732409102
Update unit tests for new adapter, blocks module
2016-06-06 15:59:21 -04:00
Tim Mickel
feea7a0566
Update CREATE event fixture to have outerHTML
2016-06-06 15:59:07 -04:00
Tim Mickel
1bda89ffbb
Updating timer test for timeElapsed
...
This is a better name for it and now the value isn't negative...
2016-04-26 17:03:22 -04:00
Andrew Sliwinski
f1375ef44f
Delete unused primitives stub
2016-04-26 12:05:38 -04:00
Andrew Sliwinski
389d112729
All tests passing
2016-04-26 09:54:14 -04:00
Andrew Sliwinski
981b85e78f
AST create / change / move / delete from blockly
2016-04-26 09:49:52 -04:00
Andrew Sliwinski
f9f47ed103
WIP
2016-04-18 17:20:30 -04:00
Andrew Sliwinski
655556273a
Initial commit
2016-04-08 13:10:37 -04:00