From 7679a1184043f7bedce8a32531e67f6c91ef8b5f Mon Sep 17 00:00:00 2001
From: "ccooper%deadsquid.com"
Date: Tue, 24 Apr 2007 16:37:25 +0000
Subject: [PATCH] b=322949
- automatically re-select the same testgroup when the user return to continue testing
- select the first subgroup that has not yet been tested in its entirety (defaults to first subgroup if all subgroups have been tested)
git-svn-id: svn://10.0.0.236/trunk@224948 18797224-902f-48f8-a5cc-f745e15eee43
---
mozilla/webtools/litmus/css/litmus.css | 6 +++++-
mozilla/webtools/litmus/js/SubGroup.js | 17 ++++++++++++++---
mozilla/webtools/litmus/run_tests.cgi | 19 ++++++++++---------
.../en/default/process/process.html.tmpl | 2 +-
.../runtests/selectgroupsubgroup.html.tmpl | 4 ++--
.../en/default/runtests/testdisplay.html.tmpl | 9 +++++----
6 files changed, 37 insertions(+), 20 deletions(-)
diff --git a/mozilla/webtools/litmus/css/litmus.css b/mozilla/webtools/litmus/css/litmus.css
index 0896067da19..cfaa5a0e661 100755
--- a/mozilla/webtools/litmus/css/litmus.css
+++ b/mozilla/webtools/litmus/css/litmus.css
@@ -1462,4 +1462,8 @@ ul.test_run_nav li {
ul.test_run_nav a {
text-transform: none;
-}
\ No newline at end of file
+}
+
+li.recommended {
+ font-size: 1.2em;
+}
diff --git a/mozilla/webtools/litmus/js/SubGroup.js b/mozilla/webtools/litmus/js/SubGroup.js
index 62bd82b90a1..3aa6dba03ff 100755
--- a/mozilla/webtools/litmus/js/SubGroup.js
+++ b/mozilla/webtools/litmus/js/SubGroup.js
@@ -67,7 +67,18 @@ function showsubgroup() {
}
-function group_init() {
- testConfigHeight = new fx.Height('test_run_summary', {duration: 400});
- testConfigHeight.toggle();
+function group_init(testgroup_id) {
+ testConfigHeight = new fx.Height('test_run_summary', {duration: 400});
+ testConfigHeight.toggle();
+
+ if (testgroup_id) {
+ var testgroups = document.getElementsByName('testgroup');
+ for (var i=0; iparam("test_run_id");
+ my $default_testgroup = $c->param("defaulttestgroup");
if (!$test_run_id) {
&displayAllTestRuns();
@@ -176,15 +177,15 @@ sub displayGroupSelection() {
}
my $vars = {
- title => $title,
- user => Litmus::Auth::getCurrentUser(),
- test_runs => [$test_run],
- testgroups => \@testgroups,
- subgroups => \%subgroups,
- defaultgroup => $defaultgroup,
- defaultemail => $user,
- show_admin => Litmus::Auth::istrusted($user),
- sysconfig => $sysconfig,
+ title => $title,
+ user => Litmus::Auth::getCurrentUser(),
+ test_runs => [$test_run],
+ testgroups => \@testgroups,
+ subgroups => \%subgroups,
+ defaulttestgroup => $default_testgroup,
+ defaultemail => $user,
+ show_admin => Litmus::Auth::istrusted($user),
+ sysconfig => $sysconfig,
};
Litmus->template()->process("runtests/selectgroupsubgroup.html.tmpl",
diff --git a/mozilla/webtools/litmus/templates/en/default/process/process.html.tmpl b/mozilla/webtools/litmus/templates/en/default/process/process.html.tmpl
index 0e8976cfb4f..60fde317452 100755
--- a/mozilla/webtools/litmus/templates/en/default/process/process.html.tmpl
+++ b/mozilla/webtools/litmus/templates/en/default/process/process.html.tmpl
@@ -102,7 +102,7 @@ Thank you for your testing efforts.
Where to now?