konva/test/unit/FastLayer-test.js

24 lines
499 B
JavaScript
Raw Normal View History

suite('FastLayer', function() {
// ======================================================
2014-03-09 10:05:39 +08:00
test('basic render', function() {
var stage = addStage();
var layer = new Kinetic.FastLayer();
var circle = new Kinetic.Circle({
x: 100,
y: stage.getHeight() / 2,
radius: 70,
fill: 'green',
stroke: 'black',
strokeWidth: 4
});
layer.add(circle);
stage.add(layer);
});
});