W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2013

[Bug 21222] Tests that depend on a fixed timezone (UTC)

From: <bugzilla@jessica.w3.org>
Date: Fri, 15 Mar 2013 19:21:02 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-21222-523-mzIUw0dO3F@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21222

--- Comment #4 from Christian Gruen <christian.gruen@gmail.com> ---
The fixes for the following tests look perfect to me:

- cbcl-gMonthDay-equal-019 
- cbcl-gMonthDay-equal-020 
- cbcl-subtract-dates-003 
- cbcl-subtract-dates-004 
- cbcl-subtract-dateTimes-003 
- cbcl-subtract-dateTimes-004 
- cbcl-subtract-times-001
- cbcl-subtract-times-002 
- cbcl-subtract-times-003 
- cbcl-subtract-times-004 

I’m not sure about the following ones, though:

- cbcl-gDay-equal-019 
- cbcl-gDay-equal-020 
- cbcl-time-equal-019 

As I assume that the timezone check (+PT1M) will never be true, I guess that
the second branch will be chosen in all cases, which always gives me "false" in
my timezone. The following query should yield "true" everywhere on this globe:

  xs:gDay("---31+00:01") ne xs:gDay("---31")

> Suggestions are welcome to resolve the problems with
>
> - cbcl-time-greater-than-004 
> ...

These queries could as well be resolved with artificial timezones, such as...

  xs:time("00:00:00+00:01") gt xs:time("00:00:00")

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 15 March 2013 19:21:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:52 UTC