Ticket #6113: 6113_dojo.patch
| File 6113_dojo.patch, 1.4 kB (added by doughays, 10 months ago) |
|---|
-
tests/_base/html.html
297 297 doh.is(null, dojo.attr(input, "tabindex")); 298 298 }, 299 299 function attr_map(t){ 300 var input = document.createElement("input");301 var ctr= 0;302 dojo.attr( input, {300 t.ctr = 0; 301 t.input = document.createElement("input"); 302 dojo.attr(t.input, { 303 303 "tabindex": 1, 304 304 "type": "text", 305 305 "onfocus": function(e){ 306 // console.debug( ctr);307 ctr++;306 // console.debug(t.ctr); 307 t.ctr++; 308 308 } 309 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); 310 dojo.body().appendChild(t.input); 311 doh.is(1, dojo.attr(t.input, "tabindex")); 312 doh.is("text", dojo.attr(t.input, "type")); 313 doh.is(0, t.ctr); 314 t.input.focus(); 315 }, 316 function attr_map_onfocus(t){ 317 doh.is(1, t.ctr); 318 t.input.blur(); 319 t.input.focus(); 320 }, 321 function attr_map_refocus(t){ 322 doh.is(2, t.ctr); 319 323 } 320 324 ] 321 325 );