Changeset 12900
- Timestamp:
- 03/05/08 00:02:04 (9 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/tests/_base/html.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/tests/_base/html.html
r12364 r12900 296 296 dojo.removeAttr(input, "tabindex"); 297 297 doh.is(null, dojo.attr(input, "tabindex")); 298 }, 299 function attr_map(t){ 300 var input = document.createElement("input"); 301 var ctr= 0; 302 dojo.attr(input, { 303 "tabindex": 1, 304 "type": "text", 305 "onfocus": function(e){ 306 // console.debug(ctr); 307 ctr++; 308 } 309 }); 310 dojo.body().appendChild(input); 311 doh.is(1, dojo.attr(input, "tabindex")); 312 doh.is("text", dojo.attr(input, "type")); 313 doh.is(0, ctr); 314 input.focus(); 315 doh.is(1, ctr); 316 input.blur(); 317 input.focus(); 318 doh.is(2, ctr); 298 319 } 299 320 ]