X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fsquish.t;h=9d1c01b1fe7224b7141c1e8cda04277365947403;hb=a21d07037590cccd5ac5c572f5d28f062c622968;hp=ff43e74fb00faa1c89d910b074d1f0a2f6168f89;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/t/web/squish.t b/rt/t/web/squish.t index ff43e74fb..9d1c01b1f 100644 --- a/rt/t/web/squish.t +++ b/rt/t/web/squish.t @@ -5,18 +5,18 @@ use RT::Test tests => 26; RT->Config->Set( DevelMode => 0 ); RT->Config->Set( WebDefaultStylesheet => 'aileron' ); -RT->Config->Set( MasonLocalComponentRoot => RT::Test::get_abs_relocatable_dir('html') ); +RT->Config->Set( LocalStaticPath => RT::Test::get_abs_relocatable_dir('static') ); my ( $url, $m ) = RT::Test->started_ok; $m->login; diag "test squished files with devel mode disabled"; -$m->follow_link_ok( { url_regex => qr!aileron-squished-([a-f0-9]{32})\.css! }, +$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,16 +29,16 @@ 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; $m->login; -$m->follow_link_ok( { url_regex => qr!aileron-squished-([a-f0-9]{32})\.css! }, +$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) =