mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
updated unit tests
This commit is contained in:
parent
fcd4b345fc
commit
f1bc2fe4e8
File diff suppressed because one or more lines are too long
@ -1008,6 +1008,8 @@ Test.prototype.tests = {
|
|||||||
layer.draw();
|
layer.draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//console.log(layer.toDataURL());
|
||||||
|
|
||||||
stage.toDataURL({
|
stage.toDataURL({
|
||||||
callback: function(dataUrl) {
|
callback: function(dataUrl) {
|
||||||
warn(dataUrls['stacked green circles'] === dataUrl, 'stacked green circles stage data url is incorrect');
|
warn(dataUrls['stacked green circles'] === dataUrl, 'stacked green circles stage data url is incorrect');
|
||||||
@ -1879,8 +1881,12 @@ Test.prototype.tests = {
|
|||||||
|
|
||||||
layer.add(cachedShape);
|
layer.add(cachedShape);
|
||||||
|
|
||||||
|
|
||||||
|
//console.log(layer.toDataURL());
|
||||||
|
|
||||||
cachedShape.createImageBuffer(function() {
|
cachedShape.createImageBuffer(function() {
|
||||||
layer.draw();
|
layer.draw();
|
||||||
|
//console.log(layer.toDataURL());
|
||||||
warn(dataUrls['regular and cahced polygon'] === layer.toDataURL(), 'regular and cached polygon layer data url is incorrect');
|
warn(dataUrls['regular and cahced polygon'] === layer.toDataURL(), 'regular and cached polygon layer data url is incorrect');
|
||||||
|
|
||||||
//document.body.appendChild(layer.bufferCanvas.element)
|
//document.body.appendChild(layer.bufferCanvas.element)
|
||||||
@ -4631,7 +4637,9 @@ Test.prototype.tests = {
|
|||||||
height: 200
|
height: 200
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(stage.getStage());
|
test (stage.getStage() !== undefined, 'stage is undefined');
|
||||||
|
|
||||||
|
//console.log(stage.getStage());
|
||||||
},
|
},
|
||||||
'LAYERING - move blue layer on top of green layer with setZIndex': function(containerId) {
|
'LAYERING - move blue layer on top of green layer with setZIndex': function(containerId) {
|
||||||
var stage = new Kinetic.Stage({
|
var stage = new Kinetic.Stage({
|
||||||
|
Loading…
Reference in New Issue
Block a user