diff --git a/test/unit/css.js b/test/unit/css.js
index edc340ce..3e65b513 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -322,23 +322,23 @@ test(":visible selector works properly on children with a hidden parent (bug #45
});
test("internal ref to elem.runtimeStyle (bug #7608)", function () {
- expect(1);
-
- var result = true,
- val = 10;
+ expect(1);
- jQuery('
').appendTo("body");
-
- try {
- // the bug is located within src/css.js
- jQuery("#bug7608 #test").animate( { width: val }, 1000);
-
- } catch (e) {
- result = false;
- }
+ var result = true,
+ val = 10;
+
+ jQuery('').appendTo("#main");
+
+ try {
+ // the bug is located within src/css.js
+ jQuery("#bug7608 #test").animate( { width: val }, 1000);
+
+ } catch (e) {
+ result = false;
+ }
+
+ ok( result, "elem.runtimeStyle does not throw exception" );
- ok( result, "elem.runtimeStyle does not throw exception" );
-
- jQuery("#bug7608").remove();
+ jQuery("#bug7608").remove();
});