Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added some failing attr tests
  • Loading branch information
tj committed Oct 19, 2010
1 parent 690350e commit 6e00dc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/jade.test.js
Expand Up @@ -476,6 +476,11 @@ module.exports = {
assert.equal('<div style="color: white"></div>', render("div(style='color: white')"), 'Test attrs that contain attr separators');
assert.equal('<p class="foo"></p>', render("p('class'='foo')"), 'Test keys with single quotes');
assert.equal('<p class="foo"></p>', render("p(\"class\": 'foo')"), 'Test keys with double quotes');

assert.equal('<p data-dynamic="true"></p>', render('p("data-dynamic": "true")'));
assert.equal('<p class="name" data-dynamic="true"></p>', render('p("class": "name", "data-dynamic": "true")'));
assert.equal('<p data-dynamic="true"></p>', render('p(\'data-dynamic\': "true")'));
assert.equal('<p class="name" data-dynamic="true"></p>', render('p(\'class\': "name", \'data-dynamic\': "true")'));
},

'test code attrs': function(assert){
Expand Down

0 comments on commit 6e00dc4

Please sign in to comment.