Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ie-specific property #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test moved to strict mode tests
shepik committed Dec 15, 2012
commit 313eb380fd08053ed642a21947ee01077883ea6a
13 changes: 7 additions & 6 deletions tests/tests.js
Original file line number Diff line number Diff line change
@@ -54,12 +54,6 @@ sink('basic mode', function (test, ok) {

})

test('ie-specific properties *prop', 1, function() {
var input = '.class {*display:block; display:inline-block;}'
,expected = '.class{*display:block;display:inline-block}'
ok(sqwish.minify(input) == expected, 'ie-specific properties are tolerated')
})

})

sink('strict mode', function (test, ok) {
@@ -77,6 +71,13 @@ sink('strict mode', function (test, ok) {
ok(actual == expected, 'collapsed duplicate into a single declaration')
})

test('ie-specific properties *prop', 1, function() {
var input = '.class {*display:block; display:inline-block;}'
,expected = '.class{display:inline-block;*display:block}'
console.log(sqwish.minify(input,true));
ok(sqwish.minify(input,true) == expected, 'ie-specific properties are tolerated')
})

})

start()