Permalink
Browse files

[enh] added test for @import "url";

  • Loading branch information...
stef authored and NV committed Mar 19, 2011
1 parent 8d1d5df commit fe08dbb684903c2a383efd482d69226b639bcd5a
Showing with 48 additions and 0 deletions.
  1. +48 −0 test/parse.test.js
View
@@ -480,6 +480,54 @@ var TESTS = [
}
]
}
},
{
input: '@import "partial.css";\ni {font-style: italic}',
result: {
cssRules: [
{
href: 'partial.css',
media: {
length: 0
},
styleSheet: {
cssRules: []
}
},
{
selectorText: "i",
style: {
0: 'font-style',
'font-style': 'italic',
length: 1
}
}
]
}
},
{
input: "@import 'partial.css';\ni {font-style: italic}",
result: {
cssRules: [
{
href: 'partial.css',
media: {
length: 0
},
styleSheet: {
cssRules: []
}
},
{
selectorText: "i",
style: {
0: 'font-style',
'font-style': 'italic',
length: 1
}
}
]
}
}
];

0 comments on commit fe08dbb

Please sign in to comment.