]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Renamed files for deprecated tests now that TestSwarm is setup to properly...
authorScott González <scott.gonzalez@gmail.com>
Mon, 4 Apr 2011 13:19:20 +0000 (09:19 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 4 Apr 2011 13:19:20 +0000 (09:19 -0400)
tests/unit/accordion/accordio.html [deleted file]
tests/unit/accordion/accordion_deprecated.html [new file with mode: 0644]
tests/unit/position/positio.html [deleted file]
tests/unit/position/position_deprecated.html [new file with mode: 0644]

diff --git a/tests/unit/accordion/accordio.html b/tests/unit/accordion/accordio.html
deleted file mode 100644 (file)
index 879b5fe..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <title>jQuery UI Accordion Test Suite</title>
-
-       <link rel="stylesheet" href="../../../themes/base/jquery.ui.accordion.css">
-
-       <script src="../../../jquery-1.5.1.js"></script>
-       <script src="../../../ui/jquery.ui.core.js"></script>
-       <script src="../../../ui/jquery.ui.widget.js"></script>
-       <script src="../../../ui/jquery.ui.accordion.js"></script>
-
-       <link rel="stylesheet" href="../../../external/qunit.css">
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../jquery.simulate.js"></script>
-       <script src="../testsuite.js"></script>
-
-       <script>
-       function state( accordion ) {
-               var expected = $.makeArray( arguments ).slice( 1 );
-               var actual = accordion.find( ".ui-accordion-content" ).map(function() {
-                       return $( this ).css( "display" ) === "none" ? 0 : 1;
-               }).get();
-               same( actual, expected );
-       }
-       function equalHeights( accordion, min, max ) {
-               var sizes = [];
-               accordion.find( ".ui-accordion-content" ).each(function() {
-                       sizes.push( $( this ).outerHeight() );
-               });
-               ok( sizes[ 0 ] >= min && sizes[ 0 ] <= max,
-                       "must be within " + min + " and " + max + ", was " + sizes[ 0 ] );
-               same( sizes[ 0 ], sizes[ 1 ] );
-               same( sizes[ 0 ], sizes[ 2 ] );
-       }
-       function accordionSetupTeardown() {
-               var animated = $.ui.accordion.prototype.options.animated;
-               return {
-                       setup: function() {
-                               $.ui.accordion.prototype.options.animated = false;
-                       },
-                       teardown: function() {
-                               $.ui.accordion.prototype.options.animated = animated;
-                       }
-               };
-       }
-       </script>
-       <script src="accordion_defaults_deprecated.js"></script>
-       <script src="accordion_core.js"></script>
-       <script src="accordion_events.js"></script>
-       <script src="accordion_methods.js"></script>
-       <script src="accordion_options.js"></script>
-       <script src="accordion_deprecated.js"></script>
-
-       <script src="../swarminject.js"></script>
-       <style>
-       #qunit-fixture { font-size: 10pt; font-family: "trebuchet ms", verdana, arial; }
-       #list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; line-height: 15px; }
-       </style>
-</head>
-<body>
-<h1 id="qunit-header">jQuery UI Accordion Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests"></ol>
-<div id="qunit-fixture">
-
-<div id="list1" class="foo">
-       <h3 class="bar"><a class="anchor">There is one obvious advantage:</a></h3>
-       <div class="foo">
-               <p>
-                       You've seen it coming!
-                       <br/>
-                       Buy now and get nothing for free!
-                       <br/>
-                       Well, at least no free beer. Perhaps a bear, if you can afford it.
-               </p>
-       </div>
-       <h3 class="bar"><a class="anchor">Now that you've got...</a></h3>
-       <div class="foo">
-               <p>
-                       your bear, you have to admit it!
-                       <br/>
-                       No, we aren't selling bears.
-               </p>
-               <p>
-                       We could talk about renting one.
-               </p>
-       </div>
-       <h3 class="bar"><a class="anchor">Rent one bear, ...</a></h3>
-       <div class="foo">
-               <p>
-                       get two for three beer.
-               </p>
-               <p>
-                       And now, for something completely different.
-               </p>
-       </div>
-</div>
-
-<div id="navigationWrapper">
-       <ul id="navigation">
-               <li>
-                       <h2><a href="?p=1.1.1">Guitar</a></h2>
-                       <ul>
-                               <li><a href="?p=1.1.1.1">Electric</a></li>
-                               <li><a href="?p=1.1.1.2">Acoustic</a></li>
-                               <li><a href="?p=1.1.1.3">Amps</a></li>
-                               <li><a href="?p=1.1.1.4">Effects</a></li>
-                               <li><a href="?p=1.1.1.5">Accessories</a></li>
-                       </ul> 
-               </li>
-               <li>
-                       <h2><a href="?p=1.1.2"><span>Bass</span></a></h2>
-                       <ul>
-                               <li><a href="?p=1.1.2.1">Electric</a></li>
-                               <li><a href="?p=1.1.2.2">Acoustic</a></li>
-                               <li><a href="?p=1.1.2.3">Amps</a></li>
-                               <li><a href="?p=1.1.2.4">Effects</a></li>
-                               <li><a href="?p=1.1.2.5">Accessories</a></li>
-                               <li><a href="?p=1.1.2.5">Accessories</a></li>
-                               <li><a href="?p=1.1.2.5">Accessories</a></li>
-                       </ul> 
-               </li>
-               <li>
-                       <h2><a href="?p=1.1.3">Drums</a></h2>
-                       <ul>
-                               <li><a href="?p=1.1.3.2">Acoustic Drums</a></li>
-                               <li><a href="?p=1.1.3.3">Electronic Drums</a></li>
-                               <li><a href="?p=1.1.3.6">Accessories</a></li>
-                       </ul> 
-               </li>
-       </ul>
-</div>
-
-<dl id="accordion-dl">
-       <dt>
-               <a href="#">Accordion Header 1</a>
-       </dt>
-       <dd>
-               Accordion Content 1
-       </dd>
-       <dt>
-               <a href="#">Accordion Header 2</a>
-       </dt>
-       <dd>
-               Accordion Content 2
-       </dd>
-       <dt>
-               <a href="#">Accordion Header 3</a>
-       </dt>
-       <dd>
-               Accordion Content 3
-       </dd>
-</dl>
-
-</div>
-</body>
-</html>
diff --git a/tests/unit/accordion/accordion_deprecated.html b/tests/unit/accordion/accordion_deprecated.html
new file mode 100644 (file)
index 0000000..879b5fe
--- /dev/null
@@ -0,0 +1,161 @@
+<!doctype html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <title>jQuery UI Accordion Test Suite</title>
+
+       <link rel="stylesheet" href="../../../themes/base/jquery.ui.accordion.css">
+
+       <script src="../../../jquery-1.5.1.js"></script>
+       <script src="../../../ui/jquery.ui.core.js"></script>
+       <script src="../../../ui/jquery.ui.widget.js"></script>
+       <script src="../../../ui/jquery.ui.accordion.js"></script>
+
+       <link rel="stylesheet" href="../../../external/qunit.css">
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../jquery.simulate.js"></script>
+       <script src="../testsuite.js"></script>
+
+       <script>
+       function state( accordion ) {
+               var expected = $.makeArray( arguments ).slice( 1 );
+               var actual = accordion.find( ".ui-accordion-content" ).map(function() {
+                       return $( this ).css( "display" ) === "none" ? 0 : 1;
+               }).get();
+               same( actual, expected );
+       }
+       function equalHeights( accordion, min, max ) {
+               var sizes = [];
+               accordion.find( ".ui-accordion-content" ).each(function() {
+                       sizes.push( $( this ).outerHeight() );
+               });
+               ok( sizes[ 0 ] >= min && sizes[ 0 ] <= max,
+                       "must be within " + min + " and " + max + ", was " + sizes[ 0 ] );
+               same( sizes[ 0 ], sizes[ 1 ] );
+               same( sizes[ 0 ], sizes[ 2 ] );
+       }
+       function accordionSetupTeardown() {
+               var animated = $.ui.accordion.prototype.options.animated;
+               return {
+                       setup: function() {
+                               $.ui.accordion.prototype.options.animated = false;
+                       },
+                       teardown: function() {
+                               $.ui.accordion.prototype.options.animated = animated;
+                       }
+               };
+       }
+       </script>
+       <script src="accordion_defaults_deprecated.js"></script>
+       <script src="accordion_core.js"></script>
+       <script src="accordion_events.js"></script>
+       <script src="accordion_methods.js"></script>
+       <script src="accordion_options.js"></script>
+       <script src="accordion_deprecated.js"></script>
+
+       <script src="../swarminject.js"></script>
+       <style>
+       #qunit-fixture { font-size: 10pt; font-family: "trebuchet ms", verdana, arial; }
+       #list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; line-height: 15px; }
+       </style>
+</head>
+<body>
+<h1 id="qunit-header">jQuery UI Accordion Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests"></ol>
+<div id="qunit-fixture">
+
+<div id="list1" class="foo">
+       <h3 class="bar"><a class="anchor">There is one obvious advantage:</a></h3>
+       <div class="foo">
+               <p>
+                       You've seen it coming!
+                       <br/>
+                       Buy now and get nothing for free!
+                       <br/>
+                       Well, at least no free beer. Perhaps a bear, if you can afford it.
+               </p>
+       </div>
+       <h3 class="bar"><a class="anchor">Now that you've got...</a></h3>
+       <div class="foo">
+               <p>
+                       your bear, you have to admit it!
+                       <br/>
+                       No, we aren't selling bears.
+               </p>
+               <p>
+                       We could talk about renting one.
+               </p>
+       </div>
+       <h3 class="bar"><a class="anchor">Rent one bear, ...</a></h3>
+       <div class="foo">
+               <p>
+                       get two for three beer.
+               </p>
+               <p>
+                       And now, for something completely different.
+               </p>
+       </div>
+</div>
+
+<div id="navigationWrapper">
+       <ul id="navigation">
+               <li>
+                       <h2><a href="?p=1.1.1">Guitar</a></h2>
+                       <ul>
+                               <li><a href="?p=1.1.1.1">Electric</a></li>
+                               <li><a href="?p=1.1.1.2">Acoustic</a></li>
+                               <li><a href="?p=1.1.1.3">Amps</a></li>
+                               <li><a href="?p=1.1.1.4">Effects</a></li>
+                               <li><a href="?p=1.1.1.5">Accessories</a></li>
+                       </ul> 
+               </li>
+               <li>
+                       <h2><a href="?p=1.1.2"><span>Bass</span></a></h2>
+                       <ul>
+                               <li><a href="?p=1.1.2.1">Electric</a></li>
+                               <li><a href="?p=1.1.2.2">Acoustic</a></li>
+                               <li><a href="?p=1.1.2.3">Amps</a></li>
+                               <li><a href="?p=1.1.2.4">Effects</a></li>
+                               <li><a href="?p=1.1.2.5">Accessories</a></li>
+                               <li><a href="?p=1.1.2.5">Accessories</a></li>
+                               <li><a href="?p=1.1.2.5">Accessories</a></li>
+                       </ul> 
+               </li>
+               <li>
+                       <h2><a href="?p=1.1.3">Drums</a></h2>
+                       <ul>
+                               <li><a href="?p=1.1.3.2">Acoustic Drums</a></li>
+                               <li><a href="?p=1.1.3.3">Electronic Drums</a></li>
+                               <li><a href="?p=1.1.3.6">Accessories</a></li>
+                       </ul> 
+               </li>
+       </ul>
+</div>
+
+<dl id="accordion-dl">
+       <dt>
+               <a href="#">Accordion Header 1</a>
+       </dt>
+       <dd>
+               Accordion Content 1
+       </dd>
+       <dt>
+               <a href="#">Accordion Header 2</a>
+       </dt>
+       <dd>
+               Accordion Content 2
+       </dd>
+       <dt>
+               <a href="#">Accordion Header 3</a>
+       </dt>
+       <dd>
+               Accordion Content 3
+       </dd>
+</dl>
+
+</div>
+</body>
+</html>
diff --git a/tests/unit/position/positio.html b/tests/unit/position/positio.html
deleted file mode 100644 (file)
index 156235d..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-       <meta charset="utf-8">
-       <title>jQuery UI Position Test Suite</title>
-
-       <script src="../../../jquery-1.5.1.js"></script>
-       <script src="../../../ui/jquery.ui.position.js"></script>
-
-       <link rel="stylesheet" href="../../../external/qunit.css">
-       <script src="../../../external/qunit.js"></script>
-       <script src="../../jquery.simulate.js"></script>
-       <script src="../testsuite.js"></script>
-
-       <script src="position_core.js"></script>
-       <script src="position_deprecated.js"></script>
-
-       <script src="../swarminject.js"></script>
-</head>
-<body>
-
-<h1 id="qunit-header">jQuery UI Position Test Suite</h1>
-<h2 id="qunit-banner"></h2>
-<div id="qunit-testrunner-toolbar"></div>
-<h2 id="qunit-userAgent"></h2>
-<ol id="qunit-tests">
-</ol>
-
-<!--
-elements smaller than 10px have a line-height set on them to avoid a bug in IE6
-.height() returns the greater of the height and line-height
--->
-
-<div id="qunit-fixture" style="top: 0; left: 0;">
-       <div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
-       <div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
-       <div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div>
-</div>
-
-<div style="position: absolute; top: 0px; left: 0px">
-       <div id="elx" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>
-       <div id="parentx" style="position: absolute; width: 20px; height: 20px; top: 40px; left: 40px;"></div>
-</div>
-
-<div style="position: absolute; top: 200px; left: 100px;">
-       <div id="el-offset-100-200" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>
-       <div style="position: absolute; top: 100px; left: 50px;">
-               <div id="el-two-offset-150-300" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>
-               <div id="el-fixed" style="position: fixed; top: 200px; left: 200px;"></div>
-       </div>
-</div>
-
-<div style="position: absolute; height: 5000px; width: 5000px;"></div>
-
-<div id="bug-5280" style="height: 30px; width: 201px;">
-       <div style="width: 50px; height: 10px;"></div>
-</div>
-
-</body>
-</html>
diff --git a/tests/unit/position/position_deprecated.html b/tests/unit/position/position_deprecated.html
new file mode 100644 (file)
index 0000000..156235d
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+       <meta charset="utf-8">
+       <title>jQuery UI Position Test Suite</title>
+
+       <script src="../../../jquery-1.5.1.js"></script>
+       <script src="../../../ui/jquery.ui.position.js"></script>
+
+       <link rel="stylesheet" href="../../../external/qunit.css">
+       <script src="../../../external/qunit.js"></script>
+       <script src="../../jquery.simulate.js"></script>
+       <script src="../testsuite.js"></script>
+
+       <script src="position_core.js"></script>
+       <script src="position_deprecated.js"></script>
+
+       <script src="../swarminject.js"></script>
+</head>
+<body>
+
+<h1 id="qunit-header">jQuery UI Position Test Suite</h1>
+<h2 id="qunit-banner"></h2>
+<div id="qunit-testrunner-toolbar"></div>
+<h2 id="qunit-userAgent"></h2>
+<ol id="qunit-tests">
+</ol>
+
+<!--
+elements smaller than 10px have a line-height set on them to avoid a bug in IE6
+.height() returns the greater of the height and line-height
+-->
+
+<div id="qunit-fixture" style="top: 0; left: 0;">
+       <div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
+       <div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
+       <div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div>
+</div>
+
+<div style="position: absolute; top: 0px; left: 0px">
+       <div id="elx" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>
+       <div id="parentx" style="position: absolute; width: 20px; height: 20px; top: 40px; left: 40px;"></div>
+</div>
+
+<div style="position: absolute; top: 200px; left: 100px;">
+       <div id="el-offset-100-200" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>
+       <div style="position: absolute; top: 100px; left: 50px;">
+               <div id="el-two-offset-150-300" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>
+               <div id="el-fixed" style="position: fixed; top: 200px; left: 200px;"></div>
+       </div>
+</div>
+
+<div style="position: absolute; height: 5000px; width: 5000px;"></div>
+
+<div id="bug-5280" style="height: 30px; width: 201px;">
+       <div style="width: 50px; height: 10px;"></div>
+</div>
+
+</body>
+</html>