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