mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
26 lines
No EOL
856 B
Text
26 lines
No EOL
856 B
Text
<% @page_title = test_suite_name @suite_path -%>
|
|
<script type="text/javascript">
|
|
<!--
|
|
function openSuite(selector) {
|
|
var suite = selector.options[selector.selectedIndex].value;
|
|
if(suite == "header") return;
|
|
if(top.location.href != location.href) //inside a frame
|
|
top.location = "<%= url_for :action => :support_file %>/TestRunner.html?test=tests" + suite
|
|
else
|
|
window.location = "<%= url_for :action => :test_file, :testname => '' %>" + suite
|
|
}
|
|
//-->
|
|
</script>
|
|
<select onchange="openSuite(this)">
|
|
<option value="header">Suites:</option>
|
|
<% for name, path in test_suites @suite_path -%>
|
|
<option value="<%= path %>"><%= name%></option>
|
|
<% end -%>
|
|
</select>
|
|
|
|
<table>
|
|
<tr><th><%= @page_title %></th></tr>
|
|
<% for name, path in test_cases @suite_path -%>
|
|
<tr><td><%= link_to_test_case name, path %></td></tr>
|
|
<% end -%>
|
|
</table> |