var dd_events = [
'drag:drag',
'drag:drophit',
'drag:end',
'drag:start',
'drag:enter',
'drag:over',
'drop:over',
'drop:enter',
'drop:hit'
],
moveCount = 729,
dropCount = 30;
dropCount = 30;
dropCount = 32;
dropCount = 26;
dropCount = 28;
}
}
var _count = {},
_resetCount = function() {
_count[k] = 0;
});
},
_fakeStart = function(node) {
var noop = function() {};
_resetCount();
node._dragThreshMet = true;
button: 0,
});
},
},
if (flip) {
} else {
}
},
for (var i = 0; i < max; i++) {
}
},
},
_data = {
one: 1,
two: 2,
three: 3
},
_handleCount = function(e) {
}
},
template = {
name: 'DD Test',
setUp : function() {
},
tearDown : function() {
},
test_shim: function() {
},
test_drop_setup: function() {
});
},
test_drop_setup_events: function() {
});
},
test_drag_setup: function() {
},
test_shim_after: function() {
},
test_drag_drop_setup: function() {
});
},
test_drag_invalids: function() {
},
test_drag_groups: function() {
},
test_drop_groups: function() {
},
test_drop_overs: function() {
},
test_drag_handles: function() {
},
'test: _prevEndFn': function() {
dd._prevEndFn({});
},
'test: selectionFix': function() {
fired = false;
preventDefault: function() {
fired = true;
}
});
},
test_drag_drop_group_setup: function() {
Y.Assert.areSame(dd.get('groups').length, dd.target.get('groups').length, 'Groups failed to pass from Drag to Drop');
},
test_drag_drop_group_pass_setup: function() {
},
test_drag_add_handle: function() {
Y.Assert.isNotUndefined(dd._handles[wrap._yuid], 'dd: Handles ' + wrap._yuid + ' not there (Node Based Handle)');
},
test_drag_setup_events: function() {
_count[v] = 0;
});
},
test_drag_move: function() {
//This test is mainly for code coverage, so that more DD code is touched.
},
test_drag_move: function() {
dd.on('drag:end', function() {
Y.Assert.areSame(moveCount, _count['drag:drag'], 'drag:drag should fire ' + moveCount + ' times');
//Y.Assert.areSame(1, _count['drag:drophit'], 'drag:drophit should fire 1 time');
Y.Assert.areSame(1, _count['drag:end'], 'drag:end should fire 1 time');
Y.Assert.areSame(1, _count['drag:start'], 'drag:start should fire 1 time');
//Y.Assert.areSame(1, _count['drag:enter'], 'drag:enter should fire 1 time');
Y.Assert.areSame(dropCount, _count['drag:over'], 'drag:over should fire ' + dropCount + ' times');
Y.Assert.areSame(dropCount, _count['drop:over'], 'drop:over should fire ' + dropCount + ' times');
Y.Assert.areSame(1, _count['drop:enter'], 'drop:enter should fire 1 time');
Y.Assert.areSame(1, _count['drop:hit'], 'drop:hit should fire 1 time');
});
_fakeMove(dd, moveCount);
},
*/
test_drag_destroy: function() {
},
test_proxy: function() {
_resetCount();
node: '#drag'
moveOnEnd: false
});
},
test_proxy_setup_events: function() {
});
},
test_proxy_move: function() {
//This test is mainly for code coverage, so that all proxy code is touched.
_resetCount();
_resetCount();
},
test_proxy_move: function() {
_fakeMove(proxy, moveCount);
Y.Assert.areSame(moveCount, _count['drag:drag'], 'drag:drag should fire ' + moveCount + ' times');
Y.Assert.areSame(1, _count['drag:drophit'], 'drag:drophit should fire 1 time');
Y.Assert.areSame(1, _count['drag:end'], 'drag:end should fire 1 time');
Y.Assert.areSame(1, _count['drag:start'], 'drag:start should fire 1 time');
Y.Assert.areSame(1, _count['drag:enter'], 'drag:enter should fire 1 time');
Y.Assert.areSame(dropCount, _count['drag:over'], 'drag:over should fire ' + dropCount + ' times');
Y.Assert.areSame(dropCount, _count['drop:over'], 'drop:over should fire ' + dropCount + ' times');
Y.Assert.areSame(1, _count['drop:enter'], 'drop:enter should fire 1 time');
Y.Assert.areSame(1, _count['drop:hit'], 'drop:hit should fire 1 time');
},
*/
test_proxy_destroy: function() {
Y.Assert.isFalse(proxy.get('node').hasClass('yui3-dd-draggable'), 'proxy: Drag Instance NO ClassName');
},
test_drop_destroy: function() {
},
test_constrain_region_setup: function() {
node: '#drag'
top: 0,
left: 0,
bottom: 400,
right: 400
}
});
},
test_constrain_node_setup: function() {
node: '#drag'
constrain2node: '#wrap'
});
},
test_constrain_node_move: function() {
},
test_constrain_view_setup: function() {
node: '#drag'
constrain2view: true
});
},
test_constrain_inregion: function() {
//Move to region
//Move back out of region
},
test_tick_calc: function() {
},
test_tick_array: function() {
},
test_constrain_view_move: function() {
},
'test: node scroll plugin': function() {
node: '#drag'
});
},
test_window_scroll: function() {
//Skip this test on mobile devices, they don't like the scrollTop settings to test against.
return true;
}
node: '#drag'
_fakeStart(dd);
var self = this,
wait = function() {
i++;
} else {
}, 1500);
}
};
},
test_delegate: function() {
container: '#del',
nodes: 'li',
invalid: '.disabled',
target: true
});
},
test_delegate_setup_events: function() {
_count[v] = 0;
});
},
test_delegate_move: function() {
del._onMouseEnter();
_resetCount();
//Y.Assert.areSame(moveCount, _count['drag:drag'], 'drag:drag should fire ' + moveCount + ' times');
});
});
});
del._onMouseLeave();
},
test_delegate_move2: function() {
_resetCount();
});
},
test_delegate_disabled: function() {
_resetCount();
var mDown = false;
mDown = true;
});
});
},
test_delegate_destroy: function() {
},
test_css_gutter: function() {
var gutter1 = '2px';
var gutter1 = '1px 2px';
var gutter1 = '1px 2px 3px';
var gutter1 = '1px 2px 3px 4px';
},
test_swap_node_position: function() {
},
test_swap_node: function() {
},
'test: proxy plugin on widget': function() {
var test = this,
ArrayAssert = Y.ArrayAssert;
headerContent: 'Some title',
width: 250,
bodyContent: "<h1>Some content goes here <br> Content</h1>",
render: true
});
target: {
}
});
target: {
}
});
target: {
}
});
target: {
}
});
});
}
};
});