Permalink
Browse files

adding a test browser/serialize_styleattribute

  • Loading branch information...
1 parent 6b6e8fc commit 63010141cbde4639d53482f2daa6001f1c3a96f9 @jakutis jakutis committed Jul 20, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/browser/index.js
View
7 test/browser/index.js
@@ -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.