2
0

ChangeLog 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. 2005-08-11 Chris Toshok <[email protected]>
  2. * jsunit.js (Assert): no reason to have a prototype for
  3. this.. just define a variable named Assert and add it to the
  4. script's context.
  5. 2005-08-11 Chris Toshok <[email protected]>
  6. * jsunit.js (jsunit_RunTestForPage): set the failure_span
  7. innerHTML explicitly to "0 tests" to initialize it.
  8. (jsunit_RunTestForPageStep): use update_failures_span here to set
  9. the innerhtml to whatever our results currently are.
  10. (update_failures_span): new function, basically just set the text
  11. and background of the span.
  12. 2005-08-04 Chris Toshok <[email protected]>
  13. * jsunit.js: add expected failure output. add some (for now)
  14. disabled netscape.security handling for UniversalBrowserRead (so
  15. we can do testing of remote pages.)
  16. 2005-08-03 Chris Toshok <[email protected]>
  17. * jsunit.js: Mucho improvements.
  18. 2005-08-02 Chris Toshok <[email protected]>
  19. * jsunit.js (JSUnit_Click): fix typo.
  20. (checkReadyState): fix c&p error.
  21. (jsunit_RunTestPageStep): initialize both test_scripts.waiting and
  22. test_run.waiting before we fire off the load(s).
  23. (jsunit_FindTestFixture): new function to locate the test fixture
  24. on either page, and set top.test_fixture and
  25. top.test_fixture_context accordingly.
  26. (jsunit_RunTestsForPage): use jsunit_FindTestFixture.
  27. (jsunit_RunTestsForPageStep): same.
  28. (test_run_onload): remove the extraneous if-check
  29. (test_scripts_onload): same.
  30. 2005-08-01 Chris Toshok <[email protected]>
  31. * jsunit.js (jsunit_RunTestForPageStep): add the public api to
  32. whatever script context we're using for TestFixture. We need this
  33. here because pages that do postbacks but include the testfixture
  34. in the main page will get their context reset on the page load.
  35. 2005-08-01 Chris Toshok <[email protected]>
  36. * jsunit.js: make the script: property on JSUnit_TestPages
  37. optional, and look for the TestFixture in the test_run page (so
  38. you can write html + tests all in one file).
  39. (JSUnit_Click): fix an "uh oh" alert.
  40. 2005-07-27 Chris Toshok <[email protected]>
  41. * jsunit.js (Assert): when we fail due to an exception, use
  42. e.message which works on both ff and IE.
  43. 2005-07-27 Chris Toshok <[email protected]>
  44. * jsunit.js: add a Trace object/window so we can get debug spew
  45. without window.alert. Also, implement the readyState polling page
  46. loading hack for IE so we can remove all the onload handlers from
  47. .aspx/-script.html files in jsunit-tests (hurray).
  48. 2005-07-26 Chris Toshok <[email protected]>
  49. * jsunit.js: add some better status messages.
  50. 2005-07-25 Chris Toshok <[email protected]>
  51. * jsunit.js (JSUnit_Click): if el == null return early.
  52. (jsunit_RunTestForPageStep): wrap the call to testfunc() in a try
  53. block so we can add some failure text instead of making the user
  54. look at the JS console.
  55. 2005-07-25 Chris Toshok <[email protected]>
  56. * jsunit-results.html: change the status span's id to status_text.
  57. * jsunit.js (encode): new function, to replace < with &lt;, > with
  58. &gt;, \n with \\n, etc, so when we output error strings we can see
  59. the actual html.
  60. (string_charcode_diff): return a string detailing the first index
  61. at which two strings differ.
  62. (Assert): encode all the strings we pass to test_failed. Also on
  63. AreEqual and AreEqualCase, replace \r\n with \n (since mozilla
  64. seems to do this automatically, while IE doesn't), and also call
  65. string_charcode_diff.
  66. (JSUnit_*) change the state span's id to status_text so it works
  67. on IE, and widen the testcase tables.
  68. 2005-07-24 Chris Toshok <[email protected]>
  69. * jsunit.js (JSUnit_GetAttribute): add optional id argument.
  70. defaults to using the bound element.
  71. * README: more docs, list out the convenience functions and some
  72. info about how to handle page loading.