From 13aed672b4a58054758502ee74c42abdbf9a639c Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Mon, 10 Mar 2014 19:56:23 +0200 Subject: [PATCH] Fix Qunit tests --- tests/qunit/index.html | 1 - tests/qunit/unit/css.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/qunit/index.html b/tests/qunit/index.html index 44bc39a..a6333ac 100644 --- a/tests/qunit/index.html +++ b/tests/qunit/index.html @@ -24,7 +24,6 @@ - diff --git a/tests/qunit/unit/css.js b/tests/qunit/unit/css.js index fb88e28..1ac2c38 100644 --- a/tests/qunit/unit/css.js +++ b/tests/qunit/unit/css.js @@ -49,8 +49,8 @@ $(function() { var container = new NodeContainer(node, null); var item = container.css(prop), - backgroundPosition = container.parseBackgroundPosition(getBounds(container), img), - split = (window.getComputedStyle) ? $(node).css(prop).split(" ") : [$(node).css(prop+"X"),$(node).css(prop+"Y")]; + backgroundPosition = container.parseBackgroundPosition(getBounds(node), img), + split = (window.getComputedStyle) ? $(node).css(prop).split(" ") : [$(node).css(prop+"X"), $(node).css(prop+"Y")]; var testEl = $('
').css({ 'position': 'absolute',