- got rid of processHTML in Request.HTML.
[mootools/dkf.git] / Tests / test_frame.html
blobe5ad4ea5a70e5f483e17e6f09260c56e9b8c8030
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">
3 <head>
4 <title>Unit Test Runner</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6 <script>
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
13 function $exec(text){
14 if (!text) return text;
15 if (window.execScript){
16 window.execScript(text);
17 } else {
18 var script = document.createElement('script');
19 script.setAttribute('type', 'text/javascript');
20 script.text = text;
21 document.getElementsByTagName('head')[0].appendChild(script);
22 document.getElementsByTagName('head')[0].removeChild(script);
24 return text;
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(){};
30 script.src = scr;
31 var head = document.getElementsByTagName('head')[0];
32 head.appendChild(script);
34 </script>
35 <style>
36 body {
37 margin: 0px;
38 padding: 15px;
40 </style>
41 </head>
42 <body class="test_iframe">
43 </body>
44 </html>