Commit 0bb4fd0a authored by jeresig's avatar jeresig

No need for the try/finally logic in the css tests, won't even work as expected.

parent 22ff8e9e
...@@ -120,7 +120,6 @@ if(jQuery.browser.msie) { ...@@ -120,7 +120,6 @@ if(jQuery.browser.msie) {
} }
test("css(String, Function)", function() { test("css(String, Function)", function() {
try {
expect(3); expect(3);
var sizes = ["10px", "20px", "30px"]; var sizes = ["10px", "20px", "30px"];
...@@ -147,13 +146,10 @@ test("css(String, Function)", function() { ...@@ -147,13 +146,10 @@ test("css(String, Function)", function() {
index++; index++;
}); });
} finally {
jQuery("#cssFunctionTest").remove(); jQuery("#cssFunctionTest").remove();
}
}); });
test("css(Object) where values are Functions", function() { test("css(Object) where values are Functions", function() {
try {
expect(3); expect(3);
var sizes = ["10px", "20px", "30px"]; var sizes = ["10px", "20px", "30px"];
...@@ -180,9 +176,7 @@ test("css(Object) where values are Functions", function() { ...@@ -180,9 +176,7 @@ test("css(Object) where values are Functions", function() {
index++; index++;
}); });
} finally {
jQuery("#cssFunctionTest").remove(); jQuery("#cssFunctionTest").remove();
}
}); });
test("jQuery.css(elem, 'height') doesn't clear radio buttons (bug #1095)", function () { test("jQuery.css(elem, 'height') doesn't clear radio buttons (bug #1095)", function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment