Click here to Skip to main content
Click here to Skip to main content

Unit Test for JavaScript

By , 14 Dec 2007
 
unitjs.zip
UnitJS
green.gif
red.gif
body 
{
	background-color: #ffffff;
	font-family: "Courier New", Courier, monospace;
}
code
{
	color: #000000;
	display: block;
	font-style: italic;
}
span.debugMessage
{
	border-bottom:1px dotted #cccccc;
	color: #000000;
	display: block;
	margin: 1px;
}
span.debugWarn
{
	border-bottom:1px dotted #aaaa00;
	color: #0000aa;
	display: block;
}
span.debugException
{
	border-bottom:1px dotted #ff0000;
	color: #aa0000;
	display: block;
	font-weight: bold;
}
span.TestName
{
	border-bottom:1px dotted #000000;
	color: #000000;
	display: block;
	margin: 1px;
	font-weight: bold;
}
span.UnitJsPass
{
	border-bottom:1px dotted #00cc00;
	color: #006600;
	display: block;
	margin: 1px;
	background: url(green.gif) no-repeat;
	padding-left: 20px;
}
span.UnitJsPass code
{
	color: #006600;
	display: block;
	font-style: italic;
}
span.UnitJsFailed
{
	border-bottom:1px dotted #cc0000;
	color: #660000;
	display: block;
	margin: 1px;
	background: url(red.gif) no-repeat;
	padding-left: 20px;
}
span.UnitJsFailed code
{
	color: #660000;
	display: block;
	font-style: italic;
}

By viewing downloads associated with this article you agree to the Terms of use and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Roberto Colnaghi
Software Developer
Brazil Brazil
Member
I'm a passionate developer and videogame player.
Been in touch with Objective-C, Javascript, C#, C, Guild Wars 2, Tera and many more.
 
Javascript is one of my favorite languages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 15 Dec 2007
Article Copyright 2007 by Roberto Colnaghi
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid