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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/dom/documents/resource-metadata-management/document-lastModified.html

Issue 2657583002: Import wpt@cf62b859e6b890abc34f8140d185ba91df95c5b6 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 3 years, 10 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>document.lastModified</title>
4 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
5 <link rel=help href="https://html.spec.whatwg.org/multipage/#resource-metadata-m anagement">
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <div id="log"></div>
9 <script>
10 test(function(){
11 var date = new Date("Thu, 01 Jan 1970 01:23:45 GMT");
12 var result = ('0' + (date.getMonth()+1)).slice(-2) + '/' + ('0' + date.getDa te()).slice(-2) + '/' + date.getFullYear() + " " + [date.getHours(),date.getMinu tes(),date.getSeconds()].map(function(n){return ("0" + n).slice(-2);}).join(":") ;
13 assert_equals(document.lastModified, result);
14 }, "lastModified should return the last modified date and time");
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698