git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull over tests from Sizzle. Fixes #3729. Fixes #6428.
[jquery.git]
/
test
/
unit
/
css.js
diff --git
a/test/unit/css.js
b/test/unit/css.js
index
3e65b51
..
555f135
100644
(file)
--- a/
test/unit/css.js
+++ b/
test/unit/css.js
@@
-1,4
+1,4
@@
-module("css");
+module("css", { teardown: moduleTeardown });
test("css(String|Hash)", function() {
expect(41);
test("css(String|Hash)", function() {
expect(41);
@@
-323,22
+323,13
@@
test(":visible selector works properly on children with a hidden parent (bug #45
test("internal ref to elem.runtimeStyle (bug #7608)", function () {
expect(1);
test("internal ref to elem.runtimeStyle (bug #7608)", function () {
expect(1);
-
- var result = true,
- val = 10;
+ var result = true;
- jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' +
- '<div id="test" style="width:0%; background:#000;"> </div></div>').appendTo("#main");
-
try {
try {
- // the bug is located within src/css.js
- jQuery("#bug7608 #test").animate( { width: val }, 1000);
-
+ jQuery("#foo").css( { width: "0%" } ).css("width");
} catch (e) {
result = false;
}
ok( result, "elem.runtimeStyle does not throw exception" );
} catch (e) {
result = false;
}
ok( result, "elem.runtimeStyle does not throw exception" );
-
- jQuery("#bug7608").remove();
});
});