|
3 | 3 | */
|
4 | 4 | (function($) {
|
5 | 5 |
|
6 |
| -module("droppable: options"); |
| 6 | +module( "droppable: options" ); |
7 | 7 |
|
8 | 8 | /*
|
9 |
| -test("{ accept '*' }, default ", function() { |
| 9 | +test( "{ accept '*' }, default ", function() { |
10 | 10 | ok(false, 'missing test - untested code is broken code');
|
11 | 11 | });
|
12 | 12 |
|
13 |
| -test("{ accept: Selector }", function() { |
| 13 | +test( "{ accept: Selector }", function() { |
14 | 14 | ok(false, 'missing test - untested code is broken code');
|
15 | 15 | });
|
16 | 16 |
|
17 |
| -test("{ accept: function(draggable) }", function() { |
| 17 | +test( "{ accept: function(draggable) }", function() { |
18 | 18 | ok(false, 'missing test - untested code is broken code');
|
19 | 19 | });
|
20 | 20 |
|
21 |
| -test("activeClass", function() { |
| 21 | +test( "activeClass", function() { |
22 | 22 | ok(false, 'missing test - untested code is broken code');
|
23 | 23 | });
|
24 | 24 | */
|
25 |
| -test("{ addClasses: true }, default", function() { |
| 25 | +test( "{ addClasses: true }, default", function() { |
26 | 26 | expect( 1 );
|
27 |
| - var el = $("<div></div>").droppable({ addClasses: true }); |
28 |
| - ok(el.is(".ui-droppable"), "'ui-droppable' class added"); |
29 |
| - el.droppable("destroy"); |
| 27 | + var el = $( "<div />" ).droppable({ addClasses: true }); |
| 28 | + ok( el.is( ".ui-droppable" ), "'ui-droppable' class added" ); |
| 29 | + el.droppable( "destroy" ); |
30 | 30 | });
|
31 | 31 |
|
32 |
| -test("{ addClasses: false }", function() { |
| 32 | +test( "{ addClasses: false }", function() { |
33 | 33 | expect( 1 );
|
34 |
| - var el = $("<div></div>").droppable({ addClasses: false }); |
35 |
| - ok(!el.is(".ui-droppable"), "'ui-droppable' class not added"); |
36 |
| - el.droppable("destroy"); |
| 34 | + var el = $( "<div />" ).droppable({ addClasses: false }); |
| 35 | + ok( !el.is( ".ui-droppable" ), "'ui-droppable' class not added" ); |
| 36 | + el.droppable( "destroy" ); |
37 | 37 | });
|
38 | 38 |
|
39 | 39 | test( "scope", function() {
|
40 | 40 | expect( 4 );
|
41 | 41 | var droppableOffset, draggableOffset, oldDraggableOffset, dx, dy,
|
42 |
| - draggable1 = $("<div></div>").appendTo( "#qunit-fixture" ).draggable({ revert: "invalid" }), |
43 |
| - draggable2 = $("<div></div>").appendTo( "#qunit-fixture" ).droppable(), |
44 |
| - droppable = $("<div></div>").appendTo( "#qunit-fixture" ).droppable(), |
45 |
| - newScope = "test"; |
| 42 | + draggable1 = $( "<div />" ).appendTo( "#qunit-fixture" ).draggable({ revert: "invalid" }), |
| 43 | + draggable2 = $( "<div />" ).appendTo( "#qunit-fixture" ).droppable(), |
| 44 | + droppable = $( "<div />" ).appendTo( "#qunit-fixture" ).droppable(), |
| 45 | + newScope = "test"; |
46 | 46 |
|
47 | 47 | draggable1.draggable( "option", "scope", newScope );
|
48 | 48 | droppable.droppable( "option", "scope", newScope );
|
@@ -78,19 +78,19 @@ test( "scope", function() {
|
78 | 78 | equal( draggableOffset.top, oldDraggableOffset.top );
|
79 | 79 | });
|
80 | 80 | /*
|
81 |
| -test("greedy", function() { |
| 81 | +test( "greedy", function() { |
82 | 82 | ok(false, 'missing test - untested code is broken code');
|
83 | 83 | });
|
84 | 84 |
|
85 |
| -test("hoverClass", function() { |
| 85 | +test( "hoverClass", function() { |
86 | 86 | ok(false, 'missing test - untested code is broken code');
|
87 | 87 | });
|
88 | 88 |
|
89 |
| -test("tolerance, fit", function() { |
| 89 | +test( "tolerance, fit", function() { |
90 | 90 | ok(false, 'missing test - untested code is broken code');
|
91 | 91 | });
|
92 | 92 |
|
93 |
| -test("tolerance, intersect", function() { |
| 93 | +test( "tolerance, intersect", function() { |
94 | 94 | ok(false, 'missing test - untested code is broken code');
|
95 | 95 | });
|
96 | 96 | */
|
@@ -135,7 +135,7 @@ test( "tolerance, pointer", function() {
|
135 | 135 | });
|
136 | 136 |
|
137 | 137 | /*
|
138 |
| -test("tolerance, touch", function() { |
| 138 | +test( "tolerance, touch", function() { |
139 | 139 | ok(false, 'missing test - untested code is broken code');
|
140 | 140 | });
|
141 | 141 | */
|
|
0 commit comments