Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Three unit tests that fails with optimize_shorthands

- font and background are mistakely exploded with value of optimize_shorthands that should do not touch it
- order of properties is not kept when it should (sort_properties=0)
  • Loading branch information...
commit 3227f68de8acf9bc48b6c37798259083b538bb09 1 parent 9e3913f
@Cerdic Cerdic authored
View
37 testing/unit-tests/csst/shorthands/bugshorthand1.csst
@@ -0,0 +1,37 @@
+--TEST--
+Test general font optimization
+--CSS--
+ .form-suggest {
+ height : 200px ;
+ background : #DEE2D0 ;
+ vertical-align : top;
+ }
+
+body{
+ color: #000000;
+ font : 11px Verdana, Arial, Helvetica, sans-serif ;
+ margin: 0 10px 10px 10px;
+ padding: 0;
+ overflow:auto;
+}
+--EXPECT--
+array (
+'.form-suggest' =>
+ array (
+ 'height' => '200px',
+ 'background' => '#DEE2D0',
+ 'vertical-align' => 'top',
+ ),
+ 'body' =>
+ array (
+ 'color' => '#000',
+ 'font' => '11px Verdana,Arial,Helvetica,sans-serif',
+ 'margin' => '0 10px 10px',
+ 'padding' => '0',
+ 'overflow' => 'auto',
+ ),
+)
+--SETTINGS--
+optimise_shorthands=1
+sort_selectors=0
+sort_properties=0
View
38 testing/unit-tests/csst/shorthands/bugshorthand2.csst
@@ -0,0 +1,38 @@
+--TEST--
+Test general font optimization
+--CSS--
+ .form-suggest {
+ height : 200px ;
+ background : #DEE2D0 ;
+ vertical-align : top;
+ }
+
+body{
+ color: #000000;
+ font : 11px Verdana, Arial, Helvetica, sans-serif ;
+ margin: 0 10px 10px 10px;
+ padding: 0;
+ overflow:auto;
+}
+--EXPECT--
+array (
+'.form-suggest' =>
+ array (
+ 'height' => '200px',
+ 'background' => '#DEE2D0',
+ 'vertical-align' => 'top',
+ ),
+
+ 'body' =>
+ array (
+ 'color' => '#000',
+ 'font' => '11px Verdana,Arial,Helvetica,sans-serif',
+ 'margin' => '0 10px 10px',
+ 'padding' => '0',
+ 'overflow' => 'auto',
+ ),
+)
+--SETTINGS--
+optimise_shorthands=2
+sort_selectors=0
+sort_properties=0
View
38 testing/unit-tests/csst/shorthands/bugshorthand3.csst
@@ -0,0 +1,38 @@
+--TEST--
+Test general font optimization
+--CSS--
+ .form-suggest {
+ height : 200px ;
+ background : #DEE2D0 ;
+ vertical-align : top;
+ }
+
+body{
+ color: #000000;
+ font : 11px Verdana, Arial, Helvetica, sans-serif ;
+ margin: 0 10px 10px 10px;
+ padding: 0;
+ overflow:auto;
+}
+--EXPECT--
+array (
+'.form-suggest' =>
+ array (
+ 'height' => '200px',
+ 'background' => '#DEE2D0',
+ 'vertical-align' => 'top',
+ ),
+
+ 'body' =>
+ array (
+ 'color' => '#000',
+ 'font' => '11px Verdana,Arial,Helvetica,sans-serif',
+ 'margin' => '0 10px 10px',
+ 'padding' => '0',
+ 'overflow' => 'auto',
+ ),
+)
+--SETTINGS--
+optimise_shorthands=3
+sort_selectors=0
+sort_properties=0

0 comments on commit 3227f68

Please sign in to comment.
Something went wrong with that request. Please try again.