value-class-date-time-tests: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(incorporate variations that include testing :MM minutes w/wo am/pm, and :SS seconds w/wo am/pm)
(→‎hCalendar: add tests for timezones, combined with time and separate, and ordinal date - provides sufficient combinatorial coverage of value class pattern date time parsing)
Line 19: Line 19:
* [[value-dt-test-YYYY-MM-DD--0Ham-EEam]] - separate YYYY-MM-DD, single-digit leading zero H "am" start time, time only double-digit EE "am" hours dtend (imply date from dtstart)
* [[value-dt-test-YYYY-MM-DD--0Ham-EEam]] - separate YYYY-MM-DD, single-digit leading zero H "am" start time, time only double-digit EE "am" hours dtend (imply date from dtstart)
* [[value-dt-test-YYYY-MM-DD--H-MM-SSpm-EE-NN-UUpm]] - separate YYYY-MM-DD, single-digit-hour H:MM:SS "pm" start time, time only double-digit EE:NN:UU "pm" hours dtend (imply date from dtstart)
* [[value-dt-test-YYYY-MM-DD--H-MM-SSpm-EE-NN-UUpm]] - separate YYYY-MM-DD, single-digit-hour H:MM:SS "pm" start time, time only double-digit EE:NN:UU "pm" hours dtend (imply date from dtstart)
* [[value-dt-test-YYYY-DDD--HH-MM-SS]] - separate YYYY-DDD and HH:MM:SS
* [[value-dt-test-YYYY-DD-HH-MMZ-EE-NN-UUZ]] - separate YYYY-MM-DD, HH:MM explicit Z start time, and EE:NN:UUZ end time (imply date from dtstart)
* [[value-dt-test-YYYY-MM-DD--HH-MM-XX-YY--EE-NN-UU--XXYY]] - separate YYYY-MM-DD, HH:MM with -XX:YY timezone, end time EE:NN:UU with separate -XXYY timezone (imply date from dtstart).
* [[value-dt-test-YYYY-MM-DD--HH-MM-XX--EE-NN-UU--Y]] - separate YYYY-MM-DD, HH:MM with +XX timezone, end time EE:NN:UU with separate single-digit-hour +Y timezone (imply date from dtstart).
* [[value-dt-test-YYYY-MM-DD--HH-MM-SS-XXYY--EE-NN--Z]] - separate YYYY-MM-DD, HH:MM:SS with +XXYY timezone, end time EE:NN with separate Z timezone (imply date from dtstart).
* ...
* ...
==== error tests ====
==== error tests ====
Tests are necessary to make sure implementations aren't "over" implementing some aspects, and properly handling errors in markup, e.g. using the "title" attribute when they shouldn't be.
Tests are necessary to make sure implementations aren't "over" implementing some aspects, and properly handling errors in markup, e.g. using the "title" attribute when they shouldn't be.

Revision as of 07:51, 1 October 2009

<entry-title>value class pattern date and time tests</entry-title> This page provides links to individual test case pages for handling date and time values published using the value-class-pattern.

short URL
http://tr.im/vcpdt

tests

Tests grouped by microformat:

hCalendar

error tests

Tests are necessary to make sure implementations aren't "over" implementing some aspects, and properly handling errors in markup, e.g. using the "title" attribute when they shouldn't be.

results

This table documents implementations that support at least some value class pattern features. As implementations pass at least one of the tests above, they should be added to this table.

test X2V 0.9.3
value-dt-test-YYYY-MM-DD--HH-MM
pass
value-dt-test-abbr-YYYY-MM-DD--HH-MM
pass
value-dt-test-abbr-YYYY-MM-DD-abbr-HH-MM
pass

old tests

The handling of date and time values in the value class pattern was originally brainstormed on the value-excerption-pattern-brainstorming page and the following page of tests was used to make sure pattern both worked for publishers and was reasonably parsable:

see also