source: main/trunk/greenstone3/web/interfaces/oran/js/jquery-ui-1.8rc1/tests/unit/droppable/droppable_core.js@ 24245

Last change on this file since 24245 was 24245, checked in by sjb48, 13 years ago

Oran code for supporting format changes to document.

  • Property svn:executable set to *
File size: 878 bytes
Line 
1/*
2 * droppable_core.js
3 */
4
5var el, drg;
6
7function shouldBeDroppable() {
8 ok(false, 'missing test - untested code is broken code');
9}
10
11function shouldNotBeDroppable() {
12 ok(false, 'missing test - untested code is broken code');
13}
14
15(function($) {
16
17module("droppable: core");
18
19test("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);
Note: See TracBrowser for help on using the repository browser.