Changeset 7405
- Timestamp:
- 02/22/07 15:07:41 (21 months ago)
- Location:
- trunk/tests
- Files:
-
- 5 modified
-
flash/unit_tests_comm.html (modified) (1 diff)
-
io/test_BrowserIO.html (modified) (1 diff)
-
rpc/test_YahooService.html (modified) (1 diff)
-
widget/acme/__package__.js (modified) (1 diff)
-
widget/test_createWidget.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/flash/unit_tests_comm.html
r3187 r7405 100 100 /** Find out when the page is finished loading */ 101 101 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 103 137 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 testing109 the performance of serializing large data sets110 */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"125 138 }); 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 141 140 // setup an interval that keeps checking to see if our resources are 142 141 // all ready for testing; once they are, we can run the unit tests -
trunk/tests/io/test_BrowserIO.html
r5219 r7405 8 8 djConfig = { 9 9 preventBackButtonFix: false, 10 dojoIframeHistoryUrl: "../../iframe_history.html", //for xdomain 10 11 isDebug: true 11 12 }; -
trunk/tests/rpc/test_YahooService.html
r7351 r7405 3 3 <title>Dojo Testing Script</title> 4 4 <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"}; 6 9 //djConfig.debugAtAllCosts = true; 7 10 </script> -
trunk/tests/widget/acme/__package__.js
r5359 r7405 1 alert("in acme/__package__.js");1 //alert("in acme/__package__.js"); 2 2 dojo.provide("foo.*"); -
trunk/tests/widget/test_createWidget.html
r6218 r7405 10 10 dojo.require("dojo.string.*"); 11 11 dojo.require("dojo.widget.Button"); 12 12 dojo.registerModulePath("acme", "tests/widget/acme"); 13 dojo.require("acme.widget.Button"); 13 14 // 14 15 // Normal tests … … 28 29 // Test auto-load 29 30 // 30 dojo.registerModulePath("acme", "tests/widget/acme");31 /* Commented out to support xdomain loading. 31 32 dojo.registerNamespace("acme", "acme.widget", 32 33 function(name){ 33 34 return "acme."+dojo.string.capitalize(name); 34 35 }); 35 36 */ 36 37 dojo.addOnLoad(function() { 37 38 var w = dojo.widget.createWidget("acme:Button", { caption: "Created with auto-require as acme:Button" });