Mercurial > browser-couch
view tests.html @ 91:093e51c6aa3c
Minor rewording
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 20 Apr 2009 21:40:32 -0700 |
parents | bdba88a67034 |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <link rel="stylesheet" type="text/css" media="all" href="css/index.css" /> <title>Browser Couch Tests</title> </head> <body> <h1>Browser Couch Tests</h1> <p>You can read the source code documentation for these tests <a href="index.html#js/tests.js">here</a>.</p> <div id="status"> </div> </body> <script src="js/browser-couch.js"></script> <script src="js/tests.js"></script> <script> var listener = { onReady: function(tests) { var status = document.getElementById("status"); for (var i = 0; i < tests.length; i++) { var test = tests[i]; var div = document.createElement("div"); div.className = "test pending"; div.id = "test_" + test.id; div.textContent = test.name + " pending"; status.appendChild(div); } }, onRun: function(test) { var div = document.getElementById("test_" + test.id); div.textContent = test.name + " running"; div.className = "test in-progress"; }, onSkip: function(test) { var div = document.getElementById("test_" + test.id); div.textContent = test.name + " SKIPPED"; div.className = "test skipped"; }, onFinish: function(test) { var div = document.getElementById("test_" + test.id); div.textContent = test.name + " OK"; div.className = "test successful"; } }; Testing.run(listener, Tests); </script> </html>