Added test for #8 (skipped)

This commit is contained in:
Ben Zörb 2015-04-30 17:10:05 +02:00
parent 91f0c24d17
commit 77bdac4d98
2 changed files with 22 additions and 0 deletions

14
test/fixtures/entities2.html vendored Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>asd</title>
</head>
<body>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 563 87.9" enable-background="new 0 0 563 87.9" xml:space="preserve" width="167px" height="26px" fill="#fff">
<polygon />
<polygon />
<polygon />
</svg>
</body>
</html>

View File

@ -95,4 +95,12 @@ describe('inline-critical', function() {
expect(strip2(out.toString('utf-8'))).to.be.equal(strip2(expected));
done();
});
it.skip('should keep self closing svg elements', function(done) {
var html = read('test/fixtures/entities2.html');
var out = inlineCritical(html, '');
expect(strip(out.toString('utf-8'))).to.be.equal(strip(html));
done();
});
});