Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html

Issue 1453993002: update-w3c-deps import using blink cc6d84edb87e89c363ab48dac8a983213b9dc02c: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip imported/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler.html Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html
index f1808415a28247547f2683ebab7ed048b8791e99..7006067a0f2aac65332877ef9756b668b0df57c0 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/resource-metadata-management/document-lastModified-01.html
@@ -25,14 +25,18 @@
var minutes = d.getMinutes()
var seconds = d.getSeconds()
- test(function() {
- var local_time = hours * 60 * 60 + minutes * 60 + seconds;
- var m = pattern.exec(last_modified);
- var last_modified_time = parseInt(m[1]) * 60 * 60 + parseInt(m[2]) * 60 + parseInt(m[3]);
- assert_approx_equals(last_modified_time, local_time, 2,
- "Hours and minutes should match local time.");
- }, "Date returned by lastModified is in the user's local time zone.");
-
+ // Checking whether d and and new instance of Date have the same timezone.
+ // Do not run the time zone test in the case daylight saving occurs.
+ var d2 = new Date();
+ if (d2.getTimezoneOffset() == d.getTimezoneOffset()) {
+ test(function() {
+ var local_time = hours * 60 * 60 + minutes * 60 + seconds;
+ var m = pattern.exec(last_modified);
+ var last_modified_time = parseInt(m[1]) * 60 * 60 + parseInt(m[2]) * 60 + parseInt(m[3]);
+ assert_approx_equals(last_modified_time, local_time, 2,
+ "Hours and minutes should match local time.");
+ }, "Date returned by lastModified is in the user's local time zone.");
+ }
var t = async_test("Date returned by lastModified is current after timeout.");
setTimeout(function() {

Powered by Google App Engine
This is Rietveld 408576698