summaryrefslogtreecommitdiffstats
path: root/test/jquery-ui-timepicker-addon_spec.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix failure when setting date as nullJulien Sanchez2013-11-251-1/+14
| | | | | Otherwise, Timepicker is breaking Datepicker compatibility by not accepting null value.
* Jshint motivated cleanups in the spec.Stephen Vance2013-07-281-7/+7
|
* Preserve leading and trailing whitespace. Don't second guess the developer ↵Stephen Vance2013-07-281-0/+10
| | | | who specified whitespace in their format.
* Time zone and literal tests, as well as some additional cases for the ↵Stephen Vance2013-07-281-8/+46
| | | | timezoneOffsetString() tests based on the timezone work. Changed the default timezone to null and eliminated double quotes from the regexp for literals.
* Fix some weak warnings in the timezoneOffsetString tests.Stephen Vance2013-07-281-3/+3
|
* Test the literal handling in formatTime() a little more and fix a warning ↵Stephen Vance2013-07-281-1/+3
| | | | and a curious behavior.
* Add tests for single quotes.Stephen Vance2013-07-271-1/+4
|
* Add tests for am/pm.Stephen Vance2013-07-271-1/+26
|
* Remove the microsecond TODO after verifying intent with Trent. Rename the ↵Stephen Vance2013-07-271-7/+6
| | | | local fixture variables.
* Start the tests for $.datepicker.formatTime(), fix a bug in it for ↵Stephen Vance2013-07-271-1/+111
| | | | microsecond handling, and change the method comments to jsdoc.
* Use the alias for the timepicker utils to simplify the tests.Stephen Vance2013-07-141-6/+6
|
* Refactor the dateFormat in the parseDateTimeInternal tests.Stephen Vance2013-07-141-3/+5
|
* Refactor splitDateTime() signature to eliminate two unused parameters.Stephen Vance2013-07-141-4/+4
|
* I dug into the project history to figure out how to test the error path of ↵Stephen Vance2013-07-141-2/+0
| | | | splitDateTime() and discovered that the code that motivated the error path was replaced but the error handling it required was not removed. Error handling added to parseDate() override in commit 4496926c00b6b2caebfa93603bdcaff438294c19. Refactored to splitDateTime() in e7c7d4024db3e331003db105036667702c8e4bd8. Happy path implementation replaced in b838a211e32022f942b359c7835cd3fadb024759.
* Write direct tests for the new computeEffectiveSetting() function. Leave the ↵Stephen Vance2013-07-141-0/+26
| | | | corresponding variants of splitDateTime() because it still exercises other important facets of the algorithm.
* Now that the basic time and date parsing functions are test protected, make ↵Stephen Vance2013-07-141-4/+4
| | | | splitDateTime() return an object instead of an array to simplify the code a bit.
* Tests for parseDateTimeInternal(). The exception test found a bug.Stephen Vance2013-07-141-0/+44
|
* Tests for splitDateTime, except for error paths.Stephen Vance2013-07-131-0/+45
|
* Add placeholder for handleRange, but I'm not quite ready to tackle that one yet.Stephen Vance2013-07-131-0/+4
|
* Simplify range convenience function tests.Stephen Vance2013-07-131-29/+20
|
* Test the callers of timepicker.handleRange. The tests are a bit ↵Stephen Vance2013-07-131-0/+39
| | | | implementational, but that's all the methods under test do.
* Test timepicker.timezoneAdjust()Stephen Vance2013-07-121-0/+23
|
* Test timepicker.log()Stephen Vance2013-07-121-0/+23
|
* Test timepicker.timezoneOffsetString(). Fix lower range issue and simplify ↵Stephen Vance2013-07-081-0/+45
| | | | formatting of output string by eliminating 'magic' 101 values.
* Start tests for timepicker functions. Test timezoneOffsetNumber() and fix ↵Stephen Vance2013-07-071-0/+25
| | | | seeming deviation from intent, although not in a likely meaningful way.
* Write tests for selectLocalTimezone and do some minor simplification.Stephen Vance2013-07-061-0/+43
|
* Rename util to _util to make it clearer it's not to be used normally.Stephen Vance2013-07-061-1/+1
|
* Wrote tests for detectSupport, fixed a bug in AM/PM detection, simplified ↵Stephen Vance2013-07-061-0/+63
| | | | isIn() function, and eliminated unnecessary escapes in regular expression.
* Test and simplify convert24to12, including making it resistant to out of ↵Stephen Vance2013-07-061-0/+24
| | | | bounds values.
* Test two of the utility functions and fix a bug that was found.Stephen Vance2013-07-061-2/+66
|
* Set up Jasmine spec, spec runner, and support JSsStephen Vance2013-07-061-0/+5