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

From Microformats Wiki
Jump to navigation Jump to search
(→‎hCalendar: noted a.m. and " p.m." test variants (periods and preceding space))
(updated results)
Line 37: Line 37:
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.6
|-  
|-  
| [[value-dt-test-YYYY-MM-DD--HH-MM]] || <div style="text-align:center;background:#cfc ">pass</div>
| [[value-dt-test-YYYY-MM-DD--HH-MM]] || <div style="text-align:center;background:#cfc ">pass</div>
Line 49: Line 49:
| [[value-dt-test-YYYY-MM-DD--Hpm-EEpm]] || <div style="text-align:center;background:#cfc">pass</div>
| [[value-dt-test-YYYY-MM-DD--Hpm-EEpm]] || <div style="text-align:center;background:#cfc">pass</div>
|-  
|-  
| [[value-dt-test-YYYY-MM-DD--abbr-HH-MMpm]] || <div style="text-align:center;background:#fcc">fail</div>
| [[value-dt-test-YYYY-MM-DD--abbr-HH-MMpm]] || <div style="text-align:center;background:#cfc">pass</div>
|-  
|-  
| [[value-dt-test-YYYY-MM-DD--12am-12pm]] || <div style="text-align:center;background:#cfc">pass</div>
| [[value-dt-test-YYYY-MM-DD--12am-12pm]] || <div style="text-align:center;background:#cfc">pass</div>
|-  
|-  
| [[value-dt-test-YYYY-MM-DD--H-MMam-Epm]] || <div style="text-align:center;background:#fcc">fail</div>
| [[value-dt-test-YYYY-MM-DD--H-MMam-Epm]] || <div style="text-align:center;background:#cfc">pass</div>
|-  
|-  
| [[value-dt-test-YYYY-MM-DD--0Ham-EEam]] || <div style="text-align:center;background:#fcc">fail</div>
| [[value-dt-test-YYYY-MM-DD--0Ham-EEam]] || <div style="text-align:center;background:#cfc">pass</div>
|-  
|-  
| [[value-dt-test-YYYY-MM-DD--H-MM-SSpm-EE-NN-UUpm]] || <div style="text-align:center;background:#fcc">fail</div>
| [[value-dt-test-YYYY-MM-DD--H-MM-SSpm-EE-NN-UUpm]] || <div style="text-align:center;background:#cfc">pass</div>
|-  
|-  
| [[value-dt-test-YYYY-DDD--HH-MM-SS]] || <div style="text-align:center;background:#fcc">fail</div>
| [[value-dt-test-YYYY-DDD--HH-MM-SS]] || <div style="text-align:center;background:#cfc">pass</div>
|-  
|-  
| [[value-dt-test-YYYY-MM-DD--HH-MMZ-EE-NN-UUZ]] || <div style="text-align:center;background:#fcc">fail</div>
| [[value-dt-test-YYYY-MM-DD--HH-MMZ-EE-NN-UUZ]] || <div style="text-align:center;background:#fcc">fail</div>
Line 69: Line 69:
| [[value-dt-test-YYYY-MM-DD--HH-MM-SS-XXYY--EE-NN--Z]] || <div style="text-align:center;background:#fcc">fail</div>
| [[value-dt-test-YYYY-MM-DD--HH-MM-SS-XXYY--EE-NN--Z]] || <div style="text-align:center;background:#fcc">fail</div>
|-  
|-  
| [[value-dt-test-e-title-YYYY-MM-DD--HH-MM]] || <div style="text-align:center;background:#fcc">fail</div>
| [[value-dt-test-e-title-YYYY-MM-DD--HH-MM]] || <div style="text-align:center;background:#cfc">pass</div>
|}
|}


== old tests ==
== old tests ==

Revision as of 13:16, 4 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.

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.

test X2V 0.9.6
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
value-dt-test-YYYY-MM-DD--HHpm
pass
value-dt-test-YYYY-MM-DD--Hpm-EEpm
pass
value-dt-test-YYYY-MM-DD--abbr-HH-MMpm
pass
value-dt-test-YYYY-MM-DD--12am-12pm
pass
value-dt-test-YYYY-MM-DD--H-MMam-Epm
pass
value-dt-test-YYYY-MM-DD--0Ham-EEam
pass
value-dt-test-YYYY-MM-DD--H-MM-SSpm-EE-NN-UUpm
pass
value-dt-test-YYYY-DDD--HH-MM-SS
pass
value-dt-test-YYYY-MM-DD--HH-MMZ-EE-NN-UUZ
fail
value-dt-test-YYYY-MM-DD--HH-MM-XX-YY--EE-NN-UU--XXYY
fail
value-dt-test-YYYY-MM-DD--HH-MM-XX--EE-NN-UU--Y
fail
value-dt-test-YYYY-MM-DD--HH-MM-SS-XXYY--EE-NN--Z
fail
value-dt-test-e-title-YYYY-MM-DD--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