aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/draggable/draggable.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-04-06 12:42:49 -0400
committerScott González <scott.gonzalez@gmail.com>2015-04-09 09:26:26 -0400
commitfbc55446fbc397f7f176fd907fd5da5ff3d3abad (patch)
tree201fc1d4cd7db849aad4ebc57e19072f55556021 /tests/unit/draggable/draggable.html
parent9fb04e42a24263a88dc3adf1b9ce6a199309b24c (diff)
downloadjquery-ui-fbc55446fbc397f7f176fd907fd5da5ff3d3abad.tar.gz
jquery-ui-fbc55446fbc397f7f176fd907fd5da5ff3d3abad.zip
Draggable: Convert tests to new infrastructure
Ref #10119 Ref gh-1528
Diffstat (limited to 'tests/unit/draggable/draggable.html')
-rw-r--r--tests/unit/draggable/draggable.html143
1 files changed, 57 insertions, 86 deletions
diff --git a/tests/unit/draggable/draggable.html b/tests/unit/draggable/draggable.html
index 81fbd8986..7ac6db388 100644
--- a/tests/unit/draggable/draggable.html
+++ b/tests/unit/draggable/draggable.html
@@ -4,94 +4,65 @@
<meta charset="utf-8">
<title>jQuery UI Draggable Test Suite</title>
- <script src="../../jquery.js"></script>
- <link rel="stylesheet" href="../../../external/qunit/qunit.css">
-
+ <script src="../../lib/css.js" data-modules="core"></script>
+ <script src="../../lib/bootstrap.js" data-widget="draggable"></script>
<style>
- #main {
- width: 1000px;
- height: 1000px;
- overflow: scroll;
- overflow-x: scroll;
- overflow-y: scroll;
- position: relative;
- left: 0;
- top: 0;
- }
- #main-forceScrollable {
- position: absolute;
- left: 0;
- top: 0;
- width: 1100px;
- height: 1100px;
- }
- #scrollParent {
- width: 1200px;
- height: 1200px;
- position: relative;
- left: 0;
- top: 0;
- overflow: hidden;
- overflow-x: hidden;
- overflow-y: hidden;
- }
- #scrollParent-forceScrollable {
- position: absolute;
- left: 0;
- top: 0;
- width: 1300px;
- height: 1300px;
- }
- /* See #9077 */
- #draggable3, #draggable4 {
- z-index: 100;
- }
- .sortable {
- position: relative;
- top: 8000px;
- left: 10px;
- width: 300px;
- padding: 0;
- margin: 0;
- border: 0;
- }
- .sortable li {
- height: 100px;
- padding: 0;
- margin: 0;
- border: 0;
- list-style: none;
- display: inline-block;
- }
+ #main {
+ width: 1000px;
+ height: 1000px;
+ overflow: scroll;
+ overflow-x: scroll;
+ overflow-y: scroll;
+ position: relative;
+ left: 0;
+ top: 0;
+ }
+ #main-forceScrollable {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 1100px;
+ height: 1100px;
+ }
+ #scrollParent {
+ width: 1200px;
+ height: 1200px;
+ position: relative;
+ left: 0;
+ top: 0;
+ overflow: hidden;
+ overflow-x: hidden;
+ overflow-y: hidden;
+ }
+ #scrollParent-forceScrollable {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 1300px;
+ height: 1300px;
+ }
+ /* See #9077 */
+ #draggable3, #draggable4 {
+ z-index: 100;
+ }
+ .sortable {
+ position: relative;
+ top: 8000px;
+ left: 10px;
+ width: 300px;
+ padding: 0;
+ margin: 0;
+ border: 0;
+ }
+ .sortable li {
+ height: 100px;
+ padding: 0;
+ margin: 0;
+ border: 0;
+ list-style: none;
+ display: inline-block;
+ }
</style>
-
- <script src="../../../external/qunit/qunit.js"></script>
- <script src="../../../external/jquery-simulate/jquery.simulate.js"></script>
- <script src="../testsuite.js"></script>
- <script src="../../../external/qunit-assert-classes/qunit-assert-classes.js"></script>
- <script>
- TestHelpers.loadResources({
- css: [ "core" ],
- js: [
- "ui/core.js",
- "ui/widget.js",
- "ui/mouse.js",
- "ui/resizable.js",
- "ui/draggable.js",
- "ui/droppable.js",
- "ui/sortable.js"
- ]
- });
- </script>
-
- <script src="draggable_common.js"></script>
- <script src="draggable_core.js"></script>
- <script src="draggable_events.js"></script>
- <script src="draggable_methods.js"></script>
- <script src="draggable_options.js"></script>
- <script src="draggable_test_helpers.js"></script>
-
- <script src="../swarminject.js"></script>
</head>
<body>