[Bps-public-commit] r13551 - in HTML-RewriteAttributes: . lib/HTML/RewriteAttributes

sartak at bestpractical.com sartak at bestpractical.com
Mon Jun 23 18:37:27 EDT 2008


Author: sartak
Date: Mon Jun 23 18:37:26 2008
New Revision: 13551

Modified:
   HTML-RewriteAttributes/   (props changed)
   HTML-RewriteAttributes/lib/HTML/RewriteAttributes/Resources.pm
   HTML-RewriteAttributes/t/020-inline-css.t
   HTML-RewriteAttributes/t/021-import.t
   HTML-RewriteAttributes/t/022-import-off.t

Log:
 r63089 at onn:  sartak | 2008-06-23 18:37:14 -0400
 Test fixes for the new /* path */ inclusions


Modified: HTML-RewriteAttributes/lib/HTML/RewriteAttributes/Resources.pm
==============================================================================
--- HTML-RewriteAttributes/lib/HTML/RewriteAttributes/Resources.pm	(original)
+++ HTML-RewriteAttributes/lib/HTML/RewriteAttributes/Resources.pm	Mon Jun 23 18:37:26 2008
@@ -109,7 +109,7 @@
 
     return '' if $self->{rewrite_inline_imports_seen}{$path}++;
 
-    my $content = "/* $path */\n"
+    my $content = "\n/* $path */\n"
                 . $self->{rewrite_inline_css_cb}->($path);
     return $self->_handle_imports($content, $path);
 }

Modified: HTML-RewriteAttributes/t/020-inline-css.t
==============================================================================
--- HTML-RewriteAttributes/t/020-inline-css.t	(original)
+++ HTML-RewriteAttributes/t/020-inline-css.t	Mon Jun 23 18:37:26 2008
@@ -53,6 +53,8 @@
         
 <style type="text/css">
 <!--
+
+/* foo.css */
 INLINED CSS
 -->
 </style>

Modified: HTML-RewriteAttributes/t/021-import.t
==============================================================================
--- HTML-RewriteAttributes/t/021-import.t	(original)
+++ HTML-RewriteAttributes/t/021-import.t	Mon Jun 23 18:37:26 2008
@@ -55,7 +55,13 @@
 
 <style type="text/css">
 <!--
-foo; quux; bar;
+
+/* /foo.css */
+foo;
+/* /quux.css */
+quux;
+/* /bar.css */
+bar;
 -->
 </style>
 
@@ -65,6 +71,8 @@
 
 <style type="text/css">
 <!--
+
+/* /baz.css */
 baz;
 -->
 </style>

Modified: HTML-RewriteAttributes/t/022-import-off.t
==============================================================================
--- HTML-RewriteAttributes/t/022-import-off.t	(original)
+++ HTML-RewriteAttributes/t/022-import-off.t	Mon Jun 23 18:37:26 2008
@@ -53,6 +53,8 @@
 
 <style type="text/css">
 <!--
+
+/* foo.css */
 foo; @import "quux.css";
 -->
 </style>
@@ -63,6 +65,8 @@
 
 <style type="text/css">
 <!--
+
+/* baz.css */
 baz; @import "foo.css";
 -->
 </style>



More information about the Bps-public-commit mailing list