Skip to content

Commit c030854

Browse files
Trottjasnell
authored andcommitted
test: add WPT console-tests-historical
Add WPT console-tests-historical to the test suite. PR-URL: #23340 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent bd7e57a commit c030854

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

test/parallel/test-whatwg-console-label-conversion.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { test, assert_true, assert_throws } =
1010
/* The following tests should not be modified as they are copied */
1111
/* WPT Refs:
1212
https://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/console/console-label-conversion.any.js
13-
License: hhttps://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/LICENSE.md
13+
License: https://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/LICENSE.md
1414
*/
1515

1616
// https://console.spec.whatwg/org/#counting
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
'use strict';
2+
3+
require('../common');
4+
5+
const { test, assert_equals } =
6+
require('../common/wpt');
7+
8+
/* eslint-disable max-len, quotes */
9+
10+
/* The following tests should not be modified as they are copied */
11+
/* WPT Refs:
12+
https://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/console/console-tests-historical.any.js
13+
License: https://github.com/web-platform-tests/wpt/blob/6f0a96ed650935b17b6e5d277889cfbe0ccc103e/LICENSE.md
14+
*/
15+
16+
/**
17+
* These tests assert the non-existence of certain
18+
* legacy Console methods that are not included in
19+
* the specification: http://console.spec.whatwg.org/
20+
*/
21+
22+
"use strict";
23+
24+
test(() => {
25+
assert_equals(console.timeline, undefined, "console.timeline should be undefined");
26+
}, "'timeline' function should not exist on the console object");
27+
28+
test(() => {
29+
assert_equals(console.timelineEnd, undefined, "console.timelineEnd should be undefined");
30+
}, "'timelineEnd' function should not exist on the console object");
31+
32+
test(() => {
33+
assert_equals(console.markTimeline, undefined, "console.markTimeline should be undefined");
34+
}, "'markTimeline' function should not exist on the console object");
35+
36+
/* eslint-enable */

0 commit comments

Comments
 (0)