value-class-date-time-tests: Difference between revisions
(X2V 0.9.5 appears to fail value-dt-test-YYYY-MM-DD--0Ham-EEam) |
m (Replace <entry-title> with {{DISPLAYTITLE:}}) |
||
(23 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:value class pattern date and time tests}} | |||
This page provides links to individual test case pages for handling date and time values published using the [[value-class-pattern]]. | This page provides links to individual test case pages for handling date and time values published using the [[value-class-pattern]]. | ||
Line 10: | Line 10: | ||
=== hCalendar === | === hCalendar === | ||
* [[value-dt-test-YYYY-MM-DD--HH-MM]] - separate YYYY-MM-DD and HH:MM | * [[value-dt-test-YYYY-MM-DD--HH-MM]] - separate YYYY-MM-DD and HH:MM | ||
* [[value-dt-test-YYYY-MM-DD--H-MM]] - separate YYYY-MM-DD and H:MM | |||
* [[value-dt-test-abbr-YYYY-MM-DD--HH-MM]] - separate YYYY-MM-DD in abbr and HH:MM | * [[value-dt-test-abbr-YYYY-MM-DD--HH-MM]] - separate YYYY-MM-DD in abbr and HH:MM | ||
* [[value-dt-test-abbr-YYYY-MM-DD-abbr-HH-MM]] - separate YYYY-MM-DD in abbr and HH:MM in abbr | * [[value-dt-test-abbr-YYYY-MM-DD-abbr-HH-MM]] - separate YYYY-MM-DD in abbr and HH:MM in abbr | ||
* [[value-dt-test-YYYY-MM-DD--HHpm]] - separate YYYY-MM-DD and whole hour HH "pm" time | * [[value-dt-test-YYYY-MM-DD--HHpm]] - separate YYYY-MM-DD and whole hour HH "pm" time | ||
* [[value-dt-test-YYYY-MM-DD--HHpm--abbr-XX]] - separate YYYY-MM-DD, whole hour HH "pm" time, and -XX timezone in abbr | |||
* [[value-dt-test-YYYY-MM-DD--Hpm-EEpm]] - separate YYYY-MM-DD, single digit H "pm" start time, time only EE "pm" hours dtend (imply date from dtstart) | * [[value-dt-test-YYYY-MM-DD--Hpm-EEpm]] - separate YYYY-MM-DD, single digit H "pm" start time, time only EE "pm" hours dtend (imply date from dtstart) | ||
* [[value-dt-test-YYYY-MM-DD--abbr-HH-MMpm]] - separate YYYY-MM-DD, HH:MM "pm" start and end times in abbr, time only dtend (imply date from dtstart) | * [[value-dt-test-YYYY-MM-DD--abbr-HH-MMpm]] - separate YYYY-MM-DD, HH:MM "pm" start and end times in abbr, time only dtend (imply date from dtstart) | ||
* [[value-dt-test-YYYY-MM-DD--12am-12pm]] - separate YYYY-MM-DD, 12 "am" start time, time only 12 "pm" dtend (imply date from dtstart) | * [[value-dt-test-YYYY-MM-DD--12am-12pm]] - separate YYYY-MM-DD, 12 "am" start time, time only 12 "pm" dtend (imply date from dtstart) | ||
* [[value-dt-test-YYYY-MM-DD--H-MMam-Epm]] - separate YYYY-MM-DD, single-digit-hour H:MM "am" start time, time only single-digit E "pm" hours dtend (imply date from dtstart) | * [[value-dt-test-YYYY-MM-DD--H-MMam-Epm]] - separate YYYY-MM-DD, single-digit-hour H:MM "am" start time, time only single-digit E "pm" hours dtend (imply date from dtstart) | ||
* [[value-dt-test-YYYY-MM-DD--0Ham-EEam]] - separate YYYY-MM-DD, single-digit leading zero H " | * [[value-dt-test-YYYY-MM-DD--0Ham-EEam]] - separate YYYY-MM-DD, single-digit leading zero H "a.m." start time, time only double-digit EE "a.m." hours dtend (imply date from dtstart) | ||
* [[value-dt-test-YYYY-MM-DD--H-MM-SSpm-EE-NN-UUpm]] - separate YYYY-MM-DD, single-digit | * [[value-dt-test-YYYY-MM-DD--H-MM-SSpm-EE-NN-UUpm]] - separate YYYY-MM-DD, single-digit hour H:MM:SS " p.m." start time, time only double-digit hours EE:NN:UU " p.m." dtend (imply date from dtstart) | ||
* [[value-dt-test-YYYY-DDD--HH-MM-SS]] - separate YYYY-DDD and HH:MM:SS | * [[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-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-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-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). | * [[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 ==== | ||
Line 30: | Line 31: | ||
* [[value-dt-test-e-title-YYYY-MM-DD--HH-MM]] - separate YYYY-MM-DD in span (with errant value in title) and HH:MM in span (with errant value in title). | * [[value-dt-test-e-title-YYYY-MM-DD--HH-MM]] - separate YYYY-MM-DD in span (with errant value in title) and HH:MM in span (with errant value in title). | ||
* ... | * ... | ||
=== hAtom === | |||
* ... | |||
== results == | == 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. | 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. | ||
{| style="border:1px solid" | {| style="border:1px solid" | ||
! test !! [[X2V]] 0.9.5 | ! test !! [[X2V]] 0.9.7 || Firefox (FF) 3.5.8 + [[Operator]] 0.9.5.1 * || FF 3.6 + [[Operator]] 0.9.5.1 ** || FF 3.6.8 + [[Operator]] 0.9.5.6 | ||
|- | |||
| [[value-dt-test-YYYY-MM-DD--HH-MM]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpass|pass}} | |||
|- | |||
| [[value-dt-test-abbr-YYYY-MM-DD--HH-MM]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpass|pass}} | |||
|- | |||
| [[value-dt-test-abbr-YYYY-MM-DD-abbr-HH-MM]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpass|pass}} | |||
|- | |||
| [[value-dt-test-YYYY-MM-DD--HHpm]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpass|pass}} | |||
|- | |||
| [[value-dt-test-YYYY-MM-DD--Hpm-EEpm]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | |||
|- | |||
| [[value-dt-test-YYYY-MM-DD--abbr-HH-MMpm]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | |||
|- | |- | ||
| [[value-dt-test-YYYY-MM-DD-- | | [[value-dt-test-YYYY-MM-DD--12am-12pm]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | ||
|- | |- | ||
| [[value-dt-test | | [[value-dt-test-YYYY-MM-DD--H-MMam-Epm]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | ||
|- | |- | ||
| [[value-dt-test | | [[value-dt-test-YYYY-MM-DD--0Ham-EEam]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | ||
|- | |- | ||
| [[value-dt-test-YYYY-MM-DD-- | | [[value-dt-test-YYYY-MM-DD--H-MM-SSpm-EE-NN-UUpm]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | ||
|- | |- | ||
| [[value-dt-test-YYYY- | | [[value-dt-test-YYYY-DDD--HH-MM-SS]] || {{testfail|fail}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpass|pass}} | ||
|- | |- | ||
| [[value-dt-test-YYYY-MM-DD-- | | [[value-dt-test-YYYY-MM-DD--HH-MMZ-EE-NN-UUZ]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | ||
|- | |- | ||
| [[value-dt-test-YYYY-MM-DD-- | | [[value-dt-test-YYYY-MM-DD--HH-MM-XX-YY--EE-NN-UU--XXYY]] || {{testpass|pass}} || {{testpass|pass}} || {{testfail|fail}} || {{testpartial|end time missing}} | ||
|- | |- | ||
| [[value-dt-test-YYYY-MM-DD-- | | [[value-dt-test-YYYY-MM-DD--HH-MM-XX--EE-NN-UU--Y]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | ||
|- | |- | ||
| [[value-dt-test-YYYY-MM-DD-- | | [[value-dt-test-YYYY-MM-DD--HH-MM-SS-XXYY--EE-NN--Z]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpartial|end time missing}} | ||
|- | |||
| [[value-dt-test-e-title-YYYY-MM-DD--HH-MM]] || {{testpass|pass}} || {{testpass|pass}} || {{testpartial|partial}} || {{testpass|pass}} | |||
|} | |} | ||
;Notes | |||
: * [[User:Tantek|Tantek Çelik]] has found that these tests pass in Firefox 3.5.8 with Operator 0.9.5.1 by using the "Debug" option in Operator and looking at both the "Structure" and "vCard/iCalendar" tabs and verifying that both agree with expected output for the test. | |||
: ** [[User:Adactio|Jeremy Keith]] has found that these tests only partially pass in Firefox 3.6 with Operator 0.9.5.1 (and one test fails). For the partials, the date was correctly parsed, but not the time. In the one fail, the timezone field is misread as the end date. | |||
== old tests == | == old tests == |
Latest revision as of 16:33, 18 July 2020
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
- value-dt-test-YYYY-MM-DD--HH-MM - separate YYYY-MM-DD and HH:MM
- value-dt-test-YYYY-MM-DD--H-MM - separate YYYY-MM-DD and H:MM
- value-dt-test-abbr-YYYY-MM-DD--HH-MM - separate YYYY-MM-DD in abbr and HH:MM
- value-dt-test-abbr-YYYY-MM-DD-abbr-HH-MM - separate YYYY-MM-DD in abbr and HH:MM in abbr
- value-dt-test-YYYY-MM-DD--HHpm - separate YYYY-MM-DD and whole hour HH "pm" time
- value-dt-test-YYYY-MM-DD--HHpm--abbr-XX - separate YYYY-MM-DD, whole hour HH "pm" time, and -XX timezone in abbr
- value-dt-test-YYYY-MM-DD--Hpm-EEpm - separate YYYY-MM-DD, single digit H "pm" start time, time only EE "pm" hours dtend (imply date from dtstart)
- value-dt-test-YYYY-MM-DD--abbr-HH-MMpm - separate YYYY-MM-DD, HH:MM "pm" start and end times in abbr, time only dtend (imply date from dtstart)
- value-dt-test-YYYY-MM-DD--12am-12pm - separate YYYY-MM-DD, 12 "am" start time, time only 12 "pm" dtend (imply date from dtstart)
- value-dt-test-YYYY-MM-DD--H-MMam-Epm - separate YYYY-MM-DD, single-digit-hour H:MM "am" start time, time only single-digit E "pm" hours dtend (imply date from dtstart)
- value-dt-test-YYYY-MM-DD--0Ham-EEam - separate YYYY-MM-DD, single-digit leading zero H "a.m." start time, time only double-digit EE "a.m." 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 " p.m." start time, time only double-digit hours EE:NN:UU " p.m." dtend (imply date from dtstart)
- value-dt-test-YYYY-DDD--HH-MM-SS - separate YYYY-DDD and HH:MM:SS
- value-dt-test-YYYY-MM-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
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.
- value-dt-test-e-title-YYYY-MM-DD--HH-MM - separate YYYY-MM-DD in span (with errant value in title) and HH:MM in span (with errant value in title).
- ...
hAtom
- ...
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.
- Notes
- * Tantek Çelik has found that these tests pass in Firefox 3.5.8 with Operator 0.9.5.1 by using the "Debug" option in Operator and looking at both the "Structure" and "vCard/iCalendar" tabs and verifying that both agree with expected output for the test.
- ** Jeremy Keith has found that these tests only partially pass in Firefox 3.6 with Operator 0.9.5.1 (and one test fails). For the partials, the date was correctly parsed, but not the time. In the one fail, the timezone field is misread as the end date.
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: