[Rt-commit] rt branch, squish-refactor, updated. rt-3.9.7-902-gc152514
Thomas Sibley
trs at bestpractical.com
Mon Dec 27 12:55:37 EST 2010
The branch, squish-refactor has been updated
via c1525149c003a949cc50b36f639021d91bad7007 (commit)
from 2142df6a23f70399cd5014cc5ed1aa80f3c310ef (commit)
Summary of changes:
t/web/squish.t | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit c1525149c003a949cc50b36f639021d91bad7007
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Dec 27 12:54:48 2010 -0500
Add some tests to make sure we get extra JS and CSS content with DevelMode
diff --git a/t/web/squish.t b/t/web/squish.t
index e7cec67..9e3525e 100644
--- a/t/web/squish.t
+++ b/t/web/squish.t
@@ -1,7 +1,7 @@
use strict;
use warnings;
use RT;
-use RT::Test tests => 16;
+use RT::Test tests => 18;
RT->Config->Set( DevelMode => 0 );
RT->Config->Set( WebDefaultStylesheet => 'aileron' );
@@ -55,8 +55,13 @@ SKIP:
diag "test squished files with devel mode enabled";
{
RT->Config->Set( 'DevelMode' => 1 );
+ RT->AddJavaScript( 'IE7/IE7.js' );
+ RT->AddStyleSheets( 'nottherebutwedontcare.css' );
+
( $url, $m ) = RT::Test->started_ok;
$m->login;
$m->content_unlike( qr!squished-.*?\.(js|css)!,
'no squished link with develmode' );
+ $m->content_like(qr/IE7\/IE7\.js/, "found extra javascript resource");
+ $m->content_like(qr/nottherebutwedontcare\.css/, "found extra css resource");
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list