mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
began updating the data url strings to match recent Chrome changes
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -856,7 +856,7 @@ Test.Modules.CONTAINER = {
|
|||||||
|
|
||||||
blueLayer.setZIndex(1);
|
blueLayer.setZIndex(1);
|
||||||
|
|
||||||
console.log(greenLayer.getZIndex());
|
//console.log(greenLayer.getZIndex());
|
||||||
|
|
||||||
test(greenLayer.getZIndex() === 0, 'green layer should have z index of 0');
|
test(greenLayer.getZIndex() === 0, 'green layer should have z index of 0');
|
||||||
test(blueLayer.getZIndex() === 1, 'blue layer should have z index of 1');
|
test(blueLayer.getZIndex() === 1, 'blue layer should have z index of 1');
|
||||||
|
@@ -22,8 +22,6 @@ Test.Modules.LAYER = {
|
|||||||
|
|
||||||
var style = layer.getCanvas().getElement().style;
|
var style = layer.getCanvas().getElement().style;
|
||||||
|
|
||||||
console.log('--' + style.display);
|
|
||||||
|
|
||||||
test(style.position === 'absolute', 'canvas position style should be absolute');
|
test(style.position === 'absolute', 'canvas position style should be absolute');
|
||||||
test(style.border === '0px', 'canvas border style should be 0px');
|
test(style.border === '0px', 'canvas border style should be 0px');
|
||||||
test(style.margin === '0px', 'canvas margin style should be 0px');
|
test(style.margin === '0px', 'canvas margin style should be 0px');
|
||||||
@@ -104,6 +102,7 @@ Test.Modules.LAYER = {
|
|||||||
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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
warn(dataUrls['stacked green circles'] === layer.toDataURL(), 'stacked green circles layer data url is incorrect');
|
warn(dataUrls['stacked green circles'] === layer.toDataURL(), 'stacked green circles layer data url is incorrect');
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@@ -2090,6 +2090,8 @@ Test.Modules.NODE = {
|
|||||||
|
|
||||||
var startDataUrl = layer.toDataURL();
|
var startDataUrl = layer.toDataURL();
|
||||||
|
|
||||||
|
//console.log(startDataUrl);
|
||||||
|
|
||||||
warn(startDataUrl === dataUrls['serialize stage with custom shape'], 'start data url is incorrect');
|
warn(startDataUrl === dataUrls['serialize stage with custom shape'], 'start data url is incorrect');
|
||||||
//test(triangle.getId() === 'myTriangle', 'triangle id should be myTriangle');
|
//test(triangle.getId() === 'myTriangle', 'triangle id should be myTriangle');
|
||||||
|
|
||||||
@@ -2617,7 +2619,7 @@ Test.Modules.NODE = {
|
|||||||
layer.hide();
|
layer.hide();
|
||||||
layer.draw();
|
layer.draw();
|
||||||
|
|
||||||
console.log(layer.toDataURL());
|
//console.log(layer.toDataURL());
|
||||||
|
|
||||||
test(layer.toDataURL() === dataUrls['cleared'], 'layer is still visible');
|
test(layer.toDataURL() === dataUrls['cleared'], 'layer is still visible');
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user