web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
5.02k stars 3.11k forks source link

Test input.type change from text to file to text #2611

Open zcorpan opened 8 years ago

zcorpan commented 8 years ago

From https://github.com/w3c/web-platform-tests/pull/2589#issuecomment-187208381

What would be useful to test step 3 of https://html.spec.whatwg.org/multipage/forms.html#input-type-change is something like this http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3912

WebKit and Blink fail this, Gecko passes.

cc @g-k

123mansha commented 4 years ago

Hii!! I am a newbie and want to work on this issue. Please guide me how to resolve this issue and also if possible give me some references to solve this issue

zcorpan commented 4 years ago

@123mansha great, thank you! 🎉

The test would be a testharness.js test, using the test() function, and doing the same thing as http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3912 (but using assert_equals() instead of logging with w()). The documentation has a testharness.js tutorial which might help.

If you're new to Git and GitHub, see this introduction: https://web-platform-tests.org/writing-tests/github-intro.html

If you get stuck, ask in Matrix: https://app.element.io/#/room/#wpt:matrix.org

(edit: IRC -> Matrix)

Hemali91 commented 3 years ago

Hi @zcorpan. I would like to work on this issue if it is still not assigned and , can you please guide me how to tackle it?

Thanks

zcorpan commented 3 years ago

@Hemali91 great, thank you! Did you look at the links in my previous comment?