summaryrefslogtreecommitdiffstatshomepage
path: root/includes/js/dojo/tests/_base/_loader/scope
diff options
context:
space:
mode:
authorGravatar mensonge2008-11-14 15:39:19 +0000
committerGravatar mensonge2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojo/tests/_base/_loader/scope
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
scuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.zip
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojo/tests/_base/_loader/scope')
-rw-r--r--includes/js/dojo/tests/_base/_loader/scope/scope04.html80
-rw-r--r--includes/js/dojo/tests/_base/_loader/scope/scopeContained.html71
-rw-r--r--includes/js/dojo/tests/_base/_loader/scope/scopeContainedXd.html84
-rw-r--r--includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html64
-rw-r--r--includes/js/dojo/tests/_base/_loader/scope/scopeSingle.html62
-rw-r--r--includes/js/dojo/tests/_base/_loader/scope/scopeSingleDaac.html63
6 files changed, 0 insertions, 424 deletions
diff --git a/includes/js/dojo/tests/_base/_loader/scope/scope04.html b/includes/js/dojo/tests/_base/_loader/scope/scope04.html
deleted file mode 100644
index 1866e4a..0000000
--- a/includes/js/dojo/tests/_base/_loader/scope/scope04.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>Multiversion Dojo: 0.4.3 and 1.0</title>
-
- <link rel="stylesheet" type="text/css" href="../../../../resources/dojo.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/css/dijitTests.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css" />
-
- <script type="text/javascript">
- //djConfig for 0.4.3 setup.
- djConfig = {
- isDebug: true
- };
- </script>
- <script type="text/javascript" src="http://o.aolcdn.com/dojo/0.4.3/dojo.js"></script>
-
- <script type="text/javascript">
- //Need scope map defined in a script block. It will not work as part of the
- //djConfig attribute on the script that loads Dojo.
- //Also, just adding properties instead of redefining djConfig, since that
- //will wipe out djConfig values set up by the 0.4.3 dojo.
- djConfig.parseOnLoad = true;
- djConfig.baseUrl = "../../../../";
- djConfig.scopeMap = [
- ["dojo", "dojo10"],
- ["dijit", "dijit10"],
- ["dojox", "dojox10"]
- ];
- </script>
- <script type="text/javascript" src="../../../../dojo.js"></script>
- <script type="text/javascript">
- dojo.require("dojo.widget.DropdownDatePicker");
- dojo10.require("dijit._Calendar");
- dojo10.require("dojo.date.locale");
- dojo10.require("dojo.parser"); // scan page for widgets
-
- dojo.addOnLoad(function(){
- dojo.byId("output043").innerHTML = dojo.version.toString();
- });
- dojo10.addOnLoad(function(){
- dojo.byId("output10").innerHTML = dojo10.version.toString();
- });
-
- function myHandler(id,newValue){
- console.debug("onChange for id = " + id + ", value: " + newValue);
- }
-
- function foobar(){
- dojo.byId("typeOut").innerHTML = (typeof dojo.addClass);
- }
- setTimeout(foobar, 2000);
-
- </script>
- </head>
- <body>
- <h1>Multiversion Dojo: 0.4.3 and 1.0</h1>
-
- <p><b>NOTE: This test only works with a built version of Dojo</b></p>
-
- <p>This page loads Dojo 0.4.3 and Dojo 1.0.</p>
-
- <p>Dojo 0.4.3 version: <span id="output043"></span></p>
-
- <p>Dojo 1.0 version: <span id="output10"></span></p>
-
- <p><b>dojo.addClass should be undefined:</b> <span id="typeOut"></span></p>
-
- <p>
- <input dojoType="dropdowndatepicker" value="2006-10-31" containerToggle="wipe" containerToggleDuration="300" >
- </p>
-
- <p class="tundra">
- <input id="calendar1" dojo10Type="dijit._Calendar" onChange="myHandler(this.id,arguments[0])">
- </p>
-
- </body>
-</html>
-
diff --git a/includes/js/dojo/tests/_base/_loader/scope/scopeContained.html b/includes/js/dojo/tests/_base/_loader/scope/scopeContained.html
deleted file mode 100644
index 0acea5b..0000000
--- a/includes/js/dojo/tests/_base/_loader/scope/scopeContained.html
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>Multiversion Dojo: 0.4.3 and 1.0</title>
-
- <link rel="stylesheet" type="text/css" href="../../../../resources/dojo.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/css/dijitTests.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css" />
-
- <script type="text/javascript">
- //djConfig for 0.4.3 setup.
- djConfig = {
- isDebug: true
- };
- </script>
- <script type="text/javascript" src="http://o.aolcdn.com/dojo/0.4.3/dojo.js"></script>
-
- <script type="text/javascript">
- //Scope map for this page is "burned in" via a build command (see HTML notes below).
- //Also, just adding properties instead of redefining djConfig, since that
- //will wipe out djConfig values set up by the 0.4.3 dojo.
- djConfig.parseOnLoad = true;
- djConfig.baseUrl = "../../../../";
- </script>
- <script type="text/javascript" src="../../../../dojo.js"></script>
- <script type="text/javascript">
- dojo.require("dojo.widget.DropdownDatePicker");
-
- //Notice that dijit._Calendar is required, not jidit._Calendar.
- //Same for the dojo resources (not jodo resources).
- jodo.require("dijit._Calendar");
- jodo.require("dojo.date.locale");
- jodo.require("dojo.parser"); // scan page for widgets
-
- dojo.addOnLoad(function(){
- dojo.byId("output043").innerHTML = dojo.version.toString();
- });
- jodo.addOnLoad(function(){
- dojo.byId("output10").innerHTML = jodo.version.toString();
- });
-
- function myHandler(id,newValue){
- console.debug("onChange for id = " + id + ", value: " + newValue);
- }
- </script>
- </head>
- <body>
- <h1>Multiversion Dojo: 0.4.3 and 1.0</h1>
-
- <p><b>NOTE: This test only works with a built version of Dojo, and it must be built with the scopeMap parameter (the backslashes below are required):</b></p>
-
- <p style="color: blue; background-color: yellow">build.sh profile=standard action=release scopeMap=[[\"dojo\",\"jodo\"],[\"dijit\",\"jidit\"],[\"dojox\",\"jodox\"]]</p>
-
- <p>This page loads Dojo 0.4.3 and Dojo 1.0 (under the jodo scope)</p>
-
- <p>Dojo 0.4.3 version: <span id="output043"></span></p>
-
- <p>Jodo version: <span id="output10"></span></p>
-
- <p>
- <input dojoType="dropdowndatepicker" value="2006-10-31" containerToggle="wipe" containerToggleDuration="300" >
- </p>
-
- <p class="tundra">
- <input id="calendar1" jodoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])">
- </p>
-
- </body>
-</html>
-
diff --git a/includes/js/dojo/tests/_base/_loader/scope/scopeContainedXd.html b/includes/js/dojo/tests/_base/_loader/scope/scopeContainedXd.html
deleted file mode 100644
index c4c2eda..0000000
--- a/includes/js/dojo/tests/_base/_loader/scope/scopeContainedXd.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>Multiversion Dojo: 0.4.3 and 1.0</title>
-
- <link rel="stylesheet" type="text/css" href="../../../../resources/dojo.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/css/dijitTests.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css" />
-
- <script type="text/javascript">
- //djConfig for 0.4.3 setup.
- djConfig = {
- isDebug: true
- };
- </script>
- <script type="text/javascript" src="http://o.aolcdn.com/dojo/0.4.3/dojo.js"></script>
-
- <script type="text/javascript">
- //Scope map for this page is "burned in" via a build command (see HTML notes below).
- //Also, just adding properties instead of redefining djConfig, since that
- //will wipe out djConfig values set up by the 0.4.3 dojo.
- djConfig.parseOnLoad = true;
- djConfig.baseUrl = "../../../../";
- djConfig.useXDomain = true; //Technically this was set already in the 0.4.3 xd dojo.js file.
- </script>
- <script type="text/javascript" src="../../../../dojo.xd.js"></script>
- <script type="text/javascript">
- dojo.require("dojo.widget.DropdownDatePicker");
-
- //Get base xd path
- var xdPath = location.href;
- var lastIndex = location.href.lastIndexOf("/");
- xdPath = xdPath.substring(0, lastIndex + 1);
-
- //Set up xdomain locations for dojo/dijit/dojox.
- jodo.registerModulePath("dojo", xdPath + "../../../../../dojo");
- jodo.registerModulePath("dijit", xdPath + "../../../../../dijit");
- jodo.registerModulePath("dojox", xdPath + "../../../../../dojox");
-
- //Notice that dijit._Calendar is required, not jidit._Calendar.
- //Same for the dojo resources (not jodo resources).
- jodo.require("dijit._Calendar");
- jodo.require("dojo.date.locale");
- jodo.require("dojo.parser"); // scan page for widgets
-
- dojo.addOnLoad(function(){
- dojo.byId("output043").innerHTML = dojo.version.toString();
- });
- jodo.addOnLoad(function(){
- dojo.byId("output10").innerHTML = jodo.version.toString();
- });
-
- function myHandler(id,newValue){
- console.debug("onChange for id = " + id + ", value: " + newValue);
- }
- </script>
- </head>
- <body>
- <h1>XDomain Multiversion Dojo: 0.4.3 and 1.0</h1>
-
- <p><b>NOTE: This test only works with a built, xdomain version of Dojo, and it must be built with the scopeMap parameter (the backslashes below are required):</b></p>
-
- <p style="color: blue; background-color: yellow">build.sh profile=standard action=release scopeMap=[[\"dojo\",\"jodo\"],[\"dijit\",\"jidit\"],[\"dojox\",\"jodox\"]] xdDojoScopeName=jodo loader=xdomain</p>
-
- <p><b>Only load this page from an http:// URL</b>. Otherwise, the xd loading will not happen.</p>
-
- <p>This page xdomain loads Dojo 0.4.3 and Dojo 1.0 (under the jodo scope)</p>
-
- <p>Dojo 0.4.3 version: <span id="output043"></span></p>
-
- <p>Jodo version: <span id="output10"></span></p>
-
- <p>
- <input dojoType="dropdowndatepicker" value="2006-10-31" containerToggle="wipe" containerToggleDuration="300" >
- </p>
-
- <p class="tundra">
- <input id="calendar1" jodoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])">
- </p>
-
- </body>
-</html>
-
diff --git a/includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html b/includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html
deleted file mode 100644
index 0ef5daa..0000000
--- a/includes/js/dojo/tests/_base/_loader/scope/scopeDjConfig.html
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>Multiversion Dojo: 0.4.3 and 1.0 (scoped djConfig)</title>
-
- <link rel="stylesheet" type="text/css" href="../../../../resources/dojo.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/css/dijitTests.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css" />
-
- <script type="text/javascript">
- //djConfig for 0.4.3 setup.
- djConfig = {
- isDebug: true
- };
- </script>
- <script type="text/javascript" src="http://o.aolcdn.com/dojo/0.4.3/dojo.js"></script>
-
- <script type="text/javascript" src="../../../../dojo.js"></script>
- <script type="text/javascript">
- dojo.require("dojo.widget.DropdownDatePicker");
-
- //Notice that dijit._Calendar is required, not jidit._Calendar.
- //Same for the dojo resources (not jodo resources).
- jodo.require("dijit._Calendar");
- jodo.require("dojo.date.locale");
- jodo.require("dojo.parser"); // scan page for widgets
-
- dojo.addOnLoad(function(){
- dojo.byId("output043").innerHTML = djConfig.baseUrl;
- });
- jodo.addOnLoad(function(){
- dojo.byId("output10").innerHTML = jodo.baseUrl;
- });
-
- function myHandler(id,newValue){
- console.debug("onChange for id = " + id + ", value: " + newValue);
- }
- </script>
- </head>
- <body>
- <h1>Multiversion Dojo: 0.4.3 and 1.0 (scoped djConfig)</h1>
-
- <p><b>NOTE: This test only works with a built version of Dojo, and it must be built with the scopeDjConfig parameter (the backslashes below are required):</b></p>
-
- <p style="color: blue; background-color: yellow">build.sh profile=standard action=release scopeDjConfig=\{parseOnLoad:true,baseUrl:\"../../../../\",foo:\"bar\",scopeMap:[[\"dojo\",\"jodo\"],[\"dijit\",\"jidit\"],[\"dojox\",\"jodox\"]]\}</p>
-
- <p>This page loads Dojo 0.4.3 and Dojo 1.0 (under the jodo scope)</p>
-
- <p>djConfig.baseUrl should <b>not</b> exist: <span id="output043"></span></p>
-
- <p>jodo.baseUrl should be "../../../../": <span id="output10"></span></p>
-
- <p>
- <input dojoType="dropdowndatepicker" value="2006-10-31" containerToggle="wipe" containerToggleDuration="300" >
- </p>
-
- <p class="tundra">
- <input id="calendar1" jodoType="dijit._Calendar" onChange="myHandler(this.id,arguments[0])">
- </p>
-
- </body>
-</html>
-
diff --git a/includes/js/dojo/tests/_base/_loader/scope/scopeSingle.html b/includes/js/dojo/tests/_base/_loader/scope/scopeSingle.html
deleted file mode 100644
index 759fcbe..0000000
--- a/includes/js/dojo/tests/_base/_loader/scope/scopeSingle.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>Using scope names inside dojo.require/dojoType</title>
-
- <link rel="stylesheet" type="text/css" href="../../../../resources/dojo.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/css/dijitTests.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css" />
-
- <script type="text/javascript">
- //djConfig for 0.4.3 setup.
- djConfig = {
- isDebug: true,
- parseOnLoad: true,
- baseUrl: "../../../../",
- scopeMap: [
- ["dojo", "jodo"],
- ["dijit", "jidit"],
- ["dojox", "jodox"]
- ]
- };
- </script>
-
- <script type="text/javascript" src="../../../../dojo.js"></script>
- <script type="text/javascript">
-
- //Notice that dijit._Calendar is required, not jidit._Calendar.
- //Same for the dojo resources (not jodo resources).
- jodo.require("dijit._Calendar");
- jodo.require("dojo.date.locale");
- jodo.require("dojo.parser"); // scan page for widgets
-
- jodo.addOnLoad(function(){
- jodo.byId("output10").innerHTML = jodo.version.toString();
- });
-
- function myHandler(id,newValue){
- console.debug("onChange for id = " + id + ", value: " + newValue);
- }
- function foobar(){
- jodo.byId("typeOut").innerHTML = "typeof dojo: " + (typeof dojo) + "<br>typeof dijit: " + (typeof dijit) + "<br>typeof dojox: " + (typeof dojox);
- }
- setTimeout(foobar, 2000);
- </script>
- </head>
- <body>
- <h1>Using scope names inside dojo.require/dojoType</h1>
-
- <p><b>NOTE: This test only works with a built version of Dojo.</b></p>
-
- <p>Jodo version: <span id="output10"></span></p>
-
- <p><b>typeof dojo, dijit and dojox should be undefined</b>: <br><span id="typeOut"></span></p>
-
- <p class="tundra">
- <input id="calendar1" jodoType="jidit._Calendar" onChange="myHandler(this.id,arguments[0])">
- </p>
-
- </body>
-</html>
-
diff --git a/includes/js/dojo/tests/_base/_loader/scope/scopeSingleDaac.html b/includes/js/dojo/tests/_base/_loader/scope/scopeSingleDaac.html
deleted file mode 100644
index 8f9d7d8..0000000
--- a/includes/js/dojo/tests/_base/_loader/scope/scopeSingleDaac.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>Using scope names inside dojo.require/dojoType</title>
-
- <link rel="stylesheet" type="text/css" href="../../../../resources/dojo.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/css/dijitTests.css" />
- <link rel="stylesheet" type="text/css" href="../../../../../dijit/themes/tundra/tundra.css" />
-
- <script type="text/javascript">
- //djConfig for 0.4.3 setup.
- djConfig = {
- isDebug: true,
- debugAtAllCosts: true,
- parseOnLoad: true,
- baseUrl: "../../../../",
- scopeMap: [
- ["dojo", "jodo"],
- ["dijit", "jidit"],
- ["dojox", "jodox"]
- ]
- };
- </script>
-
- <script type="text/javascript" src="../../../../dojo.js"></script>
- <script type="text/javascript">
-
- //Notice that dijit._Calendar is required, not jidit._Calendar.
- //Same for the dojo resources (not jodo resources).
- jodo.require("dijit._Calendar");
- jodo.require("dojo.date.locale");
- jodo.require("dojo.parser"); // scan page for widgets
-
- jodo.addOnLoad(function(){
- jodo.byId("output10").innerHTML = jodo.version.toString();
- });
-
- function myHandler(id,newValue){
- console.debug("onChange for id = " + id + ", value: " + newValue);
- }
- function foobar(){
- jodo.byId("typeOut").innerHTML = "typeof dojo: " + (typeof dojo) + "<br>typeof dijit: " + (typeof dijit) + "<br>typeof dojox: " + (typeof dojox);
- }
- setTimeout(foobar, 2000);
- </script>
- </head>
- <body>
- <h1>Using scope names inside dojo.require/dojoType</h1>
-
- <p><b>NOTE: This test only works with a built version of Dojo.</b></p>
-
- <p>Jodo version: <span id="output10"></span></p>
-
- <p><b>typeof dojo, dijit and dojox should be object, since debugAtAllCosts is ON</b>: <br><span id="typeOut"></span></p>
-
- <p class="tundra">
- <input id="calendar1" jodoType="jidit._Calendar" onChange="myHandler(this.id,arguments[0])">
- </p>
-
- </body>
-</html>
-