| 1 |
<?php ?> |
| 2 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 3 |
"http://www.w3.org/TR/html4/strict.dtd"> |
| 4 |
<html> |
| 5 |
<head> |
| 6 |
<title>Dojo Toolkit - Every Dijit Test + Theme</title> |
| 7 |
|
| 8 |
<style type="text/css"> |
| 9 |
@import "../themes/claro/document.css"; |
| 10 |
@import "css/dijitTests.css"; |
| 11 |
</style> |
| 12 |
|
| 13 |
</head> |
| 14 |
<body> |
| 15 |
|
| 16 |
<h1 class="testTitle">Dijit Test Matrix Table</h1> |
| 17 |
|
| 18 |
<table id="testMatrix"> |
| 19 |
<thead> |
| 20 |
<tr class="top"><th rowspan="2">Test</th><th colspan="4">Tundra</th><th colspan="4">Nihilo</th><th colspan="4">Soria</th></tr> |
| 21 |
<tr class="tests"><th>Normal</th><th>a11y</th><th>rtl</th><th>a11y + rtl<th>Normal</th><th>a11y</th><th>rtl</th><th>a11y + rtl<th>Normal</th><th>a11y</th><th>rtl</th><th>a11y + rtl</tr> |
| 22 |
</thead> |
| 23 |
<tbody><?php |
| 24 |
|
| 25 |
printLinks(".", "Base Dijit Tests"); |
| 26 |
printLinks("./form", "Dijit Form Widget Tests"); |
| 27 |
printLinks("./layout", "Dijit Layout Widget Tests"); |
| 28 |
printLinks("./tree","Dijit Tree Tests"); |
| 29 |
|
| 30 |
?> |
| 31 |
</tbody> |
| 32 |
</table> |
| 33 |
|
| 34 |
</body> |
| 35 |
</html> |
| 36 |
<?php |
| 37 |
|
| 38 |
function printLinks($path, $group){ |
| 39 |
$handle = opendir($path); |
| 40 |
$i = 0; |
| 41 |
print "<tr class='spacer'><td colspan='13'>".$group."</td></tr>"; |
| 42 |
while(false !== ($file = readdir($handle))){ |
| 43 |
if(preg_match("/(test_|demo_)(.*)\.html/", $file, $matches)){ |
| 44 |
$base = $matches[0]; |
| 45 |
$link = $path."/".$matches[0]; |
| 46 |
print |
| 47 |
"<tr class='testRow ". (++$i % 2 ==0 ? "alt" : "") ."'>" . |
| 48 |
|
| 49 |
"<td class='label'>" . $base . "</td>" . |
| 50 |
|
| 51 |
|
| 52 |
"<td><a href='".$link."'>run</a></td>" . |
| 53 |
"<td><a href='".$link."?a11y=true'>run</a></td>" . |
| 54 |
"<td><a href='".$link."?dir=rtl'>run</a></td>" . |
| 55 |
"<td><a href='".$link."?dir=rtl&a11y=true'>run</a></td>" . |
| 56 |
|
| 57 |
|
| 58 |
"<td><a href='".$link."?theme=nihilo'>run</a></td>" . |
| 59 |
"<td><a href='".$link."?theme=nihilo&a11y=true'>run</a></td>" . |
| 60 |
"<td><a href='".$link."?theme=nihilo&dir=rtl'>run</a></td>" . |
| 61 |
"<td><a href='".$link."?theme=nihilo&dir=rtl&a11y=true'>run</a></td>" . |
| 62 |
|
| 63 |
|
| 64 |
"<td><a href='".$link."?theme=soria'>run</a></td>" . |
| 65 |
"<td><a href='".$link."?theme=soria&a11y=true'>run</a></td>" . |
| 66 |
"<td><a href='".$link."?theme=soria&dir=rtl'>run</a></td>" . |
| 67 |
"<td><a href='".$link."?theme=soria&dir=rtl&a11y=true'>run</a></td>" . |
| 68 |
|
| 69 |
"</tr>"; |
| 70 |
} |
| 71 |
} |
| 72 |
} |
| 73 |
|
| 74 |
|
| 75 |
?> |