1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
4 <title>Unit Test Runner
</title>
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8"/>
7 //map dbug in this frame to the parent logger
8 var dbug
= window
.parent
.dbug
;
9 if (!window
.console
) window
.console
= dbug
;
10 document
.write('<link rel="stylesheet" type="text/css" media="screen" href="'+window
.parent
.UnitTester
.path
+'assets/tests.css" />');
11 //these two methods are referenced in UnitTester.js via the parent window
12 //define $exec, which needs to work w/o any dependencies for the test framework
14 if (!text
) return text
;
15 if (window
.execScript
){
16 window
.execScript(text
);
18 var script
= document
.createElement('script');
19 script
.setAttribute('type', 'text/javascript');
21 document
.getElementsByTagName('head')[0].appendChild(script
);
22 document
.getElementsByTagName('head')[0].removeChild(script
);
26 //loads a script into the document; no dependencies
27 var $LoadScript = function(scr
, onload
){
28 var script
= document
.createElement('script');
29 script
.onload
= onload
|| function(){};
31 var head
= document
.getElementsByTagName('head')[0];
32 head
.appendChild(script
);
42 <body class=
"test_iframe">