aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/droppable
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-19 10:27:06 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-19 10:28:26 -0400
commit0a5a9090f827cd186ac486344327bcbb3901fd34 (patch)
tree085dfcb5a99db48b464bff91e112a37cf6e206af /tests/unit/droppable
parent58a120bb4b022b3d2237aabaa960e42d9fe821ba (diff)
downloadjquery-ui-0a5a9090f827cd186ac486344327bcbb3901fd34.tar.gz
jquery-ui-0a5a9090f827cd186ac486344327bcbb3901fd34.zip
Tests: Lint.
Diffstat (limited to 'tests/unit/droppable')
-rw-r--r--tests/unit/droppable/droppable_core.js10
-rw-r--r--tests/unit/droppable/droppable_defaults.js28
-rw-r--r--tests/unit/droppable/droppable_options.js4
3 files changed, 17 insertions, 25 deletions
diff --git a/tests/unit/droppable/droppable_core.js b/tests/unit/droppable/droppable_core.js
index 4d82017b9..3f709d25d 100644
--- a/tests/unit/droppable/droppable_core.js
+++ b/tests/unit/droppable/droppable_core.js
@@ -17,15 +17,15 @@ function shouldNotBeDroppable() {
module("droppable: core");
test("element types", function() {
- var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form'
- + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr'
- + ',acronym,code,samp,kbd,var,img,object,hr'
- + ',input,button,label,select,iframe').split(',');
+ var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form' +
+ ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr' +
+ ',acronym,code,samp,kbd,var,img,object,hr' +
+ ',input,button,label,select,iframe').split(',');
$.each(typeNames, function(i) {
var typeName = typeNames[i];
el = $(document.createElement(typeName)).appendTo('body');
- (typeName == 'table' && el.append("<tr><td>content</td></tr>"));
+ (typeName === 'table' && el.append("<tr><td>content</td></tr>"));
el.droppable();
shouldBeDroppable();
el.droppable("destroy");
diff --git a/tests/unit/droppable/droppable_defaults.js b/tests/unit/droppable/droppable_defaults.js
index 7584f5ec8..5a1a4198c 100644
--- a/tests/unit/droppable/droppable_defaults.js
+++ b/tests/unit/droppable/droppable_defaults.js
@@ -1,16 +1,12 @@
-/*
- * droppable_defaults.js
- */
-
-var droppable_defaults = {
- accept: '*',
- activeClass: false,
- addClasses: true,
- disabled: false,
- greedy: false,
- hoverClass: false,
- scope: "default",
- tolerance: "intersect"
-};
-
-commonWidgetTests('droppable', { defaults: droppable_defaults });
+commonWidgetTests( "droppable", {
+ defaults: {
+ accept: "*",
+ activeClass: false,
+ addClasses: true,
+ disabled: false,
+ greedy: false,
+ hoverClass: false,
+ scope: "default",
+ tolerance: "intersect"
+ }
+});
diff --git a/tests/unit/droppable/droppable_options.js b/tests/unit/droppable/droppable_options.js
index 4df2d9ecb..19295778b 100644
--- a/tests/unit/droppable/droppable_options.js
+++ b/tests/unit/droppable/droppable_options.js
@@ -6,8 +6,6 @@
module("droppable: options");
test("{ accept '*' }, default ", function() {
- equal(droppable_defaults.accept, '*');
-
ok(false, 'missing test - untested code is broken code');
});
@@ -24,8 +22,6 @@ test("activeClass", function() {
});
test("{ addClasses: true }, default", function() {
- equal(droppable_defaults.addClasses, true);
-
el = $("<div></div>").droppable({ addClasses: true });
ok(el.is(".ui-droppable"), "'ui-droppable' class added");
el.droppable("destroy");