source: Dev/trunk/src/client/dijit/tests/_testMatrix.php @ 483

Last change on this file since 483 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 2.3 KB
Line 
1<?php // IF you don't have PHP5 installed, you can't use this index! ?>
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
38function 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                            // standard / tundra:
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&amp;a11y=true'>run</a></td>" .
56
57                                // nihilo
58                                "<td><a href='".$link."?theme=nihilo'>run</a></td>" .
59                                "<td><a href='".$link."?theme=nihilo&amp;a11y=true'>run</a></td>" .
60                                "<td><a href='".$link."?theme=nihilo&amp;dir=rtl'>run</a></td>" .
61                                "<td><a href='".$link."?theme=nihilo&amp;dir=rtl&amp;a11y=true'>run</a></td>" .
62
63                                // soria
64                                "<td><a href='".$link."?theme=soria'>run</a></td>" .
65                                "<td><a href='".$link."?theme=soria&amp;a11y=true'>run</a></td>" .
66                                "<td><a href='".$link."?theme=soria&amp;dir=rtl'>run</a></td>" .
67                                "<td><a href='".$link."?theme=soria&amp;dir=rtl&amp;a11y=true'>run</a></td>" .
68
69                         "</tr>";
70                }
71        }
72}
73
74
75?>
Note: See TracBrowser for help on using the repository browser.