W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2013

Re: [whatwg] URL testing

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 14 Aug 2013 18:11:13 +0100
Message-ID: <CADnb78ir8otGG6Nm+qydHE2A0QHktChEC0iSQiA6gvbbsUX0Kw@mail.gmail.com>
To: Chris Weber <chris@lookout.net>
Cc: WHATWG <whatwg@lists.whatwg.org>
On Fri, Nov 23, 2012 at 7:39 PM, Chris Weber <chris@lookout.net> wrote:
> Hello, I've been trying to follow Anne's work with the URL spec, and
> working on using the W3C testharness.js for URL testing.  I have some
> URL testing running, with still more work to do:
>
> http://www.lookout.net/test/url/
>
> The test cases and harness are available at:
>
> https://github.com/cweb/url-testing
>
> I've aggregated about 600 test cases and their expected results from
> several sources, and converted them into JSON format (urls.json).  A
> majority come from Webkit's fast/url suite as referenced in the
> urls.json file.  A few test cases had to be modified to suit JSON, but
> not many.

I've done something similar now, but with tests that match the
requirements of the URL Standard (and pass in my jURL/url.js library).

https://github.com/annevk/url/ has all the relevant data.

I decided to create a new custom format to host all the tests, similar
to html5lib, as JSON has no support for lone surrogates or comments.
It should be pretty trivial to contribute new tests for this format
and I have scripts that can generate the format given some test data.

Not tested: IDNA, setting URL properties (needs custom solution),
origin property.

Feedback welcome.


-- 
http://annevankesteren.nl/
Received on Wednesday, 14 August 2013 17:11:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:23 UTC