Skip to content

Instantly share code, notes, and snippets.

@gerrymanoim
Created September 23, 2011 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerrymanoim/1238147 to your computer and use it in GitHub Desktop.
Save gerrymanoim/1238147 to your computer and use it in GitHub Desktop.
var output = document.getElementById('output');
function assert( outcome, description ) {
var li = document.createElement('li');
li.className = outcome ? 'pass' : 'fail';
li.appendChild( document.createTextNode( description ) );
output.appendChild(li);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment