Testing UI Components

43 views
Skip to first unread message

zachleat

unread,
Sep 1, 2011, 10:19:47 AM9/1/11
to JsTestDriver
I would like to use JsTestDriver to automate testing of a UI
Component, for example a calendar picker widget that includes HTML,
CSS, and JavaScript pieces.

JsTestDriver provides most of the functionality I need to accomplish
this: it allows me to specify HTML in my test cases, it allows
inclusion of CSS files to style how the calendar looks in different
execution states.

However, there are a few defaults in JsTestDriver that are blocking my
ability to execute these tests.

http://www.google.com/codesearch#3tsINRJRCro/trunk/JsTestDriver/src/com/google/jstestdriver/server/handlers/CaptureHandler.java&q=quirks%20package:http://js-test-driver%5C.googlecode%5C.com&l=73

String mode = parameterMap.get(STRICT) != null ? STRICT : QUIRKS;

should be

String mode = parameterMap.get(QUIRKS) != null ? QUIRKS : STRICT;

I opened this as issue http://code.google.com/p/js-test-driver/issues/detail?id=79
in late 2009.

The other issue is filed as http://code.google.com/p/js-test-driver/issues/detail?id=81

Stoyan has the upstream browser bugs documented here:
http://www.phpied.com/when-is-a-stylesheet-really-loaded/

But really, it isn't hard to patch a workaround for this now, and I've
included one such method in the ticket above.

Is this a lost cause to get included with the project? Is JsTestDriver
ever planning to support these kinds of tests out of the box? It would
appear that the baseline code was written to at least plan for this.
Would love to hear any feedback.
Reply all
Reply to author
Forward
0 new messages