mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-26 16:02:54 -05:00
14 lines
441 B
JavaScript
14 lines
441 B
JavaScript
|
var test = require('tap').test;
|
||
|
var Clone = require('../../src/sprites/clone');
|
||
|
var Sprite = require('../../src/sprites/sprite');
|
||
|
|
||
|
test('clone effects', function (t) {
|
||
|
// Create two clones and ensure they have different graphic effect objects.
|
||
|
// Regression test for Github issue #224
|
||
|
var spr = new Sprite();
|
||
|
var a = new Clone(spr, null);
|
||
|
var b = new Clone(spr, null);
|
||
|
t.ok(a.effects !== b.effects);
|
||
|
t.end();
|
||
|
});
|