@@ -96,6 +96,7 @@ <h2>Parsing</h2>
96
96
< li > < abbr id ="testParsing8 " class ="todate " title ="1978-12-18 17:17:00.021Z "> </ abbr > [from Z with milliseconds]</ li >
97
97
< li > < abbr id ="testParsing9 " class ="todate " title ="1978-12-18 17:17:00.021432Z "> </ abbr > [from Z with microseconds]</ li >
98
98
< li > < abbr id ="testParsing10 " class ="todate " title ="1978-12-18 17:17:00.0Z "> </ abbr > [from Z with tenths of a second]</ li >
99
+ < li > < abbr id ="testParsing11 " class ="todate " title ="1978-12-18 17:17:00.02Z "> </ abbr > [from Z with hundreths of a second]</ li >
99
100
</ ul >
100
101
101
102
< h2 > Wording</ h2 >
@@ -320,43 +321,59 @@ <h2>Settings</h2>
320
321
var correctMatch = / M o n , 1 8 D e c 1 9 7 8 1 7 : 1 7 : 0 0 ( G M T | U T C ) / ;
321
322
322
323
test ( "From Z" , function ( ) {
323
- ok ( ( $ ( "#testParsing1" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
324
+ var time = $ ( "#testParsing1" ) ;
325
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
324
326
} ) ;
325
327
326
328
test ( "From -00:00" , function ( ) {
327
- ok ( ( $ ( "#testParsing2" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
329
+ var time = $ ( "#testParsing2" ) ;
330
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
328
331
} ) ;
329
332
330
333
test ( "From -05:00" , function ( ) {
331
- ok ( ( $ ( "#testParsing3" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
334
+ var time = $ ( "#testParsing3" ) ;
335
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
332
336
} ) ;
333
337
334
338
test ( "From -0500" , function ( ) {
335
- ok ( ( $ ( "#testParsing4" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
339
+ var time = $ ( "#testParsing4" ) ;
340
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
336
341
} ) ;
337
342
338
343
test ( "From +09:00" , function ( ) {
339
- ok ( ( $ ( "#testParsing5" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
344
+ var time = $ ( "#testParsing5" ) ;
345
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
340
346
} ) ;
341
347
342
348
test ( "From +0900" , function ( ) {
343
- ok ( ( $ ( "#testParsing6" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
349
+ var time = $ ( "#testParsing6" ) ;
350
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
344
351
} ) ;
345
352
346
353
test ( "From blank TZ" , function ( ) {
347
- ok ( ( $ ( "#testParsing7" ) . html ( ) . match ( / M o n , 1 8 D e c 1 9 7 8 \d \d : 1 7 : 0 0 ( G M T | U T C ) / ) ) , "Correctly parsed, assumed local time" ) ;
354
+ var time = $ ( "#testParsing7" ) ;
355
+ var correctMatch = / M o n , 1 8 D e c 1 9 7 8 \d \d : 1 7 : 0 0 ( G M T | U T C ) / ;
356
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
348
357
} ) ;
349
358
350
359
test ( "From Z with milliseconds" , function ( ) {
351
- ok ( ( $ ( "#testParsing8" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
360
+ var time = $ ( "#testParsing8" ) ;
361
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
352
362
} ) ;
353
363
354
364
test ( "From Z with microseconds" , function ( ) {
355
- ok ( ( $ ( "#testParsing9" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
365
+ var time = $ ( "#testParsing9" ) ;
366
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
356
367
} ) ;
357
368
358
369
test ( "From Z with tenths of a second" , function ( ) {
359
- ok ( ( $ ( "#testParsing10" ) . html ( ) . match ( correctMatch ) ) , "Correctly parsed" ) ;
370
+ var time = $ ( "#testParsing10" ) ;
371
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
372
+ } ) ;
373
+
374
+ test ( "From Z with hundreths of a second" , function ( ) {
375
+ var time = $ ( "#testParsing11" ) ;
376
+ ok ( ( time . html ( ) . match ( correctMatch ) ) , "Correctly parsed " + time . attr ( "title" ) ) ;
360
377
} ) ;
361
378
362
379
module ( "Wording" ) ;
0 commit comments