- expect(1);
-
- var result = true,
- val = 10;
-
- jQuery('<div id="bug7608" style="width:200px;border:solid 1px red;">' +
- '<div id="test" style="width:0%; background:#000;"> </div></div>').appendTo("body");
-
- 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" );
-
- jQuery("#bug7608").remove();
+ expect(1);
+ var result = true;
+
+ try {
+ jQuery("#foo").css( { width: "0%" } ).css("width");
+ } catch (e) {
+ result = false;
+ }
+
+ ok( result, "elem.runtimeStyle does not throw exception" );