updated unit tests

This commit is contained in:
ericdrowell 2012-10-06 16:11:49 -07:00
parent fcd4b345fc
commit f1bc2fe4e8
2 changed files with 11 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1008,6 +1008,8 @@ Test.prototype.tests = {
layer.draw();
}
//console.log(layer.toDataURL());
stage.toDataURL({
callback: function(dataUrl) {
warn(dataUrls['stacked green circles'] === dataUrl, 'stacked green circles stage data url is incorrect');
@ -1879,8 +1881,12 @@ Test.prototype.tests = {
layer.add(cachedShape);
//console.log(layer.toDataURL());
cachedShape.createImageBuffer(function() {
layer.draw();
//console.log(layer.toDataURL());
warn(dataUrls['regular and cahced polygon'] === layer.toDataURL(), 'regular and cached polygon layer data url is incorrect');
//document.body.appendChild(layer.bufferCanvas.element)
@ -4631,7 +4637,9 @@ Test.prototype.tests = {
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) {
var stage = new Kinetic.Stage({