Fix Qunit tests

This commit is contained in:
Niklas von Hertzen 2014-03-10 19:56:23 +02:00
parent 12d85e3c04
commit 9db1ecfdfc
2 changed files with 2 additions and 3 deletions

View File

@ -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>

View File

@ -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({