mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix Qunit tests
This commit is contained in:
parent
12d85e3c04
commit
9db1ecfdfc
@ -24,7 +24,6 @@
|
|||||||
<script type="text/javascript" src="../../src/nodeparser.js"></script>
|
<script type="text/javascript" src="../../src/nodeparser.js"></script>
|
||||||
<script type="text/javascript" src="../../src/font.js"></script>
|
<script type="text/javascript" src="../../src/font.js"></script>
|
||||||
<script type="text/javascript" src="../../src/fontmetrics.js"></script>
|
<script type="text/javascript" src="../../src/fontmetrics.js"></script>
|
||||||
<script type="text/javascript" src="../../src/core.js"></script>
|
|
||||||
<script type="text/javascript" src="../../src/renderer.js"></script>
|
<script type="text/javascript" src="../../src/renderer.js"></script>
|
||||||
<script type="text/javascript" src="../../src/promise.js"></script>
|
<script type="text/javascript" src="../../src/promise.js"></script>
|
||||||
<script type="text/javascript" src="../../src/renderers/canvas.js"></script>
|
<script type="text/javascript" src="../../src/renderers/canvas.js"></script>
|
||||||
|
@ -49,7 +49,7 @@ $(function() {
|
|||||||
|
|
||||||
var container = new NodeContainer(node, null);
|
var container = new NodeContainer(node, null);
|
||||||
var item = container.css(prop),
|
var item = container.css(prop),
|
||||||
backgroundPosition = container.parseBackgroundPosition(getBounds(container), img),
|
backgroundPosition = container.parseBackgroundPosition(getBounds(node), img),
|
||||||
split = (window.getComputedStyle) ? $(node).css(prop).split(" ") : [$(node).css(prop+"X"), $(node).css(prop+"Y")];
|
split = (window.getComputedStyle) ? $(node).css(prop).split(" ") : [$(node).css(prop+"X"), $(node).css(prop+"Y")];
|
||||||
|
|
||||||
var testEl = $('<div />').css({
|
var testEl = $('<div />').css({
|
||||||
|
Loading…
Reference in New Issue
Block a user