Home / example
Name Modified Size InfoDownloads / Week
Parent folder
testit.v1.0.3.js 2013-08-11 34.9 kB
zenbg.png 2013-08-11 214.9 kB
style.css 2013-08-11 1.2 kB
index.html 2013-08-11 10.0 kB
example.js 2013-08-11 3.8 kB
Totals: 5 Items   264.8 kB 0

testit

Simple js testing framework

Goals:

  • to use dev console instead of page DOM
  • to avoid crashes
  • to avoid differences in results of tests of one and the same code
  • to provide the ease of use
  • multilevel nesting
  • chaining

Techniques:

  • OOP
  • dev console API

Test types

  • equality between 2 or more values
  • non-false result of expression or value
  • type of value

===

How to install

You just need to add

<script src='path/to/testit.js'></script>

to the end of <body> tag. That's it!

===

How to use

You can find the API manual on wiki

Example

Look at it right here

Source: README.md, updated 2013-08-11