Skip to content

Commit

Permalink
Add new test for vendor prefix align for nodes with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
L0stSoul authored and tonyganch committed Jun 9, 2014
1 parent b5f5a94 commit 1a5aa63
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/options/vendor-prefix-align.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ describe('options/vendor-prefix-align', function() {
this.comb.configure({ 'vendor-prefix-align': true });
});

it('Should correctly work when there is comment before property name', function() {
this.shouldBeEqual('with-comment-property.css', 'with-comment-property.expected.css');
});

it('Should correctly align prefixes in properties', function() {
this.shouldBeEqual('property-align.css', 'property-align.expected.css');
});
Expand Down
5 changes: 5 additions & 0 deletions test/options/vendor-prefix-align/with-comment-property.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
body
{
-webkit-transition: transform 150ms linear;
/* comment */ transition: transform 150ms linear;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
body
{
-webkit-transition: transform 150ms linear;
/* comment */ transition: transform 150ms linear;
}

0 comments on commit 1a5aa63

Please sign in to comment.