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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTimeElement/time-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLTimeElement/time.html
diff --git a/LayoutTests/fast/dom/HTMLTimeElement/time.html b/LayoutTests/fast/dom/HTMLTimeElement/time.html
new file mode 100644
index 0000000000000000000000000000000000000000..e42be4d026e3d81ee7a56badf7e1e442194ab4cf
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLTimeElement/time.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<title>HTMLTimeElement test</title>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<time datetime="1969-07-20"></time>
+<script>
+var time = document.querySelector("time");
+test(function() {
+ assert_true(time instanceof Element);
+ assert_true(time instanceof HTMLElement);
+ assert_true(time instanceof HTMLTimeElement);
+}, "HTMLTimeElement interface");
+test(function() {
+ assert_equals(time.dateTime, "1969-07-20");
+ time.dateTime = "non-date";
+ assert_equals(time.getAttribute("datetime"), "non-date");
+ time.dateTime = null;
+ assert_equals(time.dateTime, "");
+ assert_false(time.hasAttribute("datetime"));
+}, "HTMLTimeElement.dateTime");
+</script>
+<div id="log"></div>
« 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