Changeset 12900

Show
Ignore:
Timestamp:
03/05/08 00:02:04 (9 months ago)
Author:
alex
Message:

ugg. Fingered the wrong test file when checking in [12899]. Refs #4205. !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/tests/_base/html.html

    r12364 r12900  
    296296                                                        dojo.removeAttr(input, "tabindex"); 
    297297                                                        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); 
    298319                                                } 
    299320                                        ]