[Rt-commit] r3375 - in rt/branches/3.5-TESTING: . html/Elements html/NoAuth lib/RT lib/t/regression

jesse at bestpractical.com jesse at bestpractical.com
Sun Jul 3 19:00:29 EDT 2005


Author: jesse
Date: Sun Jul  3 19:00:29 2005
New Revision: 3375

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/Elements/ShowCustomFieldWikitext
   rt/branches/3.5-TESTING/html/NoAuth/webrt.css
   rt/branches/3.5-TESTING/lib/RT/SearchBuilder.pm
   rt/branches/3.5-TESTING/lib/t/regression/07acl.t
Log:
 r22229 at hualien:  jesse | 2005-07-03 18:25:48 -0400
  r22154 at hualien:  jesse | 2005-07-03 17:50:55 -0400
   r22109 at hualien:  jesse | 2005-07-03 17:06:06 -0400
   * Test fixups
  
 


Modified: rt/branches/3.5-TESTING/html/Elements/ShowCustomFieldWikitext
==============================================================================
--- rt/branches/3.5-TESTING/html/Elements/ShowCustomFieldWikitext	(original)
+++ rt/branches/3.5-TESTING/html/Elements/ShowCustomFieldWikitext	Sun Jul  3 19:00:29 2005
@@ -45,7 +45,7 @@
 %# END BPS TAGGED BLOCK }}}
 % my $content = $Object->LargeContent || $Object->Content;
 % $content = $m->comp('/Elements/ScrubHTML', Content => $content);
-% my $wiki_content = Text::WikiFormat::format( $content."\n" , {}, { extended => 1, absolute_links => 1 });
+% my $wiki_content = Text::WikiFormat::format( $content."\n" , {}, { extended => 1,  absolute_links => 1, implicit_links => 1} );
 <%$wiki_content|n%>
 <%init>
 use Text::WikiFormat;

Modified: rt/branches/3.5-TESTING/html/NoAuth/webrt.css
==============================================================================
--- rt/branches/3.5-TESTING/html/NoAuth/webrt.css	(original)
+++ rt/branches/3.5-TESTING/html/NoAuth/webrt.css	Sun Jul  3 19:00:29 2005
@@ -416,9 +416,9 @@
 	 font-size: 11px;
 	 font-weight: bold;
 	 color: #0066CC }
-.value {       font-weight: bold; }
+.value {       font-weight: normal; }
 .entry {       font-weight: normal; }
-.label {       font-weight: normal;
+.label {       font-weight: bold; 
 	       text-align: right; }
 .labeltop {       font-weight: normal;
 	       text-align: right;

Modified: rt/branches/3.5-TESTING/lib/RT/SearchBuilder.pm
==============================================================================
--- rt/branches/3.5-TESTING/lib/RT/SearchBuilder.pm	(original)
+++ rt/branches/3.5-TESTING/lib/RT/SearchBuilder.pm	Sun Jul  3 19:00:29 2005
@@ -68,7 +68,7 @@
 package RT::SearchBuilder;
 
 use RT::Base;
-use DBIx::SearchBuilder qw/1.27/;
+use DBIx::SearchBuilder "1.27";
 
 use strict;
 use vars qw(@ISA);

Modified: rt/branches/3.5-TESTING/lib/t/regression/07acl.t
==============================================================================
--- rt/branches/3.5-TESTING/lib/t/regression/07acl.t	(original)
+++ rt/branches/3.5-TESTING/lib/t/regression/07acl.t	Sun Jul  3 19:00:29 2005
@@ -3,7 +3,7 @@
 use WWW::Mechanize;
 use HTTP::Cookies;
 
-use Test::More tests => 35;
+use Test::More tests => 34;
 use RT;
 RT::LoadConfig();
 RT::Init();
@@ -32,22 +32,6 @@
 # get the top page
 login($agent, $user_obj);
 
-is ($agent->{'status'}, 200, "Loaded a page - $RT::WebURL");
-# {{{ test a login
-
-# follow the link marked "Login"
-
-ok($agent->{form}->find_input('user'));
-
-ok($agent->{form}->find_input('pass'));
-ok ($agent->{'content'} =~ /username:/i);
-$agent->field( 'user' => 'customer-'.$$ );
-$agent->field( 'pass' => 'customer' );
-# the field isn't named, so we have to click link 0
-$agent->click(0);
-is($agent->{'status'}, 200, "Fetched the page ok");
-ok($agent->{'content'} =~ /Logout/i, "Found a logout link");
-
 # Test for absence of Configure and Preferences tabs.
 ok(!$agent->find_link( url => '/Admin/',
 		       text => 'Configuration'), "No config tab" );
@@ -133,22 +117,25 @@
 sub login {
     my $agent = shift;
 
-my $url = "http://localhost:".$RT::WebPort.$RT::WebPath."/";
-$agent->get($url);
-is ($agent->{'status'}, 200, "Loaded a page - http://localhost".$RT::WebPath);
-# {{{ test a login
-
-# follow the link marked "Login"
-
-ok($agent->{form}->find_input('user'));
-
-ok($agent->{form}->find_input('pass'));
-ok ($agent->{'content'} =~ /username:/i);
-$agent->field( 'user' => $user_obj->Name);
-$agent->field( 'pass' => 'customer' );
-# the field isn't named, so we have to click link 0
-$agent->click(0);
-is($agent->{'status'}, 200, "Fetched the page ok");
-ok($agent->{'content'} =~ /Logout/i, "Found a logout link");
+    my $url = "http://localhost:" . $RT::WebPort . $RT::WebPath . "/";
+    $agent->get($url);
+    is( $agent->{'status'}, 200,
+        "Loaded a page - http://localhost" . $RT::WebPath );
+
+    # {{{ test a login
+
+    # follow the link marked "Login"
+
+    ok( $agent->{form}->find_input('user') );
+
+    ok( $agent->{form}->find_input('pass') );
+    ok( $agent->{'content'} =~ /username:/i );
+    $agent->field( 'user' => $user_obj->Name );
+    $agent->field( 'pass' => 'customer' );
+
+    # the field isn't named, so we have to click link 0
+    $agent->click(0);
+    is( $agent->{'status'}, 200, "Fetched the page ok" );
+    ok( $agent->{'content'} =~ /Logout/i, "Found a logout link" );
 }
 1;


More information about the Rt-commit mailing list