Ticket #6113: 6113_dojo.patch

File 6113_dojo.patch, 1.4 kB (added by doughays, 10 months ago)

fix to dojo/tests/_base/html.html testcase

  • tests/_base/html.html

     
    297297                                                        doh.is(null, dojo.attr(input, "tabindex")); 
    298298                                                }, 
    299299                                                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, { 
    303303                                                                "tabindex": 1, 
    304304                                                                "type": "text", 
    305305                                                                "onfocus": function(e){ 
    306                                                                         // console.debug(ctr); 
    307                                                                         ctr++; 
     306                                                                        // console.debug(t.ctr); 
     307                                                                        t.ctr++; 
    308308                                                                } 
    309309                                                        }); 
    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); 
    319323                                                } 
    320324                                        ] 
    321325                                );