mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
draggable unit tests: cleanup
This commit is contained in:
parent
c3046b9d79
commit
c42164097c
@ -1,61 +0,0 @@
|
||||
/*
|
||||
* draggable_defaults.js
|
||||
*/
|
||||
|
||||
var draggable_defaults = {
|
||||
|
||||
appendTo: "parent",
|
||||
|
||||
axis: false,
|
||||
|
||||
cancel: ":input,option",
|
||||
|
||||
connectToSortable: false,
|
||||
|
||||
containment: false,
|
||||
|
||||
cursor: "auto",
|
||||
|
||||
cursorAt: false,
|
||||
|
||||
delay: 0,
|
||||
|
||||
disabled: false,
|
||||
|
||||
distance: 1,
|
||||
|
||||
grid: false,
|
||||
|
||||
handle: false,
|
||||
|
||||
helper: "original",
|
||||
|
||||
iframeFix: false,
|
||||
|
||||
opacity: false,
|
||||
|
||||
refreshPositions: false,
|
||||
|
||||
revert: false,
|
||||
|
||||
revertDuration: 500,
|
||||
|
||||
scroll: true,
|
||||
|
||||
scrollSensitivity: 20,
|
||||
|
||||
scrollSpeed: 20,
|
||||
|
||||
scope: "default",
|
||||
|
||||
snap: false,
|
||||
|
||||
snapMode: "both",
|
||||
|
||||
snapTolerance: 20,
|
||||
|
||||
stack: false,
|
||||
|
||||
zIndex: false
|
||||
|
||||
};
|
@ -12,8 +12,7 @@
|
||||
<script type="text/javascript" src="../../../external/qunit/testrunner.js"></script>
|
||||
<script type="text/javascript" src="../../../external/simulate/jquery.simulate.js"></script>
|
||||
|
||||
<script type="text/javascript" src="defaults.js"></script>
|
||||
<script type="text/javascript" src="draggable.js"></script>
|
||||
<script type="text/javascript" src="draggable_core.js"></script>
|
||||
<script type="text/javascript" src="draggable_defaults.js"></script>
|
||||
<script type="text/javascript" src="draggable_events.js"></script>
|
||||
<script type="text/javascript" src="draggable_methods.js"></script>
|
||||
|
@ -1,17 +1,35 @@
|
||||
/*
|
||||
* draggable_defaults.js
|
||||
*/
|
||||
(function($) {
|
||||
|
||||
module("draggable: defaults");
|
||||
var draggable_defaults = {
|
||||
appendTo: "parent",
|
||||
axis: false,
|
||||
cancel: ":input,option",
|
||||
connectToSortable: false,
|
||||
containment: false,
|
||||
cursor: "auto",
|
||||
cursorAt: false,
|
||||
delay: 0,
|
||||
disabled: false,
|
||||
distance: 1,
|
||||
grid: false,
|
||||
handle: false,
|
||||
helper: "original",
|
||||
iframeFix: false,
|
||||
opacity: false,
|
||||
refreshPositions: false,
|
||||
revert: false,
|
||||
revertDuration: 500,
|
||||
scroll: true,
|
||||
scrollSensitivity: 20,
|
||||
scrollSpeed: 20,
|
||||
scope: "default",
|
||||
snap: false,
|
||||
snapMode: "both",
|
||||
snapTolerance: 20,
|
||||
stack: false,
|
||||
zIndex: false
|
||||
};
|
||||
|
||||
test("defaults", function() {
|
||||
el = $('<div></div>').draggable();
|
||||
$.each(draggable_defaults, function(key, val) {
|
||||
var actual = el.data(key + ".draggable"), expected = val;
|
||||
same(actual, expected, key);
|
||||
});
|
||||
el.remove();
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
commonWidgetTests('draggable', { defaults: draggable_defaults });
|
||||
|
@ -5,8 +5,4 @@
|
||||
|
||||
module("draggable: tickets");
|
||||
|
||||
test("#1234", function() {
|
||||
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
Loading…
Reference in New Issue
Block a user