.www filename flags in web-platform-tests

I added a small feature to web-platform-tests that allows you to load a test automatically on the www subdomain by using a .www filename flag (here’s the original issue).

So like, if you ever need to load a page on a different subdomain to test some k…


This content originally appeared on Mike Taylr Dot Com Web Log and was authored by Mike Taylor

I added a small feature to web-platform-tests that allows you to load a test automatically on the www subdomain by using a .www filename flag (here’s the original issue).

So like, if you ever need to load a page on a different subdomain to test some kind of origin-y or domainy-y thing, you can just name your test something amazing like origin-y-test.www.html and it will open the test for you at www.web-platform.test (rather than web-platform.test, or similarly, however your system or server is configured).

Now you’ll never need to embed an <iframe> or call window.open() ever again (unless you actually need to do those things).

?


This content originally appeared on Mike Taylr Dot Com Web Log and was authored by Mike Taylor


Print Share Comment Cite Upload Translate
APA
Mike Taylor | Sciencx (2023-02-04T23:04:15+00:00) » .www filename flags in web-platform-tests. Retrieved from https://www.scien.cx/2020/10/29/www-filename-flags-in-web-platform-tests/.
MLA
" » .www filename flags in web-platform-tests." Mike Taylor | Sciencx - Thursday October 29, 2020, https://www.scien.cx/2020/10/29/www-filename-flags-in-web-platform-tests/
HARVARD
Mike Taylor | Sciencx Thursday October 29, 2020 » .www filename flags in web-platform-tests., viewed 2023-02-04T23:04:15+00:00,<https://www.scien.cx/2020/10/29/www-filename-flags-in-web-platform-tests/>
VANCOUVER
Mike Taylor | Sciencx - » .www filename flags in web-platform-tests. [Internet]. [Accessed 2023-02-04T23:04:15+00:00]. Available from: https://www.scien.cx/2020/10/29/www-filename-flags-in-web-platform-tests/
CHICAGO
" » .www filename flags in web-platform-tests." Mike Taylor | Sciencx - Accessed 2023-02-04T23:04:15+00:00. https://www.scien.cx/2020/10/29/www-filename-flags-in-web-platform-tests/
IEEE
" » .www filename flags in web-platform-tests." Mike Taylor | Sciencx [Online]. Available: https://www.scien.cx/2020/10/29/www-filename-flags-in-web-platform-tests/. [Accessed: 2023-02-04T23:04:15+00:00]
rf:citation
» .www filename flags in web-platform-tests | Mike Taylor | Sciencx | https://www.scien.cx/2020/10/29/www-filename-flags-in-web-platform-tests/ | 2023-02-04T23:04:15+00:00
https://github.com/addpipe/simple-recorderjs-demo