aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-07 18:03:19 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-07 18:03:19 +0000
commit505a7e19e25ce6edce1297fe2887cc1f339249ae (patch)
tree853adfcdd0c52a5c0a3e4564ec75be71fed5b8de /tests
parentd8100c5caae79a716a36a380b7fdbfdbdb5a71e1 (diff)
downloadjquery-ui-505a7e19e25ce6edce1297fe2887cc1f339249ae.tar.gz
jquery-ui-505a7e19e25ce6edce1297fe2887cc1f339249ae.zip
updated some paths
Diffstat (limited to 'tests')
-rw-r--r--tests/accordion.html13
-rw-r--r--tests/all.html37
-rw-r--r--tests/autodrag.html11
-rw-r--r--tests/draggable.html45
-rw-r--r--tests/draggable.js8
-rw-r--r--tests/resizable.html23
-rw-r--r--tests/resizable.js8
-rw-r--r--tests/slider.html24
8 files changed, 98 insertions, 71 deletions
diff --git a/tests/accordion.html b/tests/accordion.html
index 66913ba2b..a4f7c1682 100644
--- a/tests/accordion.html
+++ b/tests/accordion.html
@@ -3,15 +3,16 @@
<head>
<title>jQuery UI Accordion Test Suite</title>
- <link rel="stylesheet" href="../../qunit/testsuite.css" type="text/css" media="screen">
- <script type="text/javascript" src="../../jquery/jquery-1.2.6.js"></script>
-
- <script type="text/javascript" src="../source/ui.core.js"></script>
- <script type="text/javascript" src="../source/ui.accordion.js"></script>
+ <link rel="stylesheet" href="qunit/testsuite.css" type="text/css" media="screen">
+
+ <script type="text/javascript" src="../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../ui/ui.accordion.js"></script>
- <script type="text/javascript" src="../../qunit/testrunner.js"></script>
+ <script type="text/javascript" src="qunit/testrunner.js"></script>
<script type="text/javascript" src="accordion.js"></script>
+
<style type="text/css">
.xerror, .error { display: none }
</style>
diff --git a/tests/all.html b/tests/all.html
index 82000437d..256996b7f 100644
--- a/tests/all.html
+++ b/tests/all.html
@@ -2,17 +2,35 @@
<html lang="en">
<head>
<title>jQuery UI All Tests</title>
- <link rel="stylesheet" href="../../qunit/testsuite.css" type="text/css" media="screen">
- <script type="text/javascript" src="../../jquery/jquery-1.2.6.js"></script>
-
- <script type="text/javascript" src="../source/ui.core.js"></script>
- <script type="text/javascript" src="../source/ui.accordion.js"></script>
- <script type="text/javascript" src="../source/ui.slider.js"></script>
+ <link rel="stylesheet" href="qunit/testsuite.css" type="text/css" media="screen">
+
+ <script type="text/javascript" src="../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../ui/ui.accordion.js"></script>
+ <script type="text/javascript" src="../ui/ui.datepicker.js"></script>
+ <script type="text/javascript" src="../ui/ui.dialog.js"></script>
+ <script type="text/javascript" src="../ui/ui.draggable.js"></script>
+ <script type="text/javascript" src="../ui/ui.droppable.js"></script>
+ <script type="text/javascript" src="../ui/ui.resizable.js"></script>
+ <script type="text/javascript" src="../ui/ui.selectable.js"></script>
+ <script type="text/javascript" src="../ui/ui.slider.js"></script>
+ <script type="text/javascript" src="../ui/ui.sortable.js"></script>
+ <script type="text/javascript" src="../ui/ui.tabs.js"></script>
- <script type="text/javascript" src="../../qunit/testrunner.js"></script>
+ <script type="text/javascript" src="qunit/testrunner.js"></script>
+ <script type="text/javascript" src="simulate/jquery.simulate.js"></script>
<script type="text/javascript" src="accordion.js"></script>
+ <script type="text/javascript" src="datepicker.js"></script>
+ <script type="text/javascript" src="dialog.js"></script>
+ <script type="text/javascript" src="draggable.js"></script>
+ <script type="text/javascript" src="droppable.js"></script>
+ <script type="text/javascript" src="resizable.js"></script>
+ <script type="text/javascript" src="selectable.js"></script>
<script type="text/javascript" src="slider.js"></script>
+ <script type="text/javascript" src="sortable.js"></script>
+ <script type="text/javascript" src="tabs.js"></script>
+
<style type="text/css">
.xerror, .error { display: none }
</style>
@@ -31,7 +49,10 @@
<ol id="tests"></ol>
-<div id="main" style="position:absolute;top:-2000000px;">
+ <div id="main" style="position:absolute;top:-2000000px;">
+
+ <div id='draggable1' style="background: green; width: 200px; height: 100px;">Relative</div>
+ <div id='draggable2' style="background: green; width: 200px; height: 100px; position: absolute; top: 10px; left: 10px;"><span>Absolute</span></div>
<div id='slider1'></div>
<div id='slider3' style="position: relative; margin: 40px; width: 217px; height: 28px; background: url(http://developer.yahoo.com/yui/examples/slider/assets/bg-fader.gif) no-repeat scroll 5px 0px;">
diff --git a/tests/autodrag.html b/tests/autodrag.html
index acc17fb4c..841bb026e 100644
--- a/tests/autodrag.html
+++ b/tests/autodrag.html
@@ -2,12 +2,13 @@
<html lang="en">
<head>
<title>jQuery UI - Automated Tests</title>
- <script type="text/javascript" src="../../jquery/jquery-1.2.6.js"></script>
- <script type="text/javascript" src="../../ui/source/ui.core.js"></script>
- <script type="text/javascript" src="../../ui/source/ui.draggable.js"></script>
- <script type="text/javascript" src="../../ui/source/ui.selectable.js"></script>
- <script type="text/javascript" src="jquery.simulate.js"></script>
+ <script type="text/javascript" src="../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../ui/ui.draggable.js"></script>
+ <script type="text/javascript" src="../ui/ui.selectable.js"></script>
+
+ <script type="text/javascript" src="simulate/jquery.simulate.js"></script>
<script type="text/javascript" src="ui.testmouse.js"></script>
<style type="text/css">
diff --git a/tests/draggable.html b/tests/draggable.html
index a70fb0df7..4cef7a1c4 100644
--- a/tests/draggable.html
+++ b/tests/draggable.html
@@ -1,28 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
-<meta http-equiv="Content-Language" content="en" />
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>Draggable Test Page</title>
-<link rel="stylesheet" href="../../qunit/testsuite.css" type="text/css" media="screen">
-
-<script type="text/javascript" src="../../jquery/jquery-1.2.6.js"></script>
-<script type="text/javascript" src="../source/ui.core.js"></script>
-<script type="text/javascript" src="../source/ui.draggable.js"></script>
-
-<script type="text/javascript" src="../../qunit/testrunner.js"></script>
-<script type="text/javascript" src="draggable.js"></script>
-<script type="text/javascript" src="jquery.simulate.js"></script>
-
-<style>
- html { border: 0; }
- #main {
- position:absolute !important;
- top: -1000px !important;
- left: -1000px !important;
- }
-</style>
+ <meta http-equiv="Content-Language" content="en" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Draggable Test Page</title>
+ <link rel="stylesheet" href="qunit/testsuite.css" type="text/css" media="screen">
+
+ <script type="text/javascript" src="../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../ui/ui.draggable.js"></script>
+
+ <script type="text/javascript" src="qunit/testrunner.js"></script>
+ <script type="text/javascript" src="simulate/jquery.simulate.js"></script>
+
+ <script type="text/javascript" src="draggable.js"></script>
+
+ <style>
+ html { border: 0; }
+ #main {
+ position:absolute !important;
+ top: -1000px !important;
+ left: -1000px !important;
+ }
+ </style>
</head>
<body>
@@ -31,7 +32,7 @@
<h2 id="userAgent"></h2>
<div id="main" style="border: 1px solid black; padding: 10px; margin: 10px;">
- <div id='draggable1' style="background: green; width: 200px; height: 100px;">Static</div>
+ <div id='draggable1' style="background: green; width: 200px; height: 100px;">Relative</div>
<div id='draggable2' style="background: green; width: 200px; height: 100px; position: absolute; top: 10px; left: 10px;"><span>Absolute</span></div>
</div>
diff --git a/tests/draggable.js b/tests/draggable.js
index 299017b90..45b907d78 100644
--- a/tests/draggable.js
+++ b/tests/draggable.js
@@ -40,7 +40,7 @@ var border = function(el, side) { return parseInt(el.css('border-' + side + '-wi
var margin = function(el, side) { return parseInt(el.css('margin-' + side)); }
// Draggable Tests
-module("Draggable");
+module("draggable");
test("init", function() {
expect(6);
@@ -160,7 +160,7 @@ test("No options, absolute", function() {
moved(50, 50);
});
-module("Draggable Options");
+module("draggable: Options");
test("{ axis: false }, default", function() {
el = $("#draggable2").draggable({ axis: false });
@@ -429,7 +429,7 @@ test("{ zIndex: 10 }", function() {
});
-module("Draggable Callbacks");
+module("draggable: Callbacks");
test("callbacks occurance count", function() {
@@ -450,7 +450,7 @@ test("callbacks occurance count", function() {
});
-module("Tickets");
+module("draggable: Tickets");
test("#2965 cursorAt with margin", function() {
diff --git a/tests/resizable.html b/tests/resizable.html
index 685ec88c9..69aa594d7 100644
--- a/tests/resizable.html
+++ b/tests/resizable.html
@@ -1,19 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
-<meta http-equiv="Content-Language" content="en" />
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>Resizable Test Page</title>
-<link rel="stylesheet" href="../../qunit/testsuite.css" type="text/css" media="screen">
+ <meta http-equiv="Content-Language" content="en" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Resizable Test Page</title>
-<script type="text/javascript" src="../../jquery/jquery-1.2.6.js"></script>
-<script type="text/javascript" src="../source/ui.core.js"></script>
-<script type="text/javascript" src="../source/ui.resizable.js"></script>
-
-<script type="text/javascript" src="../../qunit/testrunner.js"></script>
-<script type="text/javascript" src="resizable.js"></script>
-<script type="text/javascript" src="jquery.simulate.js"></script>
+ <link rel="stylesheet" href="qunit/testsuite.css" type="text/css" media="screen">
+
+ <script type="text/javascript" src="../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../ui/ui.resizable.js"></script>
+ <script type="text/javascript" src="qunit/testrunner.js"></script>
+ <script type="text/javascript" src="simulate/jquery.simulate.js"></script>
+
+ <script type="text/javascript" src="resizable.js"></script>
</head>
<style>
diff --git a/tests/resizable.js b/tests/resizable.js
index 48582e016..152691223 100644
--- a/tests/resizable.js
+++ b/tests/resizable.js
@@ -12,7 +12,7 @@ var drag = function(el, dx, dy, complete) {
});
};
-module("Simple Resize");
+module("resizable");
test("ui-resizable-e resize x", function() {
@@ -155,7 +155,7 @@ test("ui-resizable-nw resize xy", function() {
* min/max Height/Width
*/
-module("Dimensions limit");
+module("resizable: Dimensions limit");
test("ui-resizable-se { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 100, maxHeight: 100 }", function() {
@@ -233,7 +233,7 @@ test("ui-resizable-nw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 1
* Respecting ratio resize with dimensions limit
*/
-module("Respecting ratio resize with dimensions limits");
+module("resizable: Respecting ratio resize with dimensions limits");
test("ui-resizable-e { aspectRatio: 'preserve', handles: 'all', minWidth: 70, minHeight: 50, maxWidth: 150, maxHeight: 130 }", function() {
@@ -361,7 +361,7 @@ test("ui-resizable-ne { aspectRatio: 'preserve', handles: 'all', minWidth: 70, m
});
-module("Options");
+module("resizable: Options");
test("ui-resizable-se { handles: 'all', grid: [0, 20] }", function() {
diff --git a/tests/slider.html b/tests/slider.html
index 090cfd2bf..4be767a65 100644
--- a/tests/slider.html
+++ b/tests/slider.html
@@ -1,18 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
-<meta http-equiv="Content-Language" content="en" />
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>Slider Test Page</title>
-<link rel="stylesheet" href="../../qunit/testsuite.css" type="text/css" media="screen">
+ <meta http-equiv="Content-Language" content="en" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Slider Test Page</title>
-<script type="text/javascript" src="../../jquery/jquery-1.2.6.js"></script>
-<script type="text/javascript" src="../source/ui.core.js"></script>
-<script type="text/javascript" src="../source/ui.slider.js"></script>
-
-<script type="text/javascript" src="../../qunit/testrunner.js"></script>
-<script type="text/javascript" src="slider.js"></script>
-<script type="text/javascript" src="jquery.simulate.js"></script>
+ <link rel="stylesheet" href="qunit/testsuite.css" type="text/css" media="screen">
+
+ <script type="text/javascript" src="../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../ui/ui.slider.js"></script>
+
+ <script type="text/javascript" src="qunit/testrunner.js"></script>
+ <script type="text/javascript" src="simulate/jquery.simulate.js"></script>
+
+ <script type="text/javascript" src="slider.js"></script>
</head>
<body>