Changeset 13694

Show
Ignore:
Timestamp:
05/12/08 05:14:13 (6 months ago)
Author:
dante
Message:

refs #6664 - i knew the delayed parsing in the nihilo / soria case would break something. the jist is:
when using nihilo / soria, parsing is stalled by 120ms, though it may not have to be. This doesn't affect
tundra at all, as no magic is happening there.
fixes #6732

Location:
dojox/trunk/image/tests
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/image/tests/test_Gallery.html

    r13665 r13694  
    5050                                count: 20 
    5151                        }; 
    52                         dijit.byId('gallery1').setDataStore(flickrRestStore, req); 
     52                        setTimeout(function(){ 
     53                                dijit.byId('gallery1').setDataStore(flickrRestStore, req);                               
     54                        },250); 
    5355/* 
    5456                        dijit.byId('gallery2').setDataStore(imageItemStore,{ count:20 },{ 
  • dojox/trunk/image/tests/test_Gallery_GoogleData.html

    r13665 r13694  
    3838                                count: 32 
    3939                        }; 
    40                         dijit.byId('gallery1').setDataStore(googleImageStore, req); 
     40                        // testCommon defers parsing by a little, so dijit's aren't ready 
     41                        // in addOnLoad for soria/nihilo :( 
     42                        setTimeout(function(){  
     43                                dijit.byId('gallery1').setDataStore(googleImageStore, req);      
     44                        },250); 
     45                         
    4146                }); 
    4247        </script> 
  • dojox/trunk/image/tests/test_Lightbox.html

    r13665 r13694  
    5151 
    5252                function init(){ 
    53                          
    54                                  
    5553                        var flickrRequest = { 
    5654                                query: {}, 
  • dojox/trunk/image/tests/test_SlideShow.html

    r13665 r13694  
    1414         
    1515        <!-- required: dojo.js --> 
    16         <script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug:true, parseOnLoad: true"></script> 
     16        <script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug:true, parseOnLoad: false"></script> 
    1717 
    1818        <!-- do not use! only for testing dynamic themes --> 
     
    3232                dojo.addOnLoad(function(){ 
    3333                        //Initialize the first SlideShow with an ItemFileReadStore 
    34                         dojo.parser.parse(dojo.body()); 
     34                        dojo.parser.parse(); 
    3535                        dijit.byId('slideshow1').setDataStore(imageItemStore, 
    3636                                { query: {}, count:20 }, 
  • dojox/trunk/image/tests/test_ThumbnailPicker.html

    r13665 r13694  
    1414         
    1515        <!-- required: dojo.js --> 
    16         <script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug:true, parseOnLoad: true"></script> 
     16        <script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug:true, parseOnLoad: false"></script> 
    1717 
    1818        <!-- do not use! only for testing dynamic themes --> 
     
    2626                dojo.require("dojox.data.FlickrRestStore");  
    2727                dojo.require("dojo.data.ItemFileReadStore");  
     28                dojo.require("dojo.parser"); 
    2829                 
    2930                /* 
     
    9697                } 
    9798                 
    98                 dojo.addOnLoad(initFlickrGallery); 
    99                 dojo.addOnLoad(initItemStoreGallery); 
    100                 dojo.addOnLoad(doSubscribe); 
     99                dojo.addOnLoad(function(){ 
     100                        dojo.parser.parse(); 
     101                        initFlickrGallery(); 
     102                        initItemStoreGallery(); 
     103                        doSubscribe(); 
     104                }); 
     105 
    101106        </script> 
    102107</head>