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

Side by Side Diff: LayoutTests/fast/dom/HTMLTimeElement/time.html

Issue 28953005: Add support for <time> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTimeElement/time-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>HTMLTimeElement test</title>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <time datetime="1969-07-20"></time>
6 <script>
7 var time = document.querySelector("time");
8 test(function() {
9 assert_true(time instanceof Element);
10 assert_true(time instanceof HTMLElement);
11 assert_true(time instanceof HTMLTimeElement);
12 }, "HTMLTimeElement interface");
13 test(function() {
14 assert_equals(time.dateTime, "1969-07-20");
15 time.dateTime = "non-date";
16 assert_equals(time.getAttribute("datetime"), "non-date");
17 time.dateTime = null;
18 assert_equals(time.dateTime, "");
19 assert_false(time.hasAttribute("datetime"));
20 }, "HTMLTimeElement.dateTime");
21 </script>
22 <div id="log"></div>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTimeElement/time-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698