mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-25 21:50:59 -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 {Array.<Target>} targets - the targets to be installed
|
||||||
* @param {ImportedExtensionsInfo} extensions - metadata about extensions used by these targets
|
* @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.
|
* @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) {
|
installTargets (targets, extensions, wholeProject) {
|
||||||
const extensionPromises = [];
|
const extensionPromises = [];
|
||||||
|
@ -250,7 +251,7 @@ class VirtualMachine extends EventEmitter {
|
||||||
|
|
||||||
targets = targets.filter(target => !!target);
|
targets = targets.filter(target => !!target);
|
||||||
|
|
||||||
Promise.all(extensionPromises).then(() => {
|
return Promise.all(extensionPromises).then(() => {
|
||||||
if (wholeProject) {
|
if (wholeProject) {
|
||||||
this.clear();
|
this.clear();
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,6 @@ test('pen', t => {
|
||||||
vm.setCompatibilityMode(false);
|
vm.setCompatibilityMode(false);
|
||||||
vm.setTurboMode(false);
|
vm.setTurboMode(false);
|
||||||
vm.loadProject(project)
|
vm.loadProject(project)
|
||||||
.then(() => vm.extensionManager.loadExtensionURL('pen')) /** @TODO: loadProject should load extensions */
|
|
||||||
.then(() => {
|
.then(() => {
|
||||||
vm.greenFlag();
|
vm.greenFlag();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue