Mark Lavin avatar Mark Lavin committed b68ed89

Fixing some bad tests.

Comments (0)

Files changed (1)

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>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.