Changeset 13127

Show
Ignore:
Timestamp:
03/18/08 04:26:50 (10 months ago)
Author:
bill
Message:

Workaround IE6's overzealous caching. It was caching URL's even though they had parameters (?delay=3000), thus throwing off the timing tests. Fixes #5992.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/tests/layout/ContentPane.html

    r10409 r13127  
    5757                                                name: "clear_content", 
    5858                                                setUp: function(t){ 
    59                                                         pane2 = new dijit.layout.ContentPane({}, dojo.byId("pane2")); 
     59                                                        pane2 = new dijit.layout.ContentPane({ 
     60                                                                preventCache: true 
     61                                                        }, dojo.byId("pane2")); 
    6062                                                        pane2.setContent();// pass undefined on purpose 
    6163                                                }, 
     
    263265                                                        return d; 
    264266 
    265                                                 } 
    266                                         }, 
    267                                         { 
    268                                                 name: "preventCache", 
    269                                                 timeout:1800, 
    270                                                 setUp: function(t){ 
    271                                                         pane2.setContent(); 
    272                                                 }, 
    273                                                 runTest: function(t){ 
    274                                                         var def = pane2.preventCache; 
    275                                                         t.assertFalse(def); 
    276  
    277                                                         pane2.preventCache = true; 
    278  
    279                                                         pane2.setHref("getResponse.php?bounceGetStr=1&message="+encodeURI('initial')); 
    280                                                         var d = new t.Deferred(); 
    281                                                         setTimeout(d.getTestCallback( 
    282                                                                 function(){ 
    283                                                                         var getStr = dojo.byId('bouncedGetStr'); 
    284                                                                         t.assertTrue(getStr.innerHTML.indexOf('preventCache=') > -1); 
    285                                                                 } 
    286                                                         ), 1500); 
    287  
    288                                                         pane2.preventCache = def; 
    289                                                         return d; 
    290                                                 }, 
    291                                                 tearDown: function(t){ 
    292                                                         pane2.preventCache = false; 
    293267                                                } 
    294268                                        }, 
     
    483457 
    484458                                                        st.addChild(new dijit.TestWidget()); 
    485                                                         pane3 = new dijit.layout.ContentPane({href:'getResponse.php?delay=300&message=Loaded!'}, dojo.doc.createElement('div')); 
     459                                                        pane3 = new dijit.layout.ContentPane({ 
     460                                                                href:'getResponse.php?delay=300&message=Loaded!', 
     461                                                                preventCache: true 
     462                                                        }, dojo.doc.createElement('div')); 
    486463                                                        st.addChild(pane3); 
    487464 
     
    554531                                                runTest: function(t){ 
    555532                                                        var href = 'getResponse.php?message=Loaded!' 
    556                                                         var pane4 = new dijit.layout.ContentPane({href:href}, dojo.doc.createElement('div')); 
     533                                                        var pane4 = new dijit.layout.ContentPane({ 
     534                                                                href:href, 
     535                                                                preventCache: true 
     536                                                        }, dojo.doc.createElement('div')); 
    557537 
    558538                                                        dojo.place(pane4.domNode, pane3.domNode, 'after');