]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Correct all 404 errors in the test suite
authorMike Sherov <mike.sherov@gmail.com>
Wed, 2 Jan 2013 23:03:03 +0000 (18:03 -0500)
committerMike Sherov <mike.sherov@gmail.com>
Wed, 2 Jan 2013 23:03:03 +0000 (18:03 -0500)
tests/unit/datepicker/datepicker_methods.js
tests/unit/datepicker/datepicker_options.js
tests/unit/datepicker/images/calendar.gif [new file with mode: 0644]
tests/unit/sortable/sortable.html

index 77217e4492ad3d7725ecaece1fccc1c861cd22ec..e52e126d2e692ae3bc9b7c355abea0045e95dbf5 100644 (file)
@@ -39,7 +39,7 @@ test("destroy", function() {
        ok(inp.next().is("#alt"), "Append - append text removed");
        // With both
        inp= TestHelpers.datepicker.init("#inp", {showOn: "both", buttonImageOnly: true,
-               buttonImage: "img/calendar.gif", appendText: "Testing"});
+               buttonImage: "images/calendar.gif", appendText: "Testing"});
        ok(inp.is(".hasDatepicker"), "Both - marker class set");
        ok($.data(inp[0], TestHelpers.datepicker.PROP_NAME), "Both - instance present");
        ok(inp.next()[0].nodeName.toLowerCase() === "img", "Both - button added");
@@ -92,7 +92,7 @@ test("enableDisable", function() {
        inp.datepicker("destroy");
        // With an image button
        inp = TestHelpers.datepicker.init("#inp", {showOn: "button", buttonImageOnly: true,
-               buttonImage: "img/calendar.gif"});
+               buttonImage: "images/calendar.gif"});
        ok(!inp.datepicker("isDisabled"), "Enable/disable image - initially marked as enabled");
        ok(!inp[0].disabled, "Enable/disable image - field initially enabled");
        ok(parseFloat(inp.next("img").css("opacity")) === 1, "Enable/disable image - image initially enabled");
index 5603dc87be56910974a23c23d60193c45aec820e..e47235786dda43f169a31614c34ed31ba2bb2a71 100644 (file)
@@ -145,13 +145,13 @@ asyncTest("invocation", function() {
        function step3() {
                // On image button
                inp = TestHelpers.datepicker.init("#inp", {showOn: "button", buttonImageOnly: true,
-                       buttonImage: "img/calendar.gif", buttonText: "Cal"});
+                       buttonImage: "images/calendar.gif", buttonText: "Cal"});
                ok(!dp.is(":visible"), "Image button - initially hidden");
                button = inp.siblings("button");
                ok(button.length === 0, "Image button - button absent");
                image = inp.siblings("img");
                ok(image.length === 1, "Image button - image present");
-               equal(image.attr("src"), "img/calendar.gif", "Image button - image source");
+               equal(image.attr("src"), "images/calendar.gif", "Image button - image source");
                equal(image.attr("title"), "Cal", "Image button - image text");
                inp[0].focus();
                setTimeout(function() {
@@ -168,7 +168,7 @@ asyncTest("invocation", function() {
 
        function step4() {
                // On both
-               inp = TestHelpers.datepicker.init("#inp", {showOn: "both", buttonImage: "img/calendar.gif"});
+               inp = TestHelpers.datepicker.init("#inp", {showOn: "both", buttonImage: "images/calendar.gif"});
                ok(!dp.is(":visible"), "Both - initially hidden");
                button = inp.siblings("button");
                ok(button.length === 1, "Both - button present");
diff --git a/tests/unit/datepicker/images/calendar.gif b/tests/unit/datepicker/images/calendar.gif
new file mode 100644 (file)
index 0000000..d0abaa7
Binary files /dev/null and b/tests/unit/datepicker/images/calendar.gif differ
index 9736cf9ee2b02459169c1f9287c1d88f24be689a..c23a15854e4efe1325633fafcd5739122aa727db 100644 (file)
@@ -11,7 +11,7 @@
        <script src="../testsuite.js"></script>
        <script>
        TestHelpers.loadResources({
-               css: [ "ui.core", "ui.sortable" ],
+               css: [ "ui.core" ],
                js: [
                        "ui/jquery.ui.core.js",
                        "ui/jquery.ui.widget.js",