201
edits
No edit summary |
|||
Line 80: | Line 80: | ||
***** interpret tests written in js | ***** interpret tests written in js | ||
***** helper functions exist to implement event loop | ***** helper functions exist to implement event loop | ||
*** if exit is non-zero OR test prints FAIL then test fails | |||
** jsunit | ** jsunit | ||
*** runs in content in browser | *** runs in content in browser | ||
*** supports asynchronous tests via semaphore variables (run test when test_done -> true) | *** supports asynchronous tests via semaphore variables (run test when test_done -> true) | ||
*** good for DOM tests | *** good for DOM tests | ||
*** added code to print results to stdout | |||
** layout comparison | ** layout comparison | ||
*** compare layout/rendering of two different pages using canvas | *** compare layout/rendering of two different pages using canvas | ||
Line 90: | Line 92: | ||
**** <span style="color: rgb(0,255,0);">This text is green</span> | **** <span style="color: rgb(0,255,0);">This text is green</span> | ||
**** something much more complex that should paint green text | **** something much more complex that should paint green text | ||
*** not sure of pass/fail indicator yet | |||
** jssh driver | ** jssh driver | ||
*** uses jssh as "remote control" of browser, with chrome privileges | *** uses jssh as "remote control" of browser, with chrome privileges | ||
*** good for jsunit-style tests that need to muck about with preferences | *** good for jsunit-style tests that need to muck about with preferences | ||
*** good for tests that should quit or crash the browser | *** good for tests that should quit or crash the browser | ||
*** not sure of pass/fail indicator yet | |||
* weaknesses | * weaknesses | ||
** make check | ** make check |
edits