-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 */ |