annotate DataTables-1.9.4/media/unit_testing/templates/js_data.php @ 0:ac5f9272033b draft

first upload
author saskia-hiltemann
date Tue, 01 Jul 2014 11:42:23 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
1 <?php
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
2 header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
3 header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
4 header( 'Cache-Control: no-store, no-cache, must-revalidate' );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
5 header( 'Cache-Control: post-check=0, pre-check=0', false );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
6 header( 'Pragma: no-cache' );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
7 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
8 <html>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
9 <head>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
10 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
11 <link rel="shortcut icon" type="image/ico" href="http://www.sprymedia.co.uk/media/images/favicon.ico" />
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
12
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
13 <title>DataTables unit testing</title>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
14 <style type="text/css" title="currentStyle">
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
15 @import "../../css/demo_page.css";
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
16 @import "../../css/demo_table.css";
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
17 </style>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
18 <script type="text/javascript" language="javascript" src="../../js/jquery.js"></script>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
19 <script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
20 <script type="text/javascript" language="javascript" src="../unit_test.js"></script>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
21 <script type="text/javascript" charset="utf-8">
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
22 /* Make the data source available for testing */
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
23 var gaaData = [
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
24 ['Trident','Internet Explorer 4.0','Win 95+','4','X'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
25 ['Trident','Internet Explorer 5.0','Win 95+','5','C'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
26 ['Trident','Internet Explorer 5.5','Win 95+','5.5','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
27 ['Trident','Internet Explorer 6','Win 98+','6','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
28 ['Trident','Internet Explorer 7','Win XP SP2+','7','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
29 ['Trident','AOL browser (AOL desktop)','Win XP','6','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
30 ['Gecko','Firefox 1.0','Win 98+ / OSX.2+','1.7','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
31 ['Gecko','Firefox 1.5','Win 98+ / OSX.2+','1.8','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
32 ['Gecko','Firefox 2.0','Win 98+ / OSX.2+','1.8','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
33 ['Gecko','Firefox 3.0','Win 2k+ / OSX.3+','1.9','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
34 ['Gecko','Camino 1.0','OSX.2+','1.8','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
35 ['Gecko','Camino 1.5','OSX.3+','1.8','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
36 ['Gecko','Netscape 7.2','Win 95+ / Mac OS 8.6-9.2','1.7','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
37 ['Gecko','Netscape Browser 8','Win 98SE+','1.7','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
38 ['Gecko','Netscape Navigator 9','Win 98+ / OSX.2+','1.8','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
39 ['Gecko','Mozilla 1.0','Win 95+ / OSX.1+',1,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
40 ['Gecko','Mozilla 1.1','Win 95+ / OSX.1+',1.1,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
41 ['Gecko','Mozilla 1.2','Win 95+ / OSX.1+',1.2,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
42 ['Gecko','Mozilla 1.3','Win 95+ / OSX.1+',1.3,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
43 ['Gecko','Mozilla 1.4','Win 95+ / OSX.1+',1.4,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
44 ['Gecko','Mozilla 1.5','Win 95+ / OSX.1+',1.5,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
45 ['Gecko','Mozilla 1.6','Win 95+ / OSX.1+',1.6,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
46 ['Gecko','Mozilla 1.7','Win 98+ / OSX.1+',1.7,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
47 ['Gecko','Mozilla 1.8','Win 98+ / OSX.1+',1.8,'A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
48 ['Gecko','Seamonkey 1.1','Win 98+ / OSX.2+','1.8','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
49 ['Gecko','Epiphany 2.20','Gnome','1.8','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
50 ['Webkit','Safari 1.2','OSX.3','125.5','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
51 ['Webkit','Safari 1.3','OSX.3','312.8','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
52 ['Webkit','Safari 2.0','OSX.4+','419.3','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
53 ['Webkit','Safari 3.0','OSX.4+','522.1','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
54 ['Webkit','OmniWeb 5.5','OSX.4+','420','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
55 ['Webkit','iPod Touch / iPhone','iPod','420.1','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
56 ['Webkit','S60','S60','413','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
57 ['Presto','Opera 7.0','Win 95+ / OSX.1+','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
58 ['Presto','Opera 7.5','Win 95+ / OSX.2+','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
59 ['Presto','Opera 8.0','Win 95+ / OSX.2+','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
60 ['Presto','Opera 8.5','Win 95+ / OSX.2+','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
61 ['Presto','Opera 9.0','Win 95+ / OSX.3+','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
62 ['Presto','Opera 9.2','Win 88+ / OSX.3+','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
63 ['Presto','Opera 9.5','Win 88+ / OSX.3+','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
64 ['Presto','Opera for Wii','Wii','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
65 ['Presto','Nokia N800','N800','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
66 ['Presto','Nintendo DS browser','Nintendo DS','8.5','C/A<sup>1</sup>'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
67 ['KHTML','Konqureror 3.1','KDE 3.1','3.1','C'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
68 ['KHTML','Konqureror 3.3','KDE 3.3','3.3','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
69 ['KHTML','Konqureror 3.5','KDE 3.5','3.5','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
70 ['Tasman','Internet Explorer 4.5','Mac OS 8-9','-','X'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
71 ['Tasman','Internet Explorer 5.1','Mac OS 7.6-9','1','C'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
72 ['Tasman','Internet Explorer 5.2','Mac OS 8-X','1','C'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
73 ['Misc','NetFront 3.1','Embedded devices','-','C'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
74 ['Misc','NetFront 3.4','Embedded devices','-','A'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
75 ['Misc','Dillo 0.8','Embedded devices','-','X'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
76 ['Misc','Links','Text only','-','X'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
77 ['Misc','Lynx','Text only','-','X'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
78 ['Misc','IE Mobile','Windows Mobile 6','-','C'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
79 ['Misc','PSP browser','PSP','-','C'],
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
80 ['Other browsers','All others','-','-','U']
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
81 ];
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
82 </script>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
83 <?php
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
84 $aScripts = explode( ":", $_GET['scripts'] );
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
85 for ( $i=0 ; $i<count($aScripts) ; $i++ )
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
86 {
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
87 echo '<script type="text/javascript" language="javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
88 }
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
89 ?>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
90 </head>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
91 <body id="dt_example">
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
92 <div id="container">
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
93 <div class="full_width big">
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
94 <i>DataTables</i> unit test template for reading DOM data
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
95 </div>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
96
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
97 <div id="demo">
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
98 <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
99 <thead>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
100 <tr>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
101 <th>Rendering engine</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
102 <th>Browser</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
103 <th>Platform(s)</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
104 <th>Engine version</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
105 <th>CSS grade</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
106 </tr>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
107 </thead>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
108 <tbody>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
109 </tbody>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
110 <tfoot>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
111 <tr>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
112 <th>Rendering engine</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
113 <th>Browser</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
114 <th>Platform(s)</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
115 <th>Engine version</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
116 <th>CSS grade</th>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
117 </tr>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
118 </tfoot>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
119 </table>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
120 </div>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
121 <div class="spacer"></div>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
122 </div>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
123 </body>
ac5f9272033b first upload
saskia-hiltemann
parents:
diff changeset
124 </html>