1 | cc = require '../lib/coffeecup'
|
2 |
|
3 | describe 'IE conditionals', ->
|
4 | describe " ie 'gte IE8', -> link href: 'ie.css', rel: 'stylesheet'", ->
|
5 | it 'should render <!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->', ->
|
6 | h = -> ie 'gte IE8', -> link href: 'ie.css', rel: 'stylesheet'
|
7 | cc.render(h).should.equal '<!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->'
|
8 |
|
9 | describe 'IE conditionals optimized', ->
|
10 | describe " ie 'gte IE8', -> link href: 'ie.css', rel: 'stylesheet'", ->
|
11 | it 'should render <!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->', ->
|
12 | h = -> ie 'gte IE8', -> link href: 'ie.css', rel: 'stylesheet'
|
13 | cc.render(h, optimized: true, cache: on).should.equal '<!--[if gte IE8]><link href="ie.css" rel="stylesheet" /><![endif]-->'
|