From 29f7dc9a2c078495f6a0ed13c531733146528fb4 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Tue, 18 Nov 2008 02:55:25 +0000 Subject: Removed all trailing whitespace from .js and .html files --- tests/accordion.html | 8 +- tests/accordion.js | 2 +- tests/all.html | 6 +- tests/all_2.html | 6 +- tests/core.html | 8 +- tests/core.js | 20 ++--- tests/datepicker.html | 4 +- tests/dialog.html | 8 +- tests/dialog.js | 138 +++++++++++++++---------------- tests/draggable.html | 8 +- tests/draggable.js | 110 ++++++++++++------------ tests/droppable.html | 4 +- tests/droppable.js | 2 +- tests/progressbar.html | 8 +- tests/progressbar.js | 2 +- tests/resizable.html | 6 +- tests/resizable.js | 62 +++++++------- tests/selectable.html | 8 +- tests/simulate/jquery.simulate.js | 14 ++-- tests/slider.html | 8 +- tests/slider.js | 18 ++-- tests/sortable.html | 8 +- tests/sortable.js | 8 +- tests/spinner.html | 8 +- tests/spinner.js | 14 ++-- tests/tabs.html | 4 +- tests/tabs.js | 74 ++++++++--------- tests/ui.html | 8 +- tests/visual/effects.all.html | 46 +++++------ tests/visual/effects.all.js | 40 ++++----- tests/visual/sortable_massive_scale.html | 4 +- tests/visual/spinner.html | 6 +- tests/visual/tree.html | 2 +- 33 files changed, 336 insertions(+), 336 deletions(-) (limited to 'tests') diff --git a/tests/accordion.html b/tests/accordion.html index 2f9d2ca17..569a5d6d3 100644 --- a/tests/accordion.html +++ b/tests/accordion.html @@ -2,13 +2,13 @@ jQuery UI Accordion Test Suite - + - + @@ -109,7 +109,7 @@ Cool kids are blue. - +
Tennis
@@ -134,7 +134,7 @@
- + diff --git a/tests/accordion.js b/tests/accordion.js index 6ede9bc06..5ac24fd9d 100644 --- a/tests/accordion.js +++ b/tests/accordion.js @@ -133,7 +133,7 @@ test("accessibility", function () { expect(9); var ac = $('#list1').accordion().accordion("activate", 1); var headers = $(".ui-accordion-header"); - + equals( headers.eq(1).attr("tabindex"), "0", "active header should have tabindex=0"); equals( headers.eq(0).attr("tabindex"), "-1", "inactive header should have tabindex=-1"); equals( ac.attr("role"), "tablist", "main role"); diff --git a/tests/all.html b/tests/all.html index f12089682..fb80ad8c1 100644 --- a/tests/all.html +++ b/tests/all.html @@ -18,7 +18,7 @@ - + @@ -152,7 +152,7 @@ Cool kids are blue. - +
Tennis
@@ -222,7 +222,7 @@
- +
\ No newline at end of file diff --git a/tests/all_2.html b/tests/all_2.html index 5a55a324c..2c2a24adf 100644 --- a/tests/all_2.html +++ b/tests/all_2.html @@ -33,10 +33,10 @@ } } - + }); - + @@ -51,7 +51,7 @@ - + diff --git a/tests/core.html b/tests/core.html index 5da16011a..edb61fda1 100644 --- a/tests/core.html +++ b/tests/core.html @@ -2,16 +2,16 @@ jQuery UI Core Test Suite - + - + - + - + diff --git a/tests/core.js b/tests/core.js index 0836fb588..4be475486 100644 --- a/tests/core.js +++ b/tests/core.js @@ -7,7 +7,7 @@ module("selectors"); test("tabbable - enabled elements", function() { expect(10); - + ok( $('#input1-1').is(':tabbable'), 'input, no type'); ok( $('#input1-2').is(':tabbable'), 'input, type text'); ok( $('#input1-3').is(':tabbable'), 'input, type checkbox'); @@ -22,7 +22,7 @@ test("tabbable - enabled elements", function() { test("tabbable - disabled elements", function() { expect(8); - + ok(!$('#input2-1').is(':tabbable'), 'input, no type'); ok(!$('#input2-2').is(':tabbable'), 'input, type text'); ok(!$('#input2-3').is(':tabbable'), 'input, type checkbox'); @@ -35,7 +35,7 @@ test("tabbable - disabled elements", function() { test("tabbable - hidden styles", function() { expect(6); - + ok(!$('#input3-1').is(':tabbable'), 'input, hidden wrapper - display: none'); ok(!$('#anchor3-1').is(':tabbable'), 'anchor, hidden wrapper - display: none'); ok(!$('#input3-2').is(':tabbable'), 'input, hidden wrapper - visibility: hidden'); @@ -46,7 +46,7 @@ test("tabbable - hidden styles", function() { test("tabbable - tabindex", function() { expect(4); - + ok( $('#input4-1').is(':tabbable'), 'input, tabindex 0'); ok( $('#input4-2').is(':tabbable'), 'input, tabindex 10'); ok(!$('#input4-3').is(':tabbable'), 'input, tabindex -1'); @@ -57,20 +57,20 @@ module('jQuery extensions'); test("attr - aria", function() { expect(6); - + var el = $('#aria'); - + ok(!el.attr('role'), 'role is empty via attr'); equals(el.attr('role', 'tablist').attr('role'), 'tablist', 'role is tablist'); - + equals(el.attr('aria-expanded'), undefined, 'aria expanded is undefined'); - + el.attr('aria-expanded', true); equals(el.attr('aria-expanded'), 'true', 'aria expanded is true'); - + el.removeAttr('aria-expanded'); equals(el.attr('aria-expanded'), undefined, 'aria expanded is undefined after removing'); - + el.attr('aria-expanded', false); equals(el.attr('aria-expanded'), 'false', 'aria expanded is false'); }); diff --git a/tests/datepicker.html b/tests/datepicker.html index 4ace4ad17..8d927147e 100644 --- a/tests/datepicker.html +++ b/tests/datepicker.html @@ -2,7 +2,7 @@ jQuery UI Datepicker Test Suite - + @@ -10,7 +10,7 @@ - + diff --git a/tests/dialog.html b/tests/dialog.html index 503485038..8d3ac1935 100644 --- a/tests/dialog.html +++ b/tests/dialog.html @@ -5,18 +5,18 @@ - + - + - + - + diff --git a/tests/dialog.js b/tests/dialog.js index 8c68ae6e2..c12266781 100644 --- a/tests/dialog.js +++ b/tests/dialog.js @@ -114,24 +114,24 @@ module("dialog"); test("init", function() { expect(6); - + $("
").appendTo('body').dialog().remove(); ok(true, '.dialog() called on element'); - + $([]).dialog().remove(); ok(true, '.dialog() called on empty collection'); - + $('
').dialog().remove(); ok(true, '.dialog() called on disconnected DOMElement'); - + $('
').dialog().dialog("foo").remove(); ok(true, 'arbitrary method called after init'); - + el = $('
').dialog(); var foo = el.data("foo.dialog"); el.remove(); ok(true, 'arbitrary option getter after init'); - + $('
').dialog().data("foo.dialog", "bar").remove(); ok(true, 'arbitrary option setter after init'); }); @@ -193,22 +193,22 @@ test("defaults", function() { test("title id", function() { expect(3); - + var titleId; - + // reset the uuid so we know what values to expect $.ui.dialog.uuid = 0; - + el = $('
').dialog(); titleId = dlg().find('.ui-dialog-title').attr('id'); equals(titleId, 'ui-dialog-title-1', 'auto-numbered title id'); el.remove(); - + el = $('
').dialog(); titleId = dlg().find('.ui-dialog-title').attr('id'); equals(titleId, 'ui-dialog-title-2', 'auto-numbered title id'); el.remove(); - + el = $('
').dialog(); titleId = dlg().find('.ui-dialog-title').attr('id'); equals(titleId, 'ui-dialog-title-foo', 'carried over title id'); @@ -219,11 +219,11 @@ module("dialog: Options"); test("autoOpen", function() { expect(2); - + el = $('
').dialog({ autoOpen: false }); isNotOpen('.dialog({ autoOpen: false })'); el.remove(); - + el = $('
').dialog({ autoOpen: true }); isOpen('.dialog({ autoOpen: true })'); el.remove(); @@ -231,12 +231,12 @@ test("autoOpen", function() { test("autoResize", function() { expect(2); - + var actual, before, expected, handle; - + el = $('
content
content
content
content
content
').dialog({ autoResize: false }); expected = { height: el.height() }; handle = $(".ui-resizable-se", dlg()); @@ -256,7 +256,7 @@ test("autoResize", function() { test("buttons", function() { expect(17); - + var buttons = { "Ok": function(ev, ui) { ok(true, "button click fires callback"); @@ -269,20 +269,20 @@ test("buttons", function() { equals(ev.target, btn[1], "event target"); } }; - + el = $('
').dialog({ buttons: buttons }); var btn = $("button", dlg()); equals(btn.length, 2, "number of buttons"); - + var i = 0; $.each(buttons, function(key, val) { equals(btn.eq(i).text(), key, "text of button " + (i+1)); i++; }); - + equals(btn.parent().attr('className'), 'ui-dialog-buttonpane', "buttons in container"); btn.trigger("click"); - + var newButtons = { "Close": function(ev, ui) { ok(true, "button click fires callback"); @@ -290,35 +290,35 @@ test("buttons", function() { equals(ev.target, btn[0], "event target"); } }; - + equals(el.data("buttons.dialog"), buttons, '.data("buttons.dialog") getter'); el.data("buttons.dialog", newButtons); equals(el.data("buttons.dialog"), newButtons, '.data("buttons.dialog", ...) setter'); - + btn = $("button", dlg()); equals(btn.length, 1, "number of buttons after setter"); btn.trigger('click'); - + i = 0; $.each(newButtons, function(key, val) { equals(btn.eq(i).text(), key, "text of button " + (i+1)); i += 1; }); - + el.remove(); }); test("dialogClass", function() { expect(4); - + el = $('
').dialog(); equals(dlg().is(".foo"), false, 'dialogClass not specified. foo class added'); el.remove(); - + el = $('
').dialog({ dialogClass: "foo" }); equals(dlg().is(".foo"), true, 'dialogClass in init. foo class added'); el.remove(); - + el = $('
').dialog({ dialogClass: "foo bar" }); equals(dlg().is(".foo"), true, 'dialogClass in init, two classes. foo class added'); equals(dlg().is(".bar"), true, 'dialogClass in init, two classes. bar class added'); @@ -327,13 +327,13 @@ test("dialogClass", function() { test("draggable", function() { expect(4); - + el = $('
').dialog({ draggable: false }); shouldnotmove(); el.data('draggable.dialog', true); shouldmove(); el.remove(); - + el = $('
').dialog({ draggable: true }); shouldmove(); el.data('draggable.dialog', false); @@ -343,15 +343,15 @@ test("draggable", function() { test("height", function() { expect(3); - + el = $('
').dialog(); equals(dlg().height(), defaults.height, "default height"); el.remove(); - + el = $('
').dialog({ height: 437 }); equals(dlg().height(), 437, "explicit height"); el.remove(); - + el = $('
').dialog(); el.data('height.dialog', 438); equals(dlg().height(), 438, "explicit height set after init"); @@ -360,17 +360,17 @@ test("height", function() { test("maxHeight", function() { expect(3); - + el = $('
').dialog({ maxHeight: 400 }); drag('.ui-resizable-s', 1000, 1000); equals(heightAfter, 400, "maxHeight"); el.remove(); - + el = $('
').dialog({ maxHeight: 400 }); drag('.ui-resizable-n', -1000, -1000); equals(heightAfter, 400, "maxHeight"); el.remove(); - + el = $('
').dialog({ maxHeight: 400 }).data('maxHeight.dialog', 600); drag('.ui-resizable-n', -1000, -1000); equals(heightAfter, 600, "maxHeight"); @@ -379,17 +379,17 @@ test("maxHeight", function() { test("maxWidth", function() { expect(3); - + el = $('
').dialog({ maxWidth: 400 }); drag('.ui-resizable-e', 1000, 1000); equals(widthAfter, 400, "maxWidth"); el.remove(); - + el = $('
').dialog({ maxWidth: 400 }); drag('.ui-resizable-w', -1000, -1000); equals(widthAfter, 400, "maxWidth"); el.remove(); - + el = $('
').dialog({ maxWidth: 400 }).data('maxWidth.dialog', 600); drag('.ui-resizable-w', -1000, -1000); equals(widthAfter, 600, "maxWidth"); @@ -398,17 +398,17 @@ test("maxWidth", function() { test("minHeight", function() { expect(3); - + el = $('
').dialog({ minHeight: 10 }); drag('.ui-resizable-s', -1000, -1000); equals(heightAfter, 10, "minHeight"); el.remove(); - + el = $('
').dialog({ minHeight: 10 }); drag('.ui-resizable-n', 1000, 1000); equals(heightAfter, 10, "minHeight"); el.remove(); - + el = $('
').dialog({ minHeight: 10 }).data('minHeight.dialog', 30); drag('.ui-resizable-n', 1000, 1000); equals(heightAfter, 30, "minHeight"); @@ -417,17 +417,17 @@ test("minHeight", function() { test("minWidth", function() { expect(3); - + el = $('
').dialog({ minWidth: 10 }); drag('.ui-resizable-e', -1000, -1000); equals(widthAfter, 10, "minWidth"); el.remove(); - + el = $('
').dialog({ minWidth: 10 }); drag('.ui-resizable-w', 1000, 1000); equals(widthAfter, 10, "minWidth"); el.remove(); - + el = $('
').dialog({ minWidth: 30 }).data('minWidth.dialog', 30); drag('.ui-resizable-w', 1000, 1000); equals(widthAfter, 30, "minWidth"); @@ -448,13 +448,13 @@ test("position", function() { test("resizable", function() { expect(4); - + el = $('
').dialog(); shouldresize("[default]"); el.data('resizable.dialog', false); shouldnotresize('disabled after init'); el.remove(); - + el = $('
').dialog({ resizable: false }); shouldnotresize("disabled in init options"); el.data('resizable.dialog', true); @@ -468,27 +468,27 @@ test("stack", function() { test("title", function() { expect(5); - + function titleText() { return dlg().find(".ui-dialog-title").html(); } - + el = $('
').dialog(); equals(titleText(), " ", "[default]"); el.remove(); - + el = $('
').dialog(); equals(titleText(), "foo", "title in element attribute"); el.remove(); - + el = $('
').dialog({ title: 'foo' }); equals(titleText(), "foo", "title in init options"); el.remove(); - + el = $('
').dialog({ title: 'bar' }); equals(titleText(), "bar", "title in init options should override title in element attribute"); el.remove(); - + el = $('
').dialog().data('title.dialog', 'foo'); equals(titleText(), 'foo', 'title after init'); el.remove(); @@ -496,11 +496,11 @@ test("title", function() { test("width", function() { expect(3); - + el = $('
').dialog(); equals(dlg().width(), defaults.width, "default width"); el.remove(); - + el = $('
').dialog({width: 437 }); equals(dlg().width(), 437, "explicit width"); el.data('width.dialog', 438); @@ -512,13 +512,13 @@ module("dialog: Methods"); test("isOpen", function() { expect(4); - + el = $('
').dialog(); equals(el.dialog('isOpen'), true, "dialog is open after init"); el.dialog('close'); equals(el.dialog('isOpen'), false, "dialog is closed"); el.remove(); - + el = $('
').dialog({autoOpen: false}); equals(el.dialog('isOpen'), false, "dialog is closed after init"); el.dialog('open'); @@ -530,7 +530,7 @@ module("dialog: Callbacks"); test("open", function() { expect(6); - + el = $("
"); el.dialog({ open: function(ev, ui) { @@ -539,7 +539,7 @@ test("open", function() { } }); el.remove(); - + el = $("
"); el.dialog({ autoOpen: false, @@ -550,7 +550,7 @@ test("open", function() { }); el.dialog("open"); el.remove(); - + el = $('
').dialog({ autoOpen: false }); @@ -564,7 +564,7 @@ test("open", function() { test("dragStart", function() { expect(2); - + el = $("
"); el.dialog({ dragStart: function(ev, ui) { @@ -579,7 +579,7 @@ test("dragStart", function() { test("drag", function() { var fired = false; - + el = $("
"); el.dialog({ drag: function(ev, ui) { @@ -595,7 +595,7 @@ test("drag", function() { test("dragStop", function() { expect(2); - + el = $("
"); el.dialog({ dragStop: function(ev, ui) { @@ -610,7 +610,7 @@ test("dragStop", function() { test("resizeStart", function() { expect(2); - + el = $("
"); el.dialog({ resizeStart: function(ev, ui) { @@ -625,7 +625,7 @@ test("resizeStart", function() { test("resize", function() { var fired = false; - + el = $("
"); el.dialog({ resize: function(ev, ui) { @@ -641,7 +641,7 @@ test("resize", function() { test("resizeStop", function() { expect(2); - + el = $("
"); el.dialog({ resizeStop: function(ev, ui) { @@ -656,7 +656,7 @@ test("resizeStop", function() { test("close", function() { expect(4); - + el = $('
').dialog({ close: function(ev, ui) { ok(true, '.dialog("close") fires close callback'); @@ -665,7 +665,7 @@ test("close", function() { }); el.dialog("close"); el.remove(); - + el = $('
').dialog().bind('dialogclose', function(ev, ui) { ok(true, '.dialog("close") firse dialogclose event'); equals(this, el[0], 'context of event'); @@ -676,7 +676,7 @@ test("close", function() { test("beforeclose", function() { expect(6); - + el = $('
').dialog({ beforeclose: function(ev, ui) { ok(true, '.dialog("close") fires beforeclose callback'); @@ -687,7 +687,7 @@ test("beforeclose", function() { el.dialog('close'); isOpen('beforeclose callback should prevent dialog from closing'); el.remove(); - + el = $('
').dialog().bind('dialogbeforeclose', function(ev, ui) { ok(true, '.dialog("close") triggers dialogbeforeclose event'); equals(this, el[0], "context of event"); diff --git a/tests/draggable.html b/tests/draggable.html index 0c17d6d84..2c936f757 100644 --- a/tests/draggable.html +++ b/tests/draggable.html @@ -4,16 +4,16 @@ jQuery UI Draggable Test Suite - + - + - + - + diff --git a/tests/simulate/jquery.simulate.js b/tests/simulate/jquery.simulate.js index 85deb23f9..11face36e 100644 --- a/tests/simulate/jquery.simulate.js +++ b/tests/simulate/jquery.simulate.js @@ -23,7 +23,7 @@ $.fn.extend({ $.simulate = function(el, type, options) { this.target = el; this.options = options; - + if (/^drag$/.test(type)) { this[type].apply(this, [this.target, options]); } else { @@ -52,9 +52,9 @@ $.extend($.simulate.prototype, { ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, button: 0, relatedTarget: undefined }, options); - + var relatedTarget = $(e.relatedTarget)[0]; - + if ($.isFunction(document.createEvent)) { evt = document.createEvent("MouseEvents"); evt.initMouseEvent(type, e.bubbles, e.cancelable, e.view, e.detail, @@ -70,12 +70,12 @@ $.extend($.simulate.prototype, { }, keyboardEvent: function(type, options) { var evt; - + var e = $.extend({ bubbles: true, cancelable: true, view: window, ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, keyCode: 0, charCode: 0 }, options); - + if ($.isFunction(document.createEvent)) { try { evt = document.createEvent("KeyEvents"); @@ -100,7 +100,7 @@ $.extend($.simulate.prototype, { } return evt; }, - + dispatchEvent: function(el, type, evt) { if (el.dispatchEvent) { el.dispatchEvent(evt); @@ -109,7 +109,7 @@ $.extend($.simulate.prototype, { } return evt; }, - + drag: function(el) { var self = this, center = this.findCenter(this.target), options = this.options, x = Math.floor(center.x), y = Math.floor(center.y), diff --git a/tests/slider.html b/tests/slider.html index 55355ac28..fd352ef87 100644 --- a/tests/slider.html +++ b/tests/slider.html @@ -4,14 +4,14 @@ jQuery UI Slider Test Suite - + - + - +