mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
removed timeouts from functional tests and uncommented image comparison tests
This commit is contained in:
@@ -5,7 +5,8 @@ Test.prototype.tests = {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: containerId,
|
||||
width: 578,
|
||||
height: 200
|
||||
height: 200,
|
||||
throttle: 999
|
||||
});
|
||||
var layer = new Kinetic.Layer();
|
||||
var circle = new Kinetic.Ellipse({
|
||||
@@ -56,7 +57,6 @@ Test.prototype.tests = {
|
||||
test(!dragMove, 'dragmove event should not have been triggered');
|
||||
test(!dragEnd, 'dragend event should not have been triggered');
|
||||
|
||||
setTimeout(function() {
|
||||
stage._mousemove({
|
||||
clientX: 100,
|
||||
clientY: 98
|
||||
@@ -65,8 +65,7 @@ Test.prototype.tests = {
|
||||
test(dragStart, 'dragstart event was not triggered');
|
||||
test(dragMove, 'dragmove event was not triggered');
|
||||
test(!dragEnd, 'dragend event should not have been triggered');
|
||||
}, 50);
|
||||
setTimeout(function() {
|
||||
|
||||
stage._mouseup({
|
||||
clientX: 100,
|
||||
clientY: 98
|
||||
@@ -77,9 +76,8 @@ Test.prototype.tests = {
|
||||
test(dragEnd, 'dragend event was not triggered');
|
||||
|
||||
stage.toDataURL(function(endDataUrl) {
|
||||
//test(urls[1] === endDataUrl, 'end data url is incorrect');
|
||||
test(urls[1] === endDataUrl, 'end data url is incorrect');
|
||||
});
|
||||
}, 100);
|
||||
});
|
||||
},
|
||||
'EVENTS - modify fill stroke and stroke width on hover with circle': function(containerId) {
|
||||
@@ -117,7 +115,7 @@ Test.prototype.tests = {
|
||||
stage.add(layer);
|
||||
|
||||
stage.toDataURL(function(startDataUrl) {
|
||||
//test(startDataUrl === urls[0], 'start data url is incorrect');
|
||||
test(startDataUrl === urls[0], 'start data url is incorrect');
|
||||
|
||||
stage._mousemove({
|
||||
clientX: 377,
|
||||
@@ -125,7 +123,7 @@ Test.prototype.tests = {
|
||||
});
|
||||
|
||||
stage.toDataURL(function(endDataUrl) {
|
||||
//test(urls[1] === endDataUrl, 'end data url is incorrect');
|
||||
test(urls[1] === endDataUrl, 'end data url is incorrect');
|
||||
});
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user