2 header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
3 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
4 header( 'Cache-Control: no-store, no-cache, must-revalidate' );
5 header( 'Cache-Control: post-check=0, pre-check=0', false );
6 header( 'Pragma: no-cache' );
7 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
8 "http://www.w3.org/TR/html4/strict.dtd">
11 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
12 <title>DataTables unit test controller</title>
14 <style type="text/css" media="screen">
16 font: 12px/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
20 background-color: #fff;
43 <script type="text/javascript" language="javascript" src="../js/jquery.js"></script>
44 <script type="text/javascript" charset="utf-8">
47 function fnReadDir( &$aReturn, $path )
49 $rDir = opendir( $path );
50 while ( ($file = readdir($rDir)) !== false )
52 if ( $file == "." || $file == ".." || $file == ".DS_Store" )
56 else if ( is_dir( $path.'/'.$file ) )
58 fnReadDir( $aReturn, $path.'/'.$file );
62 array_push( $aReturn, $path.'/'.$file );
68 /* Get the tests dynamically from the 'tests' directory, and their templates */
70 fnReadDir( $aFiles, "tests" );
72 for ( $i=0 ; $i<count($aFiles) ; $i++ )
75 $fp = fopen( $aFiles[$i], "r" );
76 fscanf( $fp, "// DATA_TEMPLATE: %s", $sTemplate );
79 $aPath = explode('/', $aFiles[$i]);
82 '"sTemplate": "'.$sTemplate.'", '.
83 '"sTest": "'.$aFiles[$i].'", '.
84 '"sGroup": "'.$aPath[1].'"},'."\n";
89 gaoTest.pop(); /* No interest in the null */
91 <script type="text/javascript" language="javascript" src="controller.js"></script>
93 <body id="controller">
94 <h1>DataTables unit testing</h1>
95 <div id="test_running">Running test: <span id="test_number"></span></div>
97 <b>Test information:</b><br>