1 | /*
|
---|
2 | * droppable_core.js
|
---|
3 | */
|
---|
4 |
|
---|
5 | var el, drg;
|
---|
6 |
|
---|
7 | function shouldBeDroppable() {
|
---|
8 | ok(false, 'missing test - untested code is broken code');
|
---|
9 | }
|
---|
10 |
|
---|
11 | function shouldNotBeDroppable() {
|
---|
12 | ok(false, 'missing test - untested code is broken code');
|
---|
13 | }
|
---|
14 |
|
---|
15 | (function($) {
|
---|
16 |
|
---|
17 | module("droppable: core");
|
---|
18 |
|
---|
19 | test("element types", function() {
|
---|
20 | var typeNames = ('p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,dl,div,form'
|
---|
21 | + ',table,fieldset,address,ins,del,em,strong,q,cite,dfn,abbr'
|
---|
22 | + ',acronym,code,samp,kbd,var,img,object,hr'
|
---|
23 | + ',input,button,label,select,iframe').split(',');
|
---|
24 |
|
---|
25 | $.each(typeNames, function(i) {
|
---|
26 | var typeName = typeNames[i];
|
---|
27 | el = $(document.createElement(typeName)).appendTo('body');
|
---|
28 | (typeName == 'table' && el.append("<tr><td>content</td></tr>"));
|
---|
29 | el.droppable();
|
---|
30 | shouldBeDroppable();
|
---|
31 | el.droppable("destroy");
|
---|
32 | el.remove();
|
---|
33 | });
|
---|
34 | });
|
---|
35 |
|
---|
36 | })(jQuery);
|
---|