Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3234155

Browse filesBrowse files
panvatargos
authored andcommitted
test: remove useless require('../common') from WPTs
PR-URL: #46796 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 76a9634 commit 3234155
Copy full SHA for 3234155
Expand file treeCollapse file tree

21 files changed

+9
-20
lines changed
Open diff view settings
Collapse file

‎test/wpt/.eslintrc.yaml‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rules:
2+
node-core/required-modules: off
3+
node-core/require-common-first: off
Collapse file

‎test/wpt/README.md‎

Copy file name to clipboardExpand all lines: test/wpt/README.md
-1Lines changed: 0 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ For example, for the URL tests, add a file `test/wpt/test-url.js`:
4646
```js
4747
'use strict';
4848

49-
require('../common');
5049
const { WPTRunner } = require('../common/wpt');
5150

5251
const runner = new WPTRunner('url');
Collapse file

‎test/wpt/test-abort.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-abort.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
require('../common');
2+
33
const { WPTRunner } = require('../common/wpt');
44

55
const runner = new WPTRunner('dom/abort');
Collapse file

‎test/wpt/test-atob.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-atob.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
require('../common');
43
const { WPTRunner } = require('../common/wpt');
54

65
const runner = new WPTRunner('html/webappapis/atob');
Collapse file

‎test/wpt/test-blob.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-blob.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
require('../common');
43
const { WPTRunner } = require('../common/wpt');
54

65
const runner = new WPTRunner('FileAPI/blob');
Collapse file

‎test/wpt/test-broadcastchannel.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-broadcastchannel.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
require('../common');
43
const { WPTRunner } = require('../common/wpt');
54

65
const runner = new WPTRunner('webmessaging/broadcastchannel');
Collapse file

‎test/wpt/test-console.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-console.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
require('../common');
2+
33
const { WPTRunner } = require('../common/wpt');
44

55
const runner = new WPTRunner('console');
Collapse file

‎test/wpt/test-domexception.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-domexception.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
require('../common');
43
const { WPTRunner } = require('../common/wpt');
54

65
const runner = new WPTRunner('webidl/ecmascript-binding/es-exceptions');
Collapse file

‎test/wpt/test-encoding.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-encoding.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
require('../common');
2+
33
const { WPTRunner } = require('../common/wpt');
44
const runner = new WPTRunner('encoding');
55

Collapse file

‎test/wpt/test-events.js‎

Copy file name to clipboardExpand all lines: test/wpt/test-events.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
require('../common');
2+
33
const { WPTRunner } = require('../common/wpt');
44

55
const runner = new WPTRunner('dom/events');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.