Skip to content

Commit

Permalink
adding a test browser/serialize_styleattribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jakutis committed Jul 20, 2010
1 parent 6b6e8fc commit 6301014
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/browser/index.js
Expand Up @@ -167,5 +167,12 @@ exports.tests = {
exception = true;
}
assertFalse("setValue_throws_INVALID_CHARACTER_ERR", exception);
},
serialize_styleattribute : function() {
var doc = new browser.Document();
doc.appendChild(doc.createElement('html'));
doc.documentElement.style.color = 'black';
doc.documentElement.style.backgroundColor = 'white';
assertEquals('', '<html style="color: black; background-color: white">\r\n</html>\r\n', require('jsdom/browser/domtohtml').domToHtml(doc));
}
};

0 comments on commit 6301014

Please sign in to comment.