W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

testing plans for Web IDL

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Wed, 25 May 2011 15:24:33 +0200
To: public-script-coord <public-script-coord@w3.org>
Message-ID: <1306329881.3237.136.camel@altostratustier>
Hi,

I read with great pleasure that there is now a well-defined schedule for
moving Web IDL to LC: good job!
http://www.w3.org/mid/4DDC2483.6030401@nokia.com

Has there been any thoughts given around the CR phrase for Web IDL?
Given how important that specification is, I'm hoping there will be a
good test suite to back it up.

Are there plans to build such a test suite?

A test suite would need to show that the ECMAscript bindings [1] of Web
IDL fragments actually follow the various constraints and algorithms
that the spec defines.

Ideally, the said Web IDL fragments would come (or be inspired) from
APIs that are already well-deployed; I'm not sure if we have enough such
APIs to cover all the features of Web IDL (but if we don't, maybe the
features that don't match that requirement should be marked at risk /
moved to v2?).

Even more ideally, in the process of building that test suite, we would
build a tool that can generate tests to verify the correct
implementation of the Web IDL fragment in a given browser. There is
already at least one tool that does this [2], but it doesn't match the
latest evolution of Web IDL (and is also probably too limited as is to
be sufficient toward that).

FWIW, a few pointers to existing Web IDL processors with their test
suite (but which mostly address proper syntactic parsing):
* widlproc , a tool that turns Web IDL fragments into XML (and which I
now maintain) http://widl.webvm.net/
http://widl.webvm.net/svn/widlproc/trunk/test/valid/idl/ 

* esidl , a tool that generates C++ stubs from Web IDL fragments
http://code.google.com/p/es-operating-system/source/browse/
http://code.google.com/p/es-operating-system/source/browse/#svn%2Ftrunk%
2Fesidl%2Ftestsuite

* Whatpm::WebIDL a tool that parses Web IDL fragments and turns them
into Perl objects (used by [2] to generate test cases)
http://suika.fam.cx/www/markup/html/whatpm/Whatpm/WebIDL.html
http://suika.fam.cx/gate/cvs/markup/html/whatpm/Whatpm/WebIDL.pm
http://suika.fam.cx/gate/cvs/markup/html/whatpm/t/webidl/

Dom

1. I pretty much think the Java binding should be moved out of the main
spec into a Note; it seems to me very unlikely that anyone will spend
the necessary effort to ensure that the Java bindings are correct in the
timeframe we want for Web IDL progression.

2. http://suika.fam.cx/www/webidl2tests/readme
Received on Wednesday, 25 May 2011 13:24:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC