05:11
<cybai>
Hi there, I'd like to contribute to this issue for wpt (https://github.com/web-platform-tests/wpt/issues/11588). But I have some questions, which channel should I ask? Thanks!
05:31
<domfarolino>
Here is good, though irc.w3.org's #testing channel might even be better
07:39
<annevk>
cybai: what do you want to know?
07:41
<cybai>
domfarolino: ah, thanks; didn't notice your reply. I saw #testing channel is archived from wpt readme so I didn't check it 😂 (https://github.com/web-platform-tests/wpt#getting-involved)
07:42
<cybai>
annevk: For example, I'd like to move these 2 tests into `.any.js` format (https://github.com/web-platform-tests/wpt/blob/master/xhr/open-url-redirected-sharedworker-origin.htm, https://github.com/web-platform-tests/wpt/blob/master/xhr/open-url-redirected-worker-origin.htm)
07:42
<annevk>
cybai: archived means public logs
07:44
<cybai>
annevk: and I read the documentation of `.any.js`, document says `.any.js` will transform the test into `fetch_tests_from_worker` automatically. but both tests will load different url for `Worker` and `SharedWorker`, I'm stuck at I don't know how to load a different url in `fetch_tests_from_worker` for `.any.js` 🤔
07:44
<cybai>
annevk: ah, I see! thanks!
07:47
<annevk>
cybai: okay, one sec
07:49
<cybai>
thanks 🙏
07:50
<annevk>
cybai: you cannot really turn these into a .any.js test I think
07:50
<annevk>
cybai: you could turn them into .window.js, but as they need to use the Worker and SharedWorker constructor that's really the best you can do
07:52
<annevk>
cybai: an HTML test file that contains the XMLHttpRequest constructor can typically be turned into .any.js, as it should work when executed in a worker or shared worker context as well
07:52
<annevk>
cybai: but if those workers need to be instantiated in a particular way, as is the case here, that doesn't work
07:54
<cybai>
annevk: I see! Thanks! So `.any.js` is handy for `XMLHttpRequest constructor` tests with the `fetch_tests_from_worker` function and it doesn't work for `open-url-redirected-worker-origin.htm` and `open-url-redirected-sharedworker-origin.htm` because they're instantiated by different urls
07:54
<cybai>
annevk: (btw, I just logged into the #testing channel, how about moving our discussion there :)?
19:01
<ondras>
Domenic: okay, thanks.