Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
test: add comments for whatwg-url tests#14355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Conversation
gautamarora commented Jul 18, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
gibfahn left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the format, not sure about the number of files modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this PR only changes 16 files, but looking in test/parallel/ I see 26 with the test-whatwg prefix:
➜ parallel git:(master) ✗ ❯ ls | grep test-whatwg ~/wrk/com/node/test/parallel test-whatwg-url-constructor.js test-whatwg-url-domainto.js test-whatwg-url-historical.js test-whatwg-url-inspect.js test-whatwg-url-origin.js test-whatwg-url-parsing.js test-whatwg-url-properties.js test-whatwg-url-searchparams-append.js test-whatwg-url-searchparams-constructor.js test-whatwg-url-searchparams-delete.js test-whatwg-url-searchparams-entries.js test-whatwg-url-searchparams-foreach.js test-whatwg-url-searchparams-get.js test-whatwg-url-searchparams-getall.js test-whatwg-url-searchparams-has.js test-whatwg-url-searchparams-inspect.js test-whatwg-url-searchparams-keys.js test-whatwg-url-searchparams-set.js test-whatwg-url-searchparams-sort.js test-whatwg-url-searchparams-stringifier.js test-whatwg-url-searchparams-values.js test-whatwg-url-searchparams.js test-whatwg-url-setters.js test-whatwg-url-toascii.js test-whatwg-url-tojson.js test-whatwg-url-tostringtag.js ➜ parallel git:(master) ✗ ❯ ls | grep test-whatwg | wc -l ~/wrk/com/node/test/parallel 26
refackJul 18, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the delta are files that do not contain imported code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refack commented Jul 18, 2017
@gautamarora thank you very much. There are also 3 fixture files that would love to get some attention: |
gibfahn commented Jul 18, 2017
Also thanks for being thorough, but could you remove these lines from the commit message? ##### Checklist-[x]`make -j4 test` (UNIX), or `vcbuild test` (Windows) passes -[x] commit message follows [commit guidelines](https://github.com/nodejs/node/blob/master/CONTRIBUTING.md#c ommit-message-guidelines) ##### Affected core subsystem(s) test, url |
refack left a comment • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
% adding the fixtures
refack left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
gautamarora commented Jul 19, 2017
refack commented Jul 19, 2017
That would be a nice to have: |
gautamarora commented Jul 19, 2017
@refack - updated the guide. |
gautamarora commented Jul 19, 2017
gautamarora commented Jul 19, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@refack - cleaned up the commit message. Let me know if there is any other clean up |
vsemozhetbyt commented Jul 19, 2017
doc/guides/writing-tests.md Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please keep the lines under 80 chars? Not sure why the linter didn't catch that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can certainly make the change, the recommendation for that particular comment is as per discussion here cc @joyeecheung for feedback as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe ignoreComments in max-len is true by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nevermind, i could also do something like this:
/* eslint-disable */ /* The following tests are copied from WPT, modifications to them should be upstreamed first. Refs: https://github.com/w3c/web-platform-tests/blob/54c3502d7b/url/urlsearchparams-constructor.html License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html */ making the changes now.
vsemozhetbyt commented Jul 19, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
cc @not-an-aardvark, @silverwind, @Trott Is |
vsemozhetbyt commented Jul 19, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Seems
Should we place |
gautamarora commented Jul 19, 2017
@TimothyGu - pushed a commit to keep lines under 80 chars in tests/fixtures/doc. let me know if this is good now. |
not-an-aardvark commented Jul 19, 2017
No, it's
¯\_(ツ)_/¯ |
gibfahn commented Jul 19, 2017
Yes, I think we definitely should. @gautamarora would you be able to do that? |
vsemozhetbyt commented Jul 19, 2017
@not-an-aardvark Thank you. Sorry for bothering, I've missed we eslintignore |
gautamarora commented Jul 19, 2017
@gibfahn - yes, i will make the changes for this. |
Added comments to whatwg-url tests that they should not be changed until modifications are merged upstream as per guidelines for [Web Platform Tests](https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#web-platform-tests) Fixes: #12793
gautamarora commented Jul 19, 2017
@gibfahn@vsemozhetbyt@TimothyGu I've moved For the test fixtures, the linting is ignored due to |
vsemozhetbyt commented Jul 19, 2017
Trott commented Jul 19, 2017
Micro-nit: The first sentence of the comments contains a comma splice:
The comma should be a period (or perhaps a semicolon):
No way this should hold up landing of the PR, though. :-D But if you want to fix it, or if you have to go in and fix other things anyway, then awesome. |
gautamarora commented Jul 19, 2017
@Trott - replaced comma with period :) |
refack left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯+
refack commented Jul 19, 2017
@gautamarora I see you are getting the full bikeshed PR treatment 😉. Thank you again for bearing with us... |
gautamarora commented Jul 19, 2017
@refack haha! no worries, i totally get it. Thanks for all the amazing feedback, i learnt much more than just adding comments like linting and running individual tests, so hopefully can contribute more. Let me know if you need anything more from my end. From what I have understood so far, @vsemozhetbyt will need to start another CI build with the latest changes. |
joyeecheung left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for picking this up!
joyeecheung commented Jul 19, 2017
refack commented Jul 19, 2017
Anyone of the Collaborators can start a CI, you should ping us when you think the PR is stable. |
Added comments to whatwg-url tests that they should not be changed until modifications are merged upstream as per "Web Platform Tests" guidelines PR-URL: nodejs#14355Fixes: nodejs#12793 Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]>
refack commented Jul 20, 2017
Landed in 9e4ab6c |
Added comments to whatwg-url tests that they should not be changed until modifications are merged upstream as per "Web Platform Tests" guidelines PR-URL: #14355Fixes: #12793 Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]>
Added comments to whatwg-url tests that they should not be changed until modifications are merged upstream as per "Web Platform Tests" guidelines PR-URL: #14355Fixes: #12793 Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]>


Added comments to whatwg-url tests to document that they should not be modified until modifications are made upstream as per guidelines for Web Platform Tests
Fixes: #12793
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesmake lintAffected core subsystem(s)
test, url