diff options
author | Rich Trott <rtrott@gmail.com> | 2017-04-28 22:22:20 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-05-03 17:00:31 -0700 |
commit | ff001c12b032c33dd54c6bcbb0bdba4fe549ec27 (patch) | |
tree | e64da372f03d880e898ceb651616f46179f5a18c /test/parallel/test-whatwg-url-constructor.js | |
parent | eb535c5154306e9024a80ee16ecabaee0bfcef62 (diff) | |
download | android-node-v8-ff001c12b032c33dd54c6bcbb0bdba4fe549ec27.tar.gz android-node-v8-ff001c12b032c33dd54c6bcbb0bdba4fe549ec27.tar.bz2 android-node-v8-ff001c12b032c33dd54c6bcbb0bdba4fe549ec27.zip |
test: move WPT to its own testing module
This is first in a hoped-for series of moves away from a monolithic
common.js that is loaded for every test and towards a more modular
approach. (In the end, common.js will hopefully contain checks for
variables leaking into the global space and perhaps some of the more
ubiquitous functions like common.mustCall().)
Move the WPT testing code to its own module.
PR-URL: https://github.com/nodejs/node/pull/12736
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'test/parallel/test-whatwg-url-constructor.js')
-rw-r--r-- | test/parallel/test-whatwg-url-constructor.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-whatwg-url-constructor.js b/test/parallel/test-whatwg-url-constructor.js index c2773b9af1..b67f63baf1 100644 --- a/test/parallel/test-whatwg-url-constructor.js +++ b/test/parallel/test-whatwg-url-constructor.js @@ -2,7 +2,8 @@ const common = require('../common'); const path = require('path'); const { URL, URLSearchParams } = require('url'); -const { test, assert_equals, assert_true, assert_throws } = common.WPT; +const { test, assert_equals, assert_true, assert_throws } = + require('../common/wpt'); if (!common.hasIntl) { // A handful of the tests fail when ICU is not included. |