aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-01-28 11:53:09 +0000
committerRichard Worth <rdworth@gmail.com>2009-01-28 11:53:09 +0000
commit2fb657c25a973f781ec9dff6c12b738cbf1d4c77 (patch)
treec91473e255ba9c717f008e8cfe01e595230c1e7e /tests
parent0fb425ca0c6a337c27209929eb20ce617fb31d2a (diff)
downloadjquery-ui-2fb657c25a973f781ec9dff6c12b738cbf1d4c77.tar.gz
jquery-ui-2fb657c25a973f781ec9dff6c12b738cbf1d4c77.zip
eol-style and mime-type
Diffstat (limited to 'tests')
-rw-r--r--tests/index.html192
-rw-r--r--tests/static/index.html72
2 files changed, 132 insertions, 132 deletions
diff --git a/tests/index.html b/tests/index.html
index 6b1ce73ad..4544567a9 100644
--- a/tests/index.html
+++ b/tests/index.html
@@ -1,96 +1,96 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>jQuery UI Tests</title>
- <link rel="stylesheet" href="../themes/base/ui.all.css" type="text/css" />
- <script type="text/javascript" src="../jquery-1.3.1.js"></script>
- <script type="text/javascript" src="../ui/ui.core.js"></script>
- <script type="text/javascript" src="../ui/ui.draggable.js"></script>
- <style type="text/css">
- body { font-size: 62.5%; }
- dd.plugin { margin-top: 0.3em; margin-bottom: 1em; }
- iframe { border: 0; width: 200px; 150px; }
- td { border: 1px solid silver; padding: 10px; }
- </style>
-</head>
-
-<body>
-
-<table id="matrix">
-<thead>
- <tr>
- <th>Interaction</th>
- <th style="width:220px;">Static</th>
- <th style="width:220px;">Visual</th>
- </tr>
-</thead>
-<tbody>
- <tr class="test-draggable-default"><th>Draggable</th><td></td><td></td></tr>
- <tr class="test-droppable-default"><th>Droppable</th><td></td><td></td></tr>
- <tr class="test-resizable-default"><th>Resizable</th><td></td><td></td></tr>
- <tr class="test-selectabe-default"><th>Selectable</th><td></td><td></td></tr>
- <tr class="test-sortable-default"><th>Sortable</th><td></td><td></td></tr>
-</tbody>
-<thead>
- <tr>
- <th>Widget</th>
- <th style="width:220px;">Static</th>
- <th style="width:220px;">Visual</th>
- </tr>
-</thead>
-<tbody>
- <tr class="test-accordion-default"><th>Accordion</th><td></td><td></td></tr>
- <tr class="test-datepicker-default"><th>Datepicker</th><td></td><td></td></tr>
- <tr class="test-dialog-default"><th>Dialog</th><td></td><td></td></tr>
- <tr class="test-progressbar-default"><th>Progressbar</th><td></td><td></td></tr>
- <tr class="test-slider-default"><th>slider</th><td></td><td></td></tr>
- <tr class="test-tabs-default"><th>Tabs</th><td></td><td></td></tr>
-</tbody>
-</table>
-
-<dl id="plugins">
-
-</dl>
-
-<script type="text/javascript">
-
-var matrix = $("#matrix");
-
-matrix.children("tbody").children("tr").each(function() {
-
- var tr = $(this), th = tr.find("th"), pluginName = th.text().toLowerCase(), staticTd = th.next(), visualTd = staticTd.next();
-
- var staticUrl = 'static/' + pluginName + '/default.html';
- var visualUrl = 'visual/' + pluginName + '/default.html';
-
- $.get(staticUrl, function(data) {
- data = data.replace(/<script.*>.*<\/script>/ig,""); // Remove script tags
- data = data.replace(/<\/?link.*>/ig,""); //Remove link tags
- data = data.replace(/<\/?html.*>/ig,""); //Remove html tag
- data = data.replace(/<\/?body.*>/ig,""); //Remove body tag
- data = data.replace(/<\/?head.*>/ig,""); //Remove head tag
- data = data.replace(/<title.*>.*<\/title>/ig,""); // Remove title tags
- data = data.replace(/\s*<\/?!doctype.*>\s*/ig,""); //Remove doctype
- var staticHtml = $("<div></div>").html(data).html();
- staticTd.html(staticHtml);
- });
-
- visualTd.append('<iframe src="' + visualUrl + '"></iframe>');
-
- var iframe = visualTd.find("iframe");
-
- iframe.load(function() {
- //alert($("body", this.contentDocument).html());
- $(this).after($("body", this.contentDocument).html()).remove();
- (pluginName == 'dialog') && $("#dialog").parents(".ui-dialog").css({
- position: "relative",
- top: null, left: null
- });
- });
-
-});
-
-</script>
-
-</body>
-</html>
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Tests</title>
+ <link rel="stylesheet" href="../themes/base/ui.all.css" type="text/css" />
+ <script type="text/javascript" src="../jquery-1.3.1.js"></script>
+ <script type="text/javascript" src="../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../ui/ui.draggable.js"></script>
+ <style type="text/css">
+ body { font-size: 62.5%; }
+ dd.plugin { margin-top: 0.3em; margin-bottom: 1em; }
+ iframe { border: 0; width: 200px; 150px; }
+ td { border: 1px solid silver; padding: 10px; }
+ </style>
+</head>
+
+<body>
+
+<table id="matrix">
+<thead>
+ <tr>
+ <th>Interaction</th>
+ <th style="width:220px;">Static</th>
+ <th style="width:220px;">Visual</th>
+ </tr>
+</thead>
+<tbody>
+ <tr class="test-draggable-default"><th>Draggable</th><td></td><td></td></tr>
+ <tr class="test-droppable-default"><th>Droppable</th><td></td><td></td></tr>
+ <tr class="test-resizable-default"><th>Resizable</th><td></td><td></td></tr>
+ <tr class="test-selectabe-default"><th>Selectable</th><td></td><td></td></tr>
+ <tr class="test-sortable-default"><th>Sortable</th><td></td><td></td></tr>
+</tbody>
+<thead>
+ <tr>
+ <th>Widget</th>
+ <th style="width:220px;">Static</th>
+ <th style="width:220px;">Visual</th>
+ </tr>
+</thead>
+<tbody>
+ <tr class="test-accordion-default"><th>Accordion</th><td></td><td></td></tr>
+ <tr class="test-datepicker-default"><th>Datepicker</th><td></td><td></td></tr>
+ <tr class="test-dialog-default"><th>Dialog</th><td></td><td></td></tr>
+ <tr class="test-progressbar-default"><th>Progressbar</th><td></td><td></td></tr>
+ <tr class="test-slider-default"><th>slider</th><td></td><td></td></tr>
+ <tr class="test-tabs-default"><th>Tabs</th><td></td><td></td></tr>
+</tbody>
+</table>
+
+<dl id="plugins">
+
+</dl>
+
+<script type="text/javascript">
+
+var matrix = $("#matrix");
+
+matrix.children("tbody").children("tr").each(function() {
+
+ var tr = $(this), th = tr.find("th"), pluginName = th.text().toLowerCase(), staticTd = th.next(), visualTd = staticTd.next();
+
+ var staticUrl = 'static/' + pluginName + '/default.html';
+ var visualUrl = 'visual/' + pluginName + '/default.html';
+
+ $.get(staticUrl, function(data) {
+ data = data.replace(/<script.*>.*<\/script>/ig,""); // Remove script tags
+ data = data.replace(/<\/?link.*>/ig,""); //Remove link tags
+ data = data.replace(/<\/?html.*>/ig,""); //Remove html tag
+ data = data.replace(/<\/?body.*>/ig,""); //Remove body tag
+ data = data.replace(/<\/?head.*>/ig,""); //Remove head tag
+ data = data.replace(/<title.*>.*<\/title>/ig,""); // Remove title tags
+ data = data.replace(/\s*<\/?!doctype.*>\s*/ig,""); //Remove doctype
+ var staticHtml = $("<div></div>").html(data).html();
+ staticTd.html(staticHtml);
+ });
+
+ visualTd.append('<iframe src="' + visualUrl + '"></iframe>');
+
+ var iframe = visualTd.find("iframe");
+
+ iframe.load(function() {
+ //alert($("body", this.contentDocument).html());
+ $(this).after($("body", this.contentDocument).html()).remove();
+ (pluginName == 'dialog') && $("#dialog").parents(".ui-dialog").css({
+ position: "relative",
+ top: null, left: null
+ });
+ });
+
+});
+
+</script>
+
+</body>
+</html>
diff --git a/tests/static/index.html b/tests/static/index.html
index c491261b7..f133eac34 100644
--- a/tests/static/index.html
+++ b/tests/static/index.html
@@ -1,36 +1,36 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Static Tests</title>
- <link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css" />
- <script type="text/javascript" src="../../jquery-1.3.1.js"></script>
- <script type="text/javascript">
- $(function() {
-
- });
- </script>
-</head>
-
-<body>
-
-<h2>Interactions</h2>
-<ul>
- <li><a href="draggable/default.html">Draggable</a></li>
- <li><a href="droppable/default.html">Droppable</a></li>
- <li><a href="resizable/default.html">Resizable</a></li>
- <li><a href="selectable/default.html">Selectable</a></li>
- <li><a href="sortable/default.html">Sortable</a></li>
-</ul>
-
-<h2>Widgets</h2>
-<ul>
- <li><a href="accordion/default.html">Accordion</a></li>
- <li><a href="datepicker/default.html">Datepicker</a></li>
- <li><a href="dialog/default.html">Dialog</a></li>
- <li><a href="progressbar/default.html">Progressbar</a></li>
- <li><a href="slider/default.html">Slider</a></li>
- <li><a href="tabs/default.html">Tabs</a></li>
-</ul>
-
-</body>
-</html>
+<!doctype html>
+<html lang="en">
+<head>
+ <title>Static Tests</title>
+ <link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css" />
+ <script type="text/javascript" src="../../jquery-1.3.1.js"></script>
+ <script type="text/javascript">
+ $(function() {
+
+ });
+ </script>
+</head>
+
+<body>
+
+<h2>Interactions</h2>
+<ul>
+ <li><a href="draggable/default.html">Draggable</a></li>
+ <li><a href="droppable/default.html">Droppable</a></li>
+ <li><a href="resizable/default.html">Resizable</a></li>
+ <li><a href="selectable/default.html">Selectable</a></li>
+ <li><a href="sortable/default.html">Sortable</a></li>
+</ul>
+
+<h2>Widgets</h2>
+<ul>
+ <li><a href="accordion/default.html">Accordion</a></li>
+ <li><a href="datepicker/default.html">Datepicker</a></li>
+ <li><a href="dialog/default.html">Dialog</a></li>
+ <li><a href="progressbar/default.html">Progressbar</a></li>
+ <li><a href="slider/default.html">Slider</a></li>
+ <li><a href="tabs/default.html">Tabs</a></li>
+</ul>
+
+</body>
+</html>