]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker tests: Fixed setting of option.
authorScott González <scott.gonzalez@gmail.com>
Tue, 13 Nov 2012 15:34:31 +0000 (10:34 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 13 Nov 2012 15:34:31 +0000 (10:34 -0500)
tests/unit/datepicker/datepicker_core.js

index 86f71a1c4f992e0913da37cee7c01f9eae7d96e5..ae51b41d066771213ef63bb1ae438e51f47a7b44 100644 (file)
@@ -146,7 +146,7 @@ test('customStructure', function() {
                dp = $('#ui-datepicker-div'),
                // Check right-to-left localisation
                inp = TestHelpers.datepicker.init('#inp', $.datepicker.regional.he);
-       inp.data('showButtonPanel.datepicker',true);
+       inp.datepicker( 'option', 'showButtonPanel', true);
        inp.focus();
        ok(dp.is('.ui-datepicker-rtl'), 'Structure RTL - right-to-left');
        header = dp.children(':first');