Uh oh!
There was an error while loading. Please reload this page.
test: move WPT to its own testing module - #12736
Conversation
Trott
commented
Apr 29, 2017
This is a sort of trial balloon to see if there's support for this sort of change generally. /cc @nodejs/testing @nodejs/url |
Trott
commented
Apr 29, 2017
There was a problem hiding this comment.
## getArrayBufferViews(buf) -> #### getArrayBufferViews(buf) right? (L225)
targos
commented
Apr 29, 2017
+1 on the initiative, but I wonder if we shouldn't have a |
LGTM in this case as -const { test, assert_equals } = common.WPT;+const { test, assert_equals } = require('../wpt');isn't a big deal. But in general if we're going to split up common and start having: -const common = require('../common');+require('../common');+const commonx = require('../commonx');+const commony = require('../commony');+const commonz = require('../commonz');then I'm not sure what the benefit is (or if it outweighs the increased complexity, especially for new contributors). Same applies to adding a |
targos
commented
Apr 29, 2017
Good idea. We could move |
benjamingr
left a comment
There was a problem hiding this comment.
I'm +0 on doing this but the changes LGTM
There was a problem hiding this comment.
If we're editing these, could we move the h* properties so that they're in alphabetical order?
cjihrig
commented
Apr 29, 2017
I like the idea of a I don't like losing access to everything I need for testing from |
mhdawson
commented
May 1, 2017
I'm +0 zero on this change. Is it a problem to load it for every test ? If not then if we want to modularize into separate files maybe we can do that but still end up with a single import ? |
Trott
commented
May 1, 2017
rebased to resolve conflict and resolve README nits |
Even if we don't do this for anything else, I think it makes a lot of sense to split out the WPT stuff because it really is its own thing that gets used its own way. People shouldn't use it without fully understanding where it comes from and why it is the way it is. At the same time, it isn't something people need to bother with in the vast majority of cases. |
Fishrock123
commented
May 1, 2017
Uhm, what is "WPT"? |
Trott
commented
May 1, 2017
TimothyGu
commented
May 2, 2017
I'm indifferent towards splitting out WPT. Its (very specific) use is documented, and I'm of the opinion that people generally won't touch the stuff they don't know about. Though I can see how logically it might not fit with the rest of On splitting up On splitting up and lazy-loading different utilities, I'm –1. If the time being spent on loading |
@TimothyGu You make some good points, for sure. The main benefit would be for newcomers looking at the docs. Instead of dozens of properties, many of which won't matter to them, it can just be properties that are easy to understand and whose value is readily apparent. Like, (On the other hand, looking at |
Trott
commented
May 2, 2017
I really like the |
Trott
commented
May 2, 2017
There was a problem hiding this comment.
Are we still calling the module common.js after the refactor? How about just common?
Trott
commented
May 2, 2017
Pushed fixes for README nits. Probably want to move the docs for the common module etc. into |
Trott
commented
May 2, 2017
Split out into separate READMEs and force-pushed. |
Trott
commented
May 2, 2017
Trott
commented
May 3, 2017
Rebased to resolve conflict. |
richardlau
commented
May 3, 2017
The link is missing. Probably should add an entry for |
Trott
commented
May 3, 2017
Heh! Also: Should add an entry for the |
Trott
commented
May 3, 2017
Entry for |
Trott
commented
May 3, 2017
There was a problem hiding this comment.
fixtures and testpy leave this column empty.
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.
Trott
commented
May 3, 2017
Nit addressed. CI: https://ci.nodejs.org/job/node-test-pull-request/7822/ |
Trott
commented
May 4, 2017
Landed in ff001c1 |
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: nodejs#12736 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
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: nodejs#12736 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
gibfahn
commented
Jun 18, 2017
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: nodejs#12736 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Trott
commented
Jun 19, 2017
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: #12736 Backport-PR-URL: #13775 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
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: #12736 Backport-PR-URL: #13775 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
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.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test url