From da984be0a38d15a48c2e050aa7054008df8cb2e9 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Tue, 4 Dec 2018 17:44:20 +0800 Subject: [PATCH] test: remove reference to whatwg in file names under test/wpt WPT covers standards in both W3C and WHATWG, as such it would be strange to make this disparity explicit in our file names (e.g. when testing standards that are solely in W3C, like performance-timeline). Remove the reference to WHATWG will also make the file names shorter. PR-URL: https://github.com/nodejs/node/pull/24826 Refs: https://github.com/nodejs/node/issues/24823 Reviewed-By: Matteo Collina Reviewed-By: Daijiro Wachi --- test/wpt/README.md | 6 +++--- test/wpt/{test-whatwg-console.js => test-console.js} | 0 test/wpt/{test-whatwg-url.js => test-url.js} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename test/wpt/{test-whatwg-console.js => test-console.js} (100%) rename test/wpt/{test-whatwg-url.js => test-url.js} (100%) diff --git a/test/wpt/README.md b/test/wpt/README.md index 1810a98c8dc982..ff9092e6a1acd9 100644 --- a/test/wpt/README.md +++ b/test/wpt/README.md @@ -40,7 +40,7 @@ $ git node wpt url ### 3. Create the test driver -For example, for the URL tests, add a file `test/wpt/test-whatwg-url.js`: +For example, for the URL tests, add a file `test/wpt/test-url.js`: ```js 'use strict'; @@ -75,14 +75,14 @@ Run the test using `tools/test.py` and see if there are any failures. For example, to run all the URL tests under `test/fixtures/wpt/url`: ```text -$ tools/test.py wpt/test-whatwg-url +$ tools/test.py wpt/test-url ``` To run a specific test in WPT, for example, `url/url-searchparams.any.js`, pass the file name as argument to the corresponding test driver: ```text -node --expose-internals test/wpt/test-whatwg-url.js url-searchparams.any.js +node --expose-internals test/wpt/test-url.js url-searchparams.any.js ``` If there are any failures, update the corresponding status file diff --git a/test/wpt/test-whatwg-console.js b/test/wpt/test-console.js similarity index 100% rename from test/wpt/test-whatwg-console.js rename to test/wpt/test-console.js diff --git a/test/wpt/test-whatwg-url.js b/test/wpt/test-url.js similarity index 100% rename from test/wpt/test-whatwg-url.js rename to test/wpt/test-url.js