[Rt-commit] r2705 - in rt/branches/PLATANO-EXPERIMENTAL-CSS: . bin html/NoAuth lib/t/regression

jesse at bestpractical.com jesse at bestpractical.com
Sat Apr 16 04:16:37 EDT 2005


Author: jesse
Date: Sat Apr 16 04:16:37 2005
New Revision: 2705

Modified:
   rt/branches/PLATANO-EXPERIMENTAL-CSS/   (props changed)
   rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/standalone_httpd.in
   rt/branches/PLATANO-EXPERIMENTAL-CSS/html/NoAuth/webrt.css
   rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/02basic_web.t
   rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/03web_compiliation_errors.t
Log:
 r13094 at hualien:  jesse | 2005-04-16 03:10:38 -0400
  r12993 at hualien:  jesse | 2005-04-16 02:23:51 -0400
   r10286 at hualien:  jesse | 2005-03-28 05:49:49 -0500
   * Merge forward from 3.4-RELEASE
  
 


Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/standalone_httpd.in
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/standalone_httpd.in	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/bin/standalone_httpd.in	Sat Apr 16 04:16:37 2005
@@ -57,10 +57,10 @@
 
 RT::Init();
 
+my $port = shift @ARGV || $RT::WebPort || '8080';
 use RT::Interface::Web::Standalone;
-
 my $server = RT::Interface::Web::Standalone->new;
-$server->port(shift @ARGV) if ($ARGV[0]);
+$server->port($port);
 $server->run();
 
 

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/NoAuth/webrt.css
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/NoAuth/webrt.css	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/NoAuth/webrt.css	Sat Apr 16 04:16:37 2005
@@ -729,6 +729,17 @@
          text-align: right;
         }
 
+textarea.signature {
+    width: 100%;
+}
+textarea.comments {
+    width: 100%;
+}
+
+textarea.messagebox {
+    width: 100%;
+}
+
 %# Provide a callback for adding/modifying the style sheet.
 %# http://www.w3.org/TR/REC-CSS1 - section 3.2, says:
 %#   "latter specified rule wins"

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/02basic_web.t
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/02basic_web.t	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/02basic_web.t	Sat Apr 16 04:16:37 2005
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
-use Test::More qw/no_plan/;
+use Test::More 'no_plan';
 use WWW::Mechanize;
 use HTTP::Request::Common;
 use HTTP::Cookies;
@@ -15,9 +15,11 @@
 
 $agent->cookie_jar($cookie_jar);
 
-
+use RT;
+RT::LoadConfig();
 # get the top page
-my $url = "http://localhost".$RT::WebPath."/";
+my $url = "http://localhost:".$RT::WebPort.$RT::WebPath."/";
+diag $url;
 $agent->get($url);
 
 is ($agent->{'status'}, 200, "Loaded a page");
@@ -49,7 +51,7 @@
 $agent->field('Subject' => "Ticket with utf8 body");
 $agent->field('Content' => $string);
 ok($agent->submit(), "Created new ticket with $string as Content");
-ok( $agent->{'content'} =~ qr{$string} , "Found the content");
+like( $agent->{'content'}, qr{$string} , "Found the content");
 $agent->get($url."Ticket/Create.html?Queue=1");
 is ($agent->{'status'}, 200, "Loaded Create.html");
 $agent->form(3);
@@ -60,7 +62,7 @@
 $agent->field('Content' => "Ticket with utf8 subject");
 ok($agent->submit(), "Created new ticket with $string as Subject");
 
-ok( $agent->{'content'} =~ qr{$string} , "Found the content");
+like( $agent->{'content'}, qr{$string} , "Found the content");
 
 
 
@@ -80,14 +82,14 @@
 $agent->field("AttachmentField", "Subject");
 $agent->field("AttachmentOp", "LIKE");
 $agent->field("ValueOfAttachment", "aaa");
-$agent->submit();
+$agent->submit("AddClause");
 
 # set the next value
 ok($agent->form_name('BuildQuery'));
 $agent->field("AttachmentField", "Subject");
 $agent->field("AttachmentOp", "LIKE");
 $agent->field("ValueOfAttachment", "bbb");
-$agent->submit();
+$agent->submit("AddClause");
 
 ok($agent->form_name('BuildQuery'));
 

Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/03web_compiliation_errors.t
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/03web_compiliation_errors.t	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/lib/t/regression/03web_compiliation_errors.t	Sat Apr 16 04:16:37 2005
@@ -16,8 +16,11 @@
 $agent->cookie_jar($cookie_jar);
 
 
+use RT;
+RT::LoadConfig();
 # get the top page
-my $url = "http://localhost".$RT::WebPath."/";
+my $url = "http://localhost:".$RT::WebPort.$RT::WebPath."/";
+diag $url;
 $agent->get($url);
 
 is ($agent->{'status'}, 200, "Loaded a page");


More information about the Rt-commit mailing list