mirror of
https://github.com/danog/inline-critical.git
synced 2025-01-22 22:02:44 +01:00
Added test for #8 (skipped)
This commit is contained in:
parent
91f0c24d17
commit
77bdac4d98
14
test/fixtures/entities2.html
vendored
Normal file
14
test/fixtures/entities2.html
vendored
Normal 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>
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user