Attached is an attempt at writing some initial tests for the "User
prompts" section of the HTML5 spec.

  http://www.whatwg.org/specs/web-apps/current-work/#user-prompts

I wrote the tests during the test-writing tutorial that Hixie led
at the HTML5 face-to-face during the 2007 W3C TPAC. This section
of the spec is pretty straightforward so the tests are very
simple. But they're still missing at least one thing: They don't
test the "The user agent must then pause..." assertions, because I
have no idea at this point how to test that...

-- 
Michael(tm) Smith
http://people.w3.org/mike/
http://sideshowbarker.net/
Title: Test cases for the "User prompts" section of the HTML5 spec

This page tests the User prompts section of the HTML5 spec.

alert() method.

Click and confirm that the string HogeMoge is displayed.

confirm() method, return True.

Click and confirm that the string Click OK and confirm that the string "HogeMoge" is displayed.

confirm() method, return False.

Click and confirm that the string Click Cancel and confirm that the string "HogeMoge" is displayed.

prompt() method, return user-input value.

Click and confirm that the default prompt HogeMoge is displayed.

prompt() method, return null.

Click and confirm that the default prompt HogeMoge is displayed.

print() method.

Click the following button to test that causes your browser to prompt you with a control to print this page.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to