upload tizen1.0 source
[framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.1.0 / tests / unit / ls.php
1 <?php
2   header("Content-Type: application/json");
3
4   $directories = array();
5
6   if ($handle = opendir(getcwd())) {
7     while (false !== ($file = readdir($handle))) {
8       if (is_dir($file) && $file[0] !== "." ) {
9         array_push($directories, $file);
10       }
11     }
12
13     closedir($handle);
14   }
15
16   $test_pages = array_merge($directories, glob("**/*-tests.html"));
17   sort($test_pages);
18
19   echo '{ "testPages":["' . implode( '","', $test_pages ) . '"]}';
20 ?>