Files
mono/mcs/class/System.Web/Test/jsunit/ChangeLog
T
Chris Toshok b2ab88a42e Tests
svn path=/trunk/mcs/; revision=48940
2005-08-26 22:55:06 +00:00

99 lines
3.7 KiB
Plaintext

2005-08-11 Chris Toshok <[email protected]>
* jsunit.js (Assert): no reason to have a prototype for
this.. just define a variable named Assert and add it to the
script's context.
2005-08-11 Chris Toshok <[email protected]>
* jsunit.js (jsunit_RunTestForPage): set the failure_span
innerHTML explicitly to "0 tests" to initialize it.
(jsunit_RunTestForPageStep): use update_failures_span here to set
the innerhtml to whatever our results currently are.
(update_failures_span): new function, basically just set the text
and background of the span.
2005-08-04 Chris Toshok <[email protected]>
* jsunit.js: add expected failure output. add some (for now)
disabled netscape.security handling for UniversalBrowserRead (so
we can do testing of remote pages.)
2005-08-03 Chris Toshok <[email protected]>
* jsunit.js: Mucho improvements.
2005-08-02 Chris Toshok <[email protected]>
* jsunit.js (JSUnit_Click): fix typo.
(checkReadyState): fix c&p error.
(jsunit_RunTestPageStep): initialize both test_scripts.waiting and
test_run.waiting before we fire off the load(s).
(jsunit_FindTestFixture): new function to locate the test fixture
on either page, and set top.test_fixture and
top.test_fixture_context accordingly.
(jsunit_RunTestsForPage): use jsunit_FindTestFixture.
(jsunit_RunTestsForPageStep): same.
(test_run_onload): remove the extraneous if-check
(test_scripts_onload): same.
2005-08-01 Chris Toshok <[email protected]>
* jsunit.js (jsunit_RunTestForPageStep): add the public api to
whatever script context we're using for TestFixture. We need this
here because pages that do postbacks but include the testfixture
in the main page will get their context reset on the page load.
2005-08-01 Chris Toshok <[email protected]>
* jsunit.js: make the script: property on JSUnit_TestPages
optional, and look for the TestFixture in the test_run page (so
you can write html + tests all in one file).
(JSUnit_Click): fix an "uh oh" alert.
2005-07-27 Chris Toshok <[email protected]>
* jsunit.js (Assert): when we fail due to an exception, use
e.message which works on both ff and IE.
2005-07-27 Chris Toshok <[email protected]>
* jsunit.js: add a Trace object/window so we can get debug spew
without window.alert. Also, implement the readyState polling page
loading hack for IE so we can remove all the onload handlers from
.aspx/-script.html files in jsunit-tests (hurray).
2005-07-26 Chris Toshok <[email protected]>
* jsunit.js: add some better status messages.
2005-07-25 Chris Toshok <[email protected]>
* jsunit.js (JSUnit_Click): if el == null return early.
(jsunit_RunTestForPageStep): wrap the call to testfunc() in a try
block so we can add some failure text instead of making the user
look at the JS console.
2005-07-25 Chris Toshok <[email protected]>
* jsunit-results.html: change the status span's id to status_text.
* jsunit.js (encode): new function, to replace < with &lt;, > with
&gt;, \n with \\n, etc, so when we output error strings we can see
the actual html.
(string_charcode_diff): return a string detailing the first index
at which two strings differ.
(Assert): encode all the strings we pass to test_failed. Also on
AreEqual and AreEqualCase, replace \r\n with \n (since mozilla
seems to do this automatically, while IE doesn't), and also call
string_charcode_diff.
(JSUnit_*) change the state span's id to status_text so it works
on IE, and widen the testcase tables.
2005-07-24 Chris Toshok <[email protected]>
* jsunit.js (JSUnit_GetAttribute): add optional id argument.
defaults to using the bound element.
* README: more docs, list out the convenience functions and some
info about how to handle page loading.