[Webkit-unassigned] [Bug 122747] Introduce a WebIDL conformance test suite

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 14 04:13:59 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=122747





--- Comment #1 from Zan Dobersek <zandobersek at gmail.com>  2013-10-14 04:12:45 PST ---
The current idea is to have test interfaces located under window.internals and to keep them under the new 'Internals' global context so nothing is leaked into the Web platform. For now I'm only using one interface, but more will most likely be required for a complete test effort. The constructor of that interface is hung on window.internals, along with a method to create new objects that implement that interface.

The new, testing-only interfaces would be added simply to have maximum control on what is tested and how it's tested. Testing on Web-facing APIs could be disrupted by any changes to the related interfaces, and it would also unlikely cover all the corner cases.

The layout tests would use the testharness.js[1] tools and the webidl2.js[2] parser. The WebIDL of the tested interface is placed into the test as text content that is then parsed and tested against an actual object implementing that interface.

The idlharness.js documentation outlines such testing, and the actual test case for User Timing interfaces makes it even clearer.
https://github.com/w3c/testharness.js/blob/master/idlharness.js
https://github.com/w3c/web-platform-tests/blob/master/user-timing/idlharness.html

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list