From cf7dc089e00b781e4fb237da3b3e856cf996c7ed Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Wed, 2 Jan 2013 18:03:03 -0500 Subject: [PATCH] Tests: Correct all 404 errors in the test suite --- tests/unit/datepicker/datepicker_methods.js | 4 ++-- tests/unit/datepicker/datepicker_options.js | 6 +++--- tests/unit/datepicker/images/calendar.gif | Bin 0 -> 269 bytes tests/unit/sortable/sortable.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 tests/unit/datepicker/images/calendar.gif diff --git a/tests/unit/datepicker/datepicker_methods.js b/tests/unit/datepicker/datepicker_methods.js index 77217e449..e52e126d2 100644 --- a/tests/unit/datepicker/datepicker_methods.js +++ b/tests/unit/datepicker/datepicker_methods.js @@ -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"); diff --git a/tests/unit/datepicker/datepicker_options.js b/tests/unit/datepicker/datepicker_options.js index 5603dc87b..e47235786 100644 --- a/tests/unit/datepicker/datepicker_options.js +++ b/tests/unit/datepicker/datepicker_options.js @@ -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 index 0000000000000000000000000000000000000000..d0abaa7c0b892e781b6f553453a0027efea014b9 GIT binary patch literal 269 zcmZ?wbhEHb6kyoJ#dt% zaYstuiRe5}O|8;NEA%ba6j)5k7TbN(gNwC&D)Y{1Cu2PhDy(ymnp7_1Ai(k{X>FbJ zg$yQ1aX#U+v{)u7c4kS5=DdO;0Y*k<=8BdGnYaWYcOkak83LIJ0`39}`h<8zSFc^O QT3n!+Z|k=0I}{nL0T`orxBvhE literal 0 HcmV?d00001 diff --git a/tests/unit/sortable/sortable.html b/tests/unit/sortable/sortable.html index 9736cf9ee..c23a15854 100644 --- a/tests/unit/sortable/sortable.html +++ b/tests/unit/sortable/sortable.html @@ -11,7 +11,7 @@