siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
29 lines (22 loc) • 644 B
JavaScript
StartTest(function(t) {
t.testExtJS(function (t) {
var win = new Ext.Window({
foo : 'bar',
height : 200,
width : 200,
x : 10,
y : 10
});
win.show();
t.describe('Ext.Window Tests', function(t) {
t.it("Should be draggable", function (t) {
t.chain(
{ action : 'drag', target : win.down('header'), by : [50, 50] },
function() {
t.hasPosition(win, 60, 60);
}
);
});
})
})
});