Friedrich W. H. Kossebau
d2671e2a00
@returns -> @return
2014-01-31 15:33:43 +01:00
Philip Peitsch
9fdb9d908b
Suppress fail messages for expected-to-fail tests
...
Having these always log out regardless makes it very difficult to pin
point failing tests.
2014-01-15 11:26:59 +11:00
Friedrich W. H. Kossebau
74eee5bda5
Support expecting unit tests to fail
2014-01-08 16:08:37 +01:00
Friedrich W. H. Kossebau
1cdcbfdfe3
Fix broken passing of log messages to result of core.UnitTestLogger.endTest()
...
Fixup to 1b0bc3cf72
2013-12-20 11:19:52 +01:00
Jos van den Oever
1b0bc3cf72
Add colour back into the browser test output.
2013-12-18 09:05:49 +01:00
Jos van den Oever
13688ba885
Add special check for null values.
...
In JavaScript, typeof null is "object". The added check avoid treating a null value as an object.
2013-12-18 09:03:10 +01:00
Jos van den Oever
60b8cbcd1f
Add support for junit output.
2013-12-18 09:03:10 +01:00
Jos van den Oever
c88e781eb1
Add a the ability to run tests outside of the tests.js script.
...
This is preparation for using Karma to run the tests.
2013-12-18 09:03:09 +01:00
Friedrich W. H. Kossebau
abbbe48a18
Define arguments to core.UnitTestRunner.areNodesEqual(...) as "actual, expected"
...
Matches the current logging output and also the order of arguments to isResultCorrect()
2013-12-11 15:29:28 +01:00
Jos van den Oever
163562a84d
Generate list of JavaScript files in CMakeLists.txt.
...
Some types needed to be fixed due to the new file order.
2013-11-29 18:33:28 +01:00
Jos van den Oever
865c5e05fa
Add more type information to class UnitTester.
2013-11-26 16:55:00 +01:00
Jos van den Oever
9d5b061734
Whitespace cleanup.
2013-11-26 16:55:00 +01:00
Jos van den Oever
545c15fedb
Add more type information to class UnitTester.
...
The names of the test functions are now passed separately from the function in
a structure. The reason for this is that Closure Compiler does not allow adding
additional fields to functions.
2013-11-26 16:55:00 +01:00
Jos van den Oever
bfd0891676
Add more type information to class UnitTester.
2013-11-26 16:55:00 +01:00
Jos van den Oever
83982c5059
More type fixes.
...
This patch also contains quite some cleanups and reorganization in runtime.js.
2013-11-22 18:32:20 +01:00
Friedrich W. H. Kossebau
a2a30ab455
Log more details on errors in core.UnitTestRunner.areNodesEqual
2013-11-15 18:15:38 +01:00
Philip Peitsch
3a74bbc121
Add caching for steps to DOM point conversion
2013-11-14 20:28:34 +11:00
Friedrich W. H. Kossebau
25a29b3d90
Move API dox for core.UnitTest
2013-11-07 22:25:55 +01:00
Friedrich W. H. Kossebau
c2a795e668
Update link to repo: now https://github.com/kogmbh/WebODF/
2013-10-23 18:20:30 +02:00
Friedrich W. H. Kossebau
508570dab8
Add copy of the AGPL3 to sources (+ add to created zip files)
2013-10-21 17:55:16 +02:00
Philip Peitsch
b95145dbb2
Extract common test code
2013-09-16 14:23:21 +02:00
Jos van den Oever
64d57c96cf
Fix issues exposed by latest JSLint.
2013-07-24 21:41:56 +02:00
Philip Peitsch
0d2b42742e
Moved node comparison code to the base UnitTester class
...
* Improved failure messages when objects don't match
2013-07-02 21:19:36 +02:00
Philip Peitsch
864cc04d32
Added ability to compare complex objects in unit tests
...
* Fix test that fails under firefox
2013-06-14 18:05:01 +10:00
Jos van den Oever
f6e559ed3f
Make it possible to run individual tests by supplying arguments.
2013-05-08 15:33:27 +02:00
Jos van den Oever
afc4dbda5e
Add ability to run single tests in the browser environment.
...
Each suite and test now has a link. Pressing the link will add a query to the tests page that will filter out only a particular suite or even a particular test.
2013-05-06 11:39:31 +02:00
Jos van den Oever
13b549e92e
Add xml based operation tests.
2013-05-06 11:37:40 +02:00
Friedrich W. H. Kossebau
d182077eda
Add core.UnitTest.provideTestAreaDiv/cleanupTestAreaDiv to consolidate testarea div usage
2013-03-06 15:44:28 +01:00
Tobias Hintze
067c8fdaaf
core.UnitTester - fix incorrect check if test has already run
2013-02-06 18:46:01 +01:00
Jos van den Oever
155bf9a4d3
Whitespace fixes.
2012-11-10 11:35:21 +01:00
Tobias Hintze
375457d233
update license and copyright headers
2012-10-21 20:46:20 +02:00
Friedrich W. H. Kossebau
de1a79c36f
Update all "@source:" links to gitorious.org/webodf/webodf
2012-10-12 19:09:09 +02:00
Tobias Hintze
d2c21788b5
workaround recent JSLint pain (typeof foo !== "undefined")
2012-09-17 16:52:26 +02:00
Jos van den Oever
cd4f75c624
Use "use strict" to have more sanity checks.
2011-09-30 12:23:09 +02:00
Jos van den Oever
a97612ce83
Upgrade to new version of JSLint.
...
And update code to meet better checks.
2011-07-13 10:21:31 +02:00
Jos van den Oever
13c077b970
Add licenses and copyright statements to all javascript files.
2011-06-06 12:30:35 +02:00
Jos van den Oever
7e2af1539b
More fixes for IE9
...
Improvements for reading binary data via Internet Explorer 9.
2011-06-01 23:40:27 +02:00
Jos van den Oever
175a8c4fea
Add compile step to check JavaScript with JSLint and fixed errors in some files.
2011-02-14 09:40:08 +01:00
Jos van den Oever
ab832de17e
Pass unit tests in arrays, not in hashes/objects. Each test is function with a name and can be identified by that name.
2010-11-10 21:46:35 +01:00
Jos van den Oever
d7c48a3181
Keep track of which tests pass and which fail."
2010-11-10 21:20:38 +01:00
Jos van den Oever
cba72427d4
Add two tests and make them pass in the three runtimes.
2010-11-09 15:17:16 +01:00
Jos van den Oever
0475ebd9e5
Add three Zip unit tests and make them pass on the command-line.
2010-11-09 13:36:51 +01:00
Jos van den Oever
816d459f1e
Add ability to have asynchroneous unit tests.
2010-11-04 17:04:52 +01:00
Jos van den Oever
cd265f9c78
Stop the "make" command when a failing unit test is encountered.
2010-11-03 09:53:35 +01:00
Jos van den Oever
0e87578f93
Small additions to the documentation.
2010-11-02 22:57:57 +01:00
Jos van den Oever
ff752e56fb
Add more documentation and generate documentation from the Makefile.
2010-11-02 22:22:31 +01:00
Jos van den Oever
5758b2f143
Print test description.
2010-11-02 20:35:20 +01:00
Jos van den Oever
1f883ebc4f
More work on unit tests.
2010-11-02 13:47:59 +01:00
Jos van den Oever
7a5f4c5ce8
More work on getting unit tests running.
2010-11-02 10:38:42 +01:00
Jos van den Oever
5245f621b7
Just a lot of work to get the tests in shape. Still ongoing.
2010-11-01 22:11:17 +01:00