Changeset 7405

Show
Ignore:
Timestamp:
02/22/07 15:07:41 (21 months ago)
Author:
jburke
Message:

(merge from 0.4 branch) References #2366. Change some tests to work with xdomain.

Location:
trunk/tests
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/flash/unit_tests_comm.html

    r3187 r7405  
    100100                /** Find out when the page is finished loading */ 
    101101                var pageReady = false; 
    102                 var pageLoaded = function(){ 
     102 
     103                dojo.addOnLoad(function(){ 
     104                        /**  
     105                                        Load our test data files used to test saving XML and for testing 
     106                                        the performance of serializing large data sets  
     107                        */ 
     108                        testXML = null; 
     109                        testBook = null; 
     110         
     111                        dojo.io.bind({ 
     112                                        url: "resources/test.xml", 
     113                                        load: function(type, data, evt){  
     114                                                dojo.debug("Test XML data loaded"); 
     115                                                testXML = data; 
     116                                        }, 
     117                                        error: function(type, error){  
     118                                                Test.assertFailed("Unable to load test.xml"); 
     119                                                Test.finished(); 
     120                                        }, 
     121                                        mimetype: "text/plain" 
     122                        }); 
     123         
     124                        dojo.io.bind({ 
     125                                        url: "resources/testBook.txt", 
     126                                        load: function(type, data, evt){  
     127                                                dojo.debug("Test large data file loaded"); 
     128                                                testBook = data; 
     129                                        }, 
     130                                        error: function(type, error){  
     131                                                Test.assertFailed("Unable to load testBook.txt"); 
     132                                                Test.finished(); 
     133                                        }, 
     134                                        mimetype: "text/plain" 
     135                        }); 
     136 
    103137                        pageReady = true; 
    104                 } 
    105                 dojo.event.connect(dojo, "loaded", "pageLoaded"); 
    106                  
    107                 /**  
    108                                 Load our test data files used to test saving XML and for testing 
    109                                 the performance of serializing large data sets  
    110                 */ 
    111                 var testXML = null; 
    112                 var testBook = null; 
    113  
    114                 dojo.io.bind({ 
    115                                 url: "resources/test.xml", 
    116                                 load: function(type, data, evt){  
    117                                         dojo.debug("Test XML data loaded"); 
    118                                         testXML = data; 
    119                                 }, 
    120                                 error: function(type, error){  
    121                                         Test.assertFailed("Unable to load test.xml"); 
    122                                         Test.finished(); 
    123                                 }, 
    124                                 mimetype: "text/plain" 
    125138                }); 
    126  
    127                 dojo.io.bind({ 
    128                                 url: "resources/testBook.txt", 
    129                                 load: function(type, data, evt){  
    130                                         dojo.debug("Test large data file loaded"); 
    131                                         testBook = data; 
    132                                 }, 
    133                                 error: function(type, error){  
    134                                         Test.assertFailed("Unable to load testBook.txt"); 
    135                                         Test.finished(); 
    136                                 }, 
    137                                 mimetype: "text/plain" 
    138                 }); 
    139  
    140  
     139                 
    141140                // setup an interval that keeps checking to see if our resources are 
    142141                // all ready for testing; once they are, we can run the unit tests 
  • trunk/tests/io/test_BrowserIO.html

    r5219 r7405  
    88                        djConfig = {  
    99                                preventBackButtonFix: false, 
     10                                dojoIframeHistoryUrl: "../../iframe_history.html", //for xdomain 
    1011                                isDebug: true 
    1112                        }; 
  • trunk/tests/rpc/test_YahooService.html

    r7351 r7405  
    33        <title>Dojo Testing Script</title> 
    44        <script type="text/javascript"> 
    5                         var djConfig = {isDebug: true,debugContainerId: "dojoDebug"}; 
     5                        var djConfig = { 
     6                                isDebug: true, 
     7                                yahooServiceSmdUrl: "../../src/rpc/yahoo.smd", //for xdomain 
     8                                debugContainerId: "dojoDebug"}; 
    69                        //djConfig.debugAtAllCosts = true; 
    710        </script> 
  • trunk/tests/widget/acme/__package__.js

    r5359 r7405  
    1 alert("in acme/__package__.js"); 
     1//alert("in acme/__package__.js"); 
    22dojo.provide("foo.*"); 
  • trunk/tests/widget/test_createWidget.html

    r6218 r7405  
    1010                        dojo.require("dojo.string.*"); 
    1111                        dojo.require("dojo.widget.Button"); 
    12  
     12                        dojo.registerModulePath("acme", "tests/widget/acme"); 
     13                        dojo.require("acme.widget.Button"); 
    1314                        // 
    1415                        // Normal tests 
     
    2829                        // Test auto-load 
    2930                        //       
    30                         dojo.registerModulePath("acme", "tests/widget/acme"); 
     31                        /* Commented out to support xdomain loading. 
    3132                        dojo.registerNamespace("acme", "acme.widget",  
    3233                                function(name){  
    3334                                                return "acme."+dojo.string.capitalize(name); 
    3435                        }); 
    35                          
     36                        */ 
    3637                        dojo.addOnLoad(function() { 
    3738                                var w = dojo.widget.createWidget("acme:Button", { caption: "Created with auto-require as acme:Button" });