summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-10-08 13:26:05 -0700
committerRich Trott <rtrott@gmail.com>2018-10-10 15:07:52 -0700
commit63308308000a97939d94f9f06eb2b6b16fb9adee (patch)
treeb84ab995ac0773e91b946c842a276096ae994e5c
parent8a0cc7afc3878b437845fa655869bd636aba9fdb (diff)
downloadandroid-node-v8-63308308000a97939d94f9f06eb2b6b16fb9adee.tar.gz
android-node-v8-63308308000a97939d94f9f06eb2b6b16fb9adee.tar.bz2
android-node-v8-63308308000a97939d94f9f06eb2b6b16fb9adee.zip
test: add WPT console-tests-historical
Add WPT console-tests-historical to the test suite. PR-URL: https://github.com/nodejs/node/pull/23340 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
-rw-r--r--test/parallel/test-whatwg-console-label-conversion.js2
-rw-r--r--test/parallel/test-whatwg-console-tests-historical.js36
2 files changed, 37 insertions, 1 deletions
diff --git a/test/parallel/test-whatwg-console-label-conversion.js b/test/parallel/test-whatwg-console-label-conversion.js
index 74c6c007b0..9131a0c175 100644
--- a/test/parallel/test-whatwg-console-label-conversion.js
+++ b/test/parallel/test-whatwg-console-label-conversion.js
@@ -10,7 +10,7 @@ const { test, assert_true, assert_throws } =
/* The following tests should not be modified as they are copied */
/* WPT Refs:
https://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/console/console-label-conversion.any.js
- License: hhttps://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/LICENSE.md
+ License: https://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/LICENSE.md
*/
// https://console.spec.whatwg/org/#counting
diff --git a/test/parallel/test-whatwg-console-tests-historical.js b/test/parallel/test-whatwg-console-tests-historical.js
new file mode 100644
index 0000000000..d4a998b070
--- /dev/null
+++ b/test/parallel/test-whatwg-console-tests-historical.js
@@ -0,0 +1,36 @@
+'use strict';
+
+require('../common');
+
+const { test, assert_equals } =
+ require('../common/wpt');
+
+/* eslint-disable max-len, quotes */
+
+/* The following tests should not be modified as they are copied */
+/* WPT Refs:
+ https://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/console/console-tests-historical.any.js
+ License: https://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/LICENSE.md
+*/
+
+/**
+ * These tests assert the non-existence of certain
+ * legacy Console methods that are not included in
+ * the specification: http://console.spec.whatwg.org/
+ */
+
+"use strict";
+
+test(() => {
+ assert_equals(console.timeline, undefined, "console.timeline should be undefined");
+}, "'timeline' function should not exist on the console object");
+
+test(() => {
+ assert_equals(console.timelineEnd, undefined, "console.timelineEnd should be undefined");
+}, "'timelineEnd' function should not exist on the console object");
+
+test(() => {
+ assert_equals(console.markTimeline, undefined, "console.markTimeline should be undefined");
+}, "'markTimeline' function should not exist on the console object");
+
+/* eslint-enable */