Permalink
Browse files

updating unit tester

  • Loading branch information...
1 parent 88e8c21 commit 01bdef454d4abd84b060af790e96cea02c789b12 @anutron anutron committed Oct 11, 2009
Showing with 4 additions and 3 deletions.
  1. +1 −1 Tests/UnitTester
  2. +3 −2 Tests/test_frame.html
Submodule UnitTester updated 1 files
+13 −3 test_frame.html
@@ -6,7 +6,8 @@
<script>
//map dbug in this frame to the parent logger
var dbug = window.parent.dbug;
- document.write('<link rel="stylesheet" type="text/css" media="screen" href="'+window.parent.UnitTester.path+'assets/tests.css" />')
+ if (!window.console) window.console = dbug;
+ document.write('<link rel="stylesheet" type="text/css" media="screen" href="'+window.parent.UnitTester.path+'assets/tests.css" />');
//these two methods are referenced in UnitTester.js via the parent window
//define $exec, which needs to work w/o any dependencies for the test framework
function $exec(text){
@@ -29,7 +30,7 @@
script.src = scr;
var head = document.getElementsByTagName('head')[0];
head.appendChild(script);
- }
+ };
</script>
<style>
body {

0 comments on commit 01bdef4

Please sign in to comment.