Bug
1863338 [wpt PR 42973] - Make XHR document.lastModified test handle summer to winter time change., a=testonly
Automatic update from web-platform-tests
Make XHR document.lastModified test handle summer to winter time change.
document.lastModified is a legacy API which is tricky to test because it
reports times in the local timezone, but without any timezone indicator.
Such times cannot be reliably converted to UTC, because times during the
hour on either side of the change from summer to winter time produce the
same local time string as times on the other side of the change.
This change moves the code in document-lastModified-01.html that already
deals with this complexity into a shared support script and then uses it
to fix the equivalent test in responsexml-document-properties.htm, which
still has failures around the change from summer time to winter time, as
document-lastModified-01.html used to have. This also renames the moved
function and constant to fit better in a separate support script.
Bug:
1382239
Change-Id: I3f45cdaae3908016235c715f8e7400b6eaf6492b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
5006704
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/main@{#
1220700}
--
wpt-commits:
4bd41bb00b97d753b7c0a75146c23243296918b2
wpt-pr: 42973