ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );\r
});\r
\r
-test("attr(String, Function|String)", function() {\r
+test("attr(String, Function)", function() {\r
+ expect(1);\r
ok( $('#text1').attr('value', function() { return this.id })[0].value == "text1", "Set value from id" );\r
- ok( $('#text2').attr('value', "${this.id}")[0].value == "text2", "Set value from id" );\r
- reset();\r
- $('#text1, #text2').attr({value: "${this.id + 'foobar'}"});\r
- ok( $('#text1')[0].value == "text1foobar", "Set value from id" );\r
- ok( $('#text2')[0].value == "text2foobar", "Set value from id" );\r
});\r
\r
test("attr(Hash)", function() {\r
test("text(String, Boolean)", function() {\r
ok( $("#foo").text("<div><b>Hello</b> cruel world!</div>")[0].innerHTML == "<div><b>Hello</b> cruel world!</div>", "Check escaped text" );\r
ok( $("#foo").text("<div><b>Hello</b> cruel world!</div>", true)[0].innerHTML == "Hello cruel world!", "Check stripped text" );\r
-});
\ No newline at end of file
+});\r
prop: function(elem, key, value){
// Handle executable functions
return value.constructor == Function &&
- value.call( elem, val ) || value;
+ value.call( elem ) || value;
},
className: {