mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-13 22:11:14 -04:00
Pen integration test: don't pre-load pen extension
This commit is contained in:
parent
c88a8fa55a
commit
51dcfb954d
2 changed files with 2 additions and 2 deletions
|
@ -238,6 +238,7 @@ class VirtualMachine extends EventEmitter {
|
|||
* @param {Array.<Target>} targets - the targets to be installed
|
||||
* @param {ImportedExtensionsInfo} extensions - metadata about extensions used by these targets
|
||||
* @param {boolean} wholeProject - set to true if installing a whole project, as opposed to a single sprite.
|
||||
* @returns {Promise} resolved once targets have been installed
|
||||
*/
|
||||
installTargets (targets, extensions, wholeProject) {
|
||||
const extensionPromises = [];
|
||||
|
@ -250,7 +251,7 @@ class VirtualMachine extends EventEmitter {
|
|||
|
||||
targets = targets.filter(target => !!target);
|
||||
|
||||
Promise.all(extensionPromises).then(() => {
|
||||
return Promise.all(extensionPromises).then(() => {
|
||||
if (wholeProject) {
|
||||
this.clear();
|
||||
}
|
||||
|
|
|
@ -48,7 +48,6 @@ test('pen', t => {
|
|||
vm.setCompatibilityMode(false);
|
||||
vm.setTurboMode(false);
|
||||
vm.loadProject(project)
|
||||
.then(() => vm.extensionManager.loadExtensionURL('pen')) /** @TODO: loadProject should load extensions */
|
||||
.then(() => {
|
||||
vm.greenFlag();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue