[Rt-commit] rt branch, 4.2/rudder, updated. rt-4.1.19-14-g3435276
Jesse Vincent
jesse at bestpractical.com
Wed Aug 28 19:24:12 EDT 2013
The branch, 4.2/rudder has been updated
via 34352763330d00ac7280ba985c62eb1ec5693ea2 (commit)
from bd82e509f65291dba8d1b8f6fa15c95795c97989 (commit)
Summary of changes:
t/web/attachments.t | 6 +++---
t/web/squish.t | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
- Log -----------------------------------------------------------------
commit 34352763330d00ac7280ba985c62eb1ec5693ea2
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Wed Aug 28 19:23:47 2013 -0400
fix tests for the removal of the standalone print stylesheet.
diff --git a/t/web/attachments.t b/t/web/attachments.t
index ea110d4..0b8a5ea 100644
--- a/t/web/attachments.t
+++ b/t/web/attachments.t
@@ -5,7 +5,7 @@ use RT::Test tests => 159;
use constant LogoFile => $RT::StaticPath .'/images/bpslogo.png';
use constant FaviconFile => $RT::StaticPath .'/images/favicon.png';
-use constant TextFile => $RT::StaticPath .'/css/print.css';
+use constant TextFile => $RT::StaticPath .'/css/mobile.css';
my ($url, $m) = RT::Test->started_ok;
ok $m->login, 'logged in';
@@ -449,7 +449,7 @@ diag "check content type and content";
$m->content_contains('Attachments test', 'we have subject on the page');
$m->content_contains('Some content', 'and content');
$m->content_contains('Download bpslogo.png', 'page has file name');
- $m->content_contains('Download print.css', 'page has file name');
+ $m->content_contains('Download mobile.css', 'page has file name');
$m->follow_link_ok({text => "Download bpslogo.png"});
is($m->response->header('Content-Type'), 'image/png', 'Content-Type of png lacks charset' );
@@ -457,7 +457,7 @@ diag "check content type and content";
is($m->content, RT::Test->file_content(LogoFile), "Binary content matches");
$m->back;
- $m->follow_link_ok( { text => 'Download print.css' } );
+ $m->follow_link_ok( { text => 'Download mobile.css' } );
is( $m->response->header('Content-Type'),
'text/css;charset=UTF-8',
'Content-Type of text has charset',
diff --git a/t/web/squish.t b/t/web/squish.t
index f772d64..9d1c01b 100644
--- a/t/web/squish.t
+++ b/t/web/squish.t
@@ -15,8 +15,8 @@ diag "test squished files with devel mode disabled";
$m->follow_link_ok( { url_regex => qr!aileron/squished-([a-f0-9]{32})\.css! },
'follow squished css' );
$m->content_like( qr!/\*\* End of .*?.css \*/!, 'squished css' );
-$m->content_lacks( 'text-decoration: underline !important;',
- 'no print.css by default' );
+$m->content_lacks( 'counteract the titlebox',
+ 'no mobile.css by default' );
$m->back;
my ($js_link) =
@@ -29,7 +29,7 @@ RT::Test->stop_server;
diag "test squished files with customized files and devel mode disabled";
RT->AddJavaScript( 'not-by-default.js' );
-RT->AddStyleSheets( 'print.css' );
+RT->AddStyleSheets( 'mobile.css' );
( $url, $m ) = RT::Test->started_ok;
@@ -37,8 +37,8 @@ $m->login;
$m->follow_link_ok( { url_regex => qr!aileron/squished-([a-f0-9]{32})\.css! },
'follow squished css' );
$m->content_like( qr!/\*\* End of .*?.css \*/!, 'squished css' );
-$m->content_contains( 'text-decoration: underline !important;',
- 'has print.css' );
+$m->content_contains( 'counteract the titlebox',
+ 'has mobile.css' );
$m->back;
($js_link) =
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list