Commit graph

3308 commits

Author SHA1 Message Date
Christopher Willis-Ford
6ad0f3351b Check if storage module is present before using it 2017-03-13 15:06:28 -07:00
Christopher Willis-Ford
e4fd9d57a2 Fix tests involving scratch-storage
- Attach the storage module to the VM for tests which load projects or
  other assets.
- Move `import_sb2.js` from `test/unit/ into `test/integration` since it
  now depends heavily on `scratch-storage`.
- Skip loading costumes when there is no renderer.
2017-03-09 15:50:43 -08:00
Ray Schamp
b03768cad6 Remove filter toolbox utility (#496)
* Revert "Merge pull request #486 from rschamp/fix-filter-tests"

This reverts commit ba00db897f, reversing
changes made to 739c5deb63.

* Revert "Show Categories that use custom code to load (variables, procedures) (#483)"

This reverts commit 739c5deb63.

* Revert "Merge pull request #461 from rschamp/filter-toolbox"

This reverts commit 343b5bfe8e, reversing
changes made to 370f2c6a47.
2017-03-09 16:41:06 -05:00
Christopher Willis-Ford
c23e9c6bf8 Load projects & costumes through scratch-storage
This also sets up the framework to load sounds through scratch-storage,
to be finished in a later change.
2017-03-09 11:25:55 -08:00
Paul Kaplan
2ebb112d30 Merge pull request #495 from paulkaplan/fix-target-id
Add check to make sure `target` exists
2017-03-08 12:13:10 -05:00
Paul Kaplan
8aaadf2fab Add check to make sure target exists 2017-03-08 11:40:02 -05:00
Paul Kaplan
c0aacdc39b Merge pull request #494 from LLK/stop-all-gfx-reset
Stop all gfx reset
2017-03-07 13:56:32 -05:00
Paul Kaplan
fe3799bb48 Add test for gfx reset on stop 2017-03-06 16:15:04 -05:00
Paul Kaplan
5b82096670 Clear gfx on stop all 2017-03-06 15:54:52 -05:00
Moran
d8e1d42bf2 Merge branch 'develop' of https://github.com/LLK/scratch-vm into develop 2017-03-03 15:23:43 -05:00
Ray Schamp
bf2303f6de Merge pull request #490 from rschamp/dnd
Add methods for dragging and dropping sprites
2017-03-03 09:50:34 -05:00
Ray Schamp
d0cd9cd897 Add methods for dragging and dropping sprites
* Add `getTargetIdForDrawableId` to translate between renderer picks and VM targets
* Add `startDrag` to stop sprite motion while dragging
* Add `stopDrag` to return sprite motion after dragging
2017-03-03 09:43:31 -05:00
Ray Schamp
319f27a060 Merge pull request #487 from rschamp/draggability
Add draggable property to sprites
2017-03-02 15:56:12 -05:00
Ray Schamp
11e28111c5 Activate click hats on mouse up to match 2.0 2017-03-02 11:32:10 -05:00
Andrew Sliwinski
a4578ba086 Default bitmapResolution to 1 if not provided in costume metadata (#485)
* Default bitmapResolution to 1 if not provided in costume metadata. Resolves GH-484
2017-03-02 11:21:01 -05:00
Ray Schamp
8dadc42857 Add draggable property to sprites
This property should be managed by the VM so that it can be displayed in the sprite info panel in the GUI.
2017-03-01 18:49:17 -05:00
Andrew Sliwinski
7042bdb45c Merge pull request #472 from griffpatch/bug/escapeFromConditionalBranches
Bug - escapeFromConditionalBranches
2017-03-01 16:42:30 -05:00
Ray Schamp
ba00db897f Merge pull request #486 from rschamp/fix-filter-tests
Update tests to account for custom categories
2017-03-01 13:01:12 -05:00
Ray Schamp
0b2d053177 Update tests to account for custom categories 2017-03-01 12:57:46 -05:00
TheBrokenRail
739c5deb63 Show Categories that use custom code to load (variables, procedures) (#483) 2017-03-01 09:25:11 -05:00
Ray Schamp
343b5bfe8e Merge pull request #461 from rschamp/filter-toolbox
Provide method for filtering toolbox XML
2017-02-27 14:14:11 -05:00
Ray Schamp
6ea9b54539 Add filterToolbox unit tests 2017-02-27 12:58:18 -05:00
Ray Schamp
390b2373e9 Refactor filter methods into util 2017-02-27 12:57:38 -05:00
Ray Schamp
a9b495fced Filter the playground toolbox 2017-02-27 12:57:38 -05:00
Ray Schamp
99e1b24285 Add rudimentary toolbox filtering method 2017-02-27 12:57:38 -05:00
Ray Schamp
370f2c6a47 Merge pull request #459 from griffpatch/feature/FencingAgain
Feature fencing again
2017-02-24 11:27:10 -05:00
Ray Schamp
a03b538fce Merge pull request #476 from rschamp/greenkeeper-pls
Use caret ranges for dev dependencies
2017-02-23 08:33:36 -05:00
Chris Willis-Ford
a56db95aba Merge pull request #446 from magmaboat/hasownproperty
Perform hasOwnProperty validation
2017-02-22 13:55:54 -08:00
Ray Schamp
ed4b0080b6 Use caret ranges for dev dependencies
These packages don't affect the output of the built package, so don't require a specific version. This should quiet Greenkeeper down a bit about our dependencies.
2017-02-20 17:15:50 -05:00
Ray Schamp
6fba4c61e3 Merge pull request #474 from LLK/greenkeeper/expose-loader-0.7.3
chore(package): update expose-loader to version 0.7.3
2017-02-20 16:45:05 -05:00
Ray Schamp
47953ab58f Merge pull request #475 from LLK/greenkeeper/webpack-dev-server-2.4.1
chore(package): update webpack-dev-server to version 2.4.1
2017-02-20 16:44:45 -05:00
Ray Schamp
bee8c8d50d Merge pull request #473 from LLK/greenkeeper/eslint-3.16.0
Update eslint to the latest version 🚀
2017-02-20 16:25:21 -05:00
Ray Schamp
feaec81d9d Merge pull request #469 from LLK/greenkeeper/tap-10.2.0
Update tap to the latest version 🚀
2017-02-20 16:24:35 -05:00
greenkeeper[bot]
867d3c79f5 chore(package): update eslint to version 3.16.0
https://greenkeeper.io/
2017-02-20 16:37:01 +00:00
griffpatch
c5eb8ece16 Handle actual looping cases
And it starts to get a little less elegant :/
Wondering if this should not be handled better in another part of the
codebase?
We don't want to be duplicating existing code stepping functionality
locally at the end of the promise script really... What do you think?
2017-02-20 09:40:32 +00:00
griffpatch
362a231279 bug - escape from conditional branches
Execution bug: can't escape from conditional branches that end with a
Promise-resolution-terminating command block (see #464)
2017-02-20 08:20:21 +00:00
griffpatch
682dec493f Merge remote-tracking branch 'refs/remotes/LLK/develop' into bug/escapeFromConditionalBranches 2017-02-20 08:16:41 +00:00
greenkeeper[bot]
0118a19cd5 chore(package): update webpack-dev-server to version 2.4.1
Closes #470

https://greenkeeper.io/
2017-02-19 22:15:28 +00:00
greenkeeper[bot]
d7bff34a66 chore(package): update tap to version 10.2.0
https://greenkeeper.io/
2017-02-19 01:19:16 +00:00
Andrew Sliwinski
401fd78fd0 Merge pull request #463 from CSnap/sequencerTesting
Adding Sequencer Unit Tests
2017-02-18 10:24:52 -05:00
Andrew Sliwinski
c9f656f79e Merge pull request #465 from LLK/greenkeeper/tap-10.1.2
Update tap to the latest version 🚀
2017-02-18 10:15:27 -05:00
greenkeeper[bot]
9f364b93eb chore(package): update tap to version 10.1.2
https://greenkeeper.io/
2017-02-18 02:13:29 +00:00
Chris Willis-Ford
ddee4186b8 Merge pull request #460 from cwillisf/update-readme-playground
Update playground paths in README.md
2017-02-17 15:25:42 -08:00
Chris Willis-Ford
1671cbe1b0 Merge pull request #457 from cwillisf/fix-cachalot
Match Scratch 2.0 order of execution
2017-02-16 12:59:48 -08:00
SillyInventor
2fc2ee2c4b Adding sequencer unit tests for each function 2017-02-16 14:30:00 -05:00
griffpatch
a141bfb1b9 Fix lint issues 2017-02-16 10:54:17 +00:00
griffpatch
b9ebf92d68 Merge remote-tracking branch 'refs/remotes/LLK/develop' into optimise/reduceGetBlockCalls 2017-02-16 09:57:28 +00:00
Christopher Willis-Ford
af77098161 Update playground paths in README.md
A recent change moved the location of the playground source files and
the URL used to access the playground when running the dev server. This
change updates README.md to reflect the new locations.
2017-02-15 15:31:20 -08:00
griffpatch
7bc141e76e Feature Fencing
This is a re-comit after the previous pull was reverted.
2017-02-15 15:59:54 +00:00
griffpatch
61d1872642 Merge remote-tracking branch 'refs/remotes/LLK/develop' into develop 2017-02-15 15:51:10 +00:00