summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStephen Vance <steve@vance.com>2013-07-27 21:52:50 -0400
committerStephen Vance <steve@vance.com>2013-07-27 21:52:50 -0400
commit2a567a38184d0ca9d2d6163aae8360164449677d (patch)
treefc0ddb532aad0015279c20600f92556d2235b179 /test
parent356868a0a2516de9cadb0163b5bffc50edb1b9ff (diff)
downloadjQuery-Timepicker-Addon-2a567a38184d0ca9d2d6163aae8360164449677d.zip
jQuery-Timepicker-Addon-2a567a38184d0ca9d2d6163aae8360164449677d.tar.gz
jQuery-Timepicker-Addon-2a567a38184d0ca9d2d6163aae8360164449677d.tar.bz2
Remove the microsecond TODO after verifying intent with Trent. Rename the local fixture variables.
Diffstat (limited to 'test')
-rw-r--r--test/jquery-ui-timepicker-addon_spec.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/jquery-ui-timepicker-addon_spec.js b/test/jquery-ui-timepicker-addon_spec.js
index 8c49f08..a204b33 100644
--- a/test/jquery-ui-timepicker-addon_spec.js
+++ b/test/jquery-ui-timepicker-addon_spec.js
@@ -543,17 +543,16 @@ describe('datetimepicker', function() {
});
});
- // TODO: Should microseconds be three digits or six? Does this complement millis or replace? The regexp looks like it replaces.
describe('microseconds', function() {
it('formats c correctly', function() {
- var singleDigitMillis = {microsec: 3},
- doubleDigitMillis = {microsec: 17},
- tripleDigitMillis = {microsec: 123};
+ var singleDigitMicros = {microsec: 3},
+ doubleDigitMicros = {microsec: 17},
+ tripleDigitMicros = {microsec: 123};
expect($.datepicker.formatTime('c', emptyTime)).toBe('000');
- expect($.datepicker.formatTime('c', singleDigitMillis)).toBe('003');
- expect($.datepicker.formatTime('c', doubleDigitMillis)).toBe('017');
- expect($.datepicker.formatTime('c', tripleDigitMillis)).toBe('123');
+ expect($.datepicker.formatTime('c', singleDigitMicros)).toBe('003');
+ expect($.datepicker.formatTime('c', doubleDigitMicros)).toBe('017');
+ expect($.datepicker.formatTime('c', tripleDigitMicros)).toBe('123');
});
});