Switching to modern theme for all tests.

This commit is contained in:
mcafee%netscape.com 2001-12-15 09:08:56 +00:00
parent 1ed3ce6184
commit c3d445df75

View File

@ -21,7 +21,7 @@ use File::Basename; # for basename();
use Config; # for $Config{sig_name} and $Config{sig_num}
$::UtilsVersion = '$Revision: 1.117 $ ';
$::UtilsVersion = '$Revision: 1.118 $ ';
package TinderUtils;
@ -777,7 +777,7 @@ sub run_all_tests {
}
}
# Set status, in caes create profile failed.
# Set status, in case create profile failed.
if($cp_result) {
if(not $cp_result->{timed_out} and $cp_result->{exit_value} != 0) {
$test_result = "success";
@ -832,6 +832,19 @@ sub run_all_tests {
}
}
#
# Assume that we want to test modern skin for all tests.
#
if (system("\\grep -s general.skins.selectedSkin $pref_file > /dev/null")) {
print_log "Setting general.skins.selectedSkin to modern/1.0\n";
open PREFS, ">>$pref_file" or die "can't open $pref_file ($?)\n";
print PREFS "user_pref(\"general.skins.selectedSkin\", \"modern/1.0\");\n";
close PREFS;
} else {
print_log "Modern skin already set.\n";
}
# Mozilla alive test
#
@ -983,16 +996,6 @@ sub run_all_tests {
# Settle OS.
run_system_cmd("sync; sleep 10", 35);
if (system("\\grep -s general.skins.selectedSkin $pref_file > /dev/null")) {
print_log "Setting general.skins.selectedSkin to modern/1.0\n";
open PREFS, ">>$pref_file" or die "can't open $pref_file ($?)\n";
print PREFS "user_pref(\"general.skins.selectedSkin\", \"modern/1.0\");\n";
close PREFS;
} else {
print_log "Modern skin already set.\n";
}
my $url = "-chrome \"file:$build_dir/mozilla/xpfe/test/winopen.xul\"";
if($test_result eq 'success') {
$open_time = AliveTestReturnToken("XULWindowOpenTest",