http://www.w3.org/2005/MWI/Tests/track/actions/51 -- Draft a blog post on WTF

Whilst the [W3C Widget Packaging and
Configuration](http://dev.w3.org/2006/waf/widgets/) specification goes through
the W3C process, the [Mobile Web Test Suites Working
Group](http://www.w3.org/2005/MWI/Tests/) have been investing some time and
effort into a Widget Testing Framework (WTF).

There is currently a debug instance running at <http://wtf.webvm.net>. Though
soon the project will be properly setup with sources for you to poke at and an
opensource license to go with it.

So how does it work? Imagine you have a "Widget runtime" (UA), some software
that allows you to run W3C widgets on your computer. You aim the UA to a test,
for example: <http://wtf.webvm.net/view//basic/true>

## Step 1

<a href="http://www.flickr.com/photos/hendry/3545551574/" title="Step
1 by Kai Hendry, on Flickr"><img
src="http://farm4.static.flickr.com/3654/3545551574_db6610b8fb_o.png"
width="760" height="515" alt="Step 1" /></a>

Clicking **install** should serve you a widget with [the correct
mimetype](http://dev.w3.org/2006/waf/widgets/#widget-media-type)
`application/widget`.

## Step 2

This is the security prompt phase. You are likely to see this if your
widget is not [signed](http://dev.w3.org/2006/waf/widgets-digsig/).

<a href="http://www.flickr.com/photos/hendry/3545550186/" title="Step
2 by Kai Hendry, on Flickr"><img
src="http://farm4.static.flickr.com/3362/3545550186_f805d928f9_o.png"
width="434" height="211" alt="Step 2" /></a>

## Step 3

The widget runs and if everything goes well you should see:

<a href="http://www.flickr.com/photos/hendry/3545554476/" title="Step
3 by Kai Hendry, on Flickr"><img
src="http://farm3.static.flickr.com/2389/3545554476_5337d812e4_o.png"
width="384" height="55" alt="Step 3" /></a>

Behind the scenes, an AJAX request should be fired off that reports
this particular test passed to a REPORTURI which collects this data.

## Step 4

In Opera, you'll be asked whether you want to keep the widget after an
initial run.

<a href="http://www.flickr.com/photos/hendry/3545550194/" title="Step
4 by Kai Hendry, on Flickr"><img
src="http://farm3.static.flickr.com/2455/3545550194_6f88032292_o.png"
width="304" height="143" alt="Step 4" /></a>

Remove the widget once testing it.

# Want to know more?

A more detailed [WTF wiki
page](http://dabase.com/blog/Widget_Test_Framework/) might help you.

Received on Tuesday, 19 May 2009 09:21:42 UTC