Commits

Mark Lavin  committed b68ed89

Fixing some bad tests.

  • Participants
  • Parent commits acdd221

Comments (0)

Files changed (1)

File selectable/tests/qunit/index.html

         var djselectableAutoLoad = false;
     </script>
     <script type="text/javascript" src="../../static/selectable/js/jquery.dj.selectable.js"></script>
-    
     <script>
     $(document).ready(function(){
         module("Text Autocomplete");
             var hidden = $('#id_comboselect_1');
             ok(input.data('djselectable'), "input should be bound with djselecable widget");
             ok(!hidden.data('djselectable'), "hidden should not be bound with djselecable widget");
+            var button = $('button', '#combo-select');
+            equal(button.attr('title'), 'Show All Items', "combobox button should be created");
         });
         test("item selection", function() {
             bindSelectables('#combo-select-initial');
             ok(input.data('djselectable'), "input should be bound with djselecable widget");
             ok(deck.hasClass('selectable-deck'), 'deck should have selectable-deck class');
             equal($('li', deck).length, 0, 'no initial deck items');
+            var button = $('button', '#multi-combo');
+            equal(button.attr('title'), 'Show All Items', "combobox button should be created");
         }); 
         test("item selection", function() {
             bindSelectables('#multi-combo-initial');
             <input name="multiselect-initial_1" title="Initial" value="0" data-selectable-type="hidden-multiple" type="hidden" id="id_multiselect-initial_1_0">
         </div>
         <div id="multi-combo">
-            <input data-selectable-multiple="true" name="multicombo_0" data-selectable-type="text" data-selectable-position="bottom" data-selectable-allow-new="false" data-selectable-url="/_/core-fruitlookup/" type="text" id="id_multicombo_0" />
+            <input data-selectable-multiple="true" name="multicombo_0" data-selectable-type="combobox" data-selectable-position="bottom" data-selectable-allow-new="false" data-selectable-url="/_/core-fruitlookup/" type="text" id="id_multicombo_0" />
         </div>
         <div id="multi-combo-initial">
-            <input data-selectable-multiple="true" name="multicombo-initial_0" data-selectable-type="text" data-selectable-position="bottom" data-selectable-allow-new="false" data-selectable-url="/_/core-fruitlookup/" type="text" id="id_multicombo-initial_0" />
+            <input data-selectable-multiple="true" name="multicombo-initial_0" data-selectable-type="combobox" data-selectable-position="bottom" data-selectable-allow-new="false" data-selectable-url="/_/core-fruitlookup/" type="text" id="id_multicombo-initial_0" />
             <input name="multicombo-initial_1" title="Initial" value="0" data-selectable-type="hidden-multiple" type="hidden" id="id_multicombo-initial_1_0">
         </div>
     </div>