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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/domtimestamp-is-number.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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
Index: third_party/WebKit/LayoutTests/fast/dom/domtimestamp-is-number.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/domtimestamp-is-number.html b/third_party/WebKit/LayoutTests/fast/dom/domtimestamp-is-number.html
index b844acfaf4512923a4b63df0659c6284d33a1db8..8d19328b12b5d1e3e82fd7287fb64fd032599db4 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/domtimestamp-is-number.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/domtimestamp-is-number.html
@@ -4,6 +4,19 @@
<script src="../../resources/js-test.js"></script>
</head>
<body onload="do_check(event)">
-<script src="script-tests/domtimestamp-is-number.js"></script>
+<script>
+description("This tests that DOMTimeStamp is a Number (and not a Date object).");
+// See https://bugs.webkit.org/show_bug.cgi?id=49963
+
+var timestamp = null;
+
+function do_check(e) {
+ timestamp = e.timeStamp;
+ shouldBeFalse("timestamp instanceof Date");
+ shouldBeTrue("timestamp == Number(timestamp)");
+ finishJSTest();
+}
+window.jsTestIsAsync = true;
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698