aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojo/tests/io/script.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojo/tests/io/script.html
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
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/io/script.html')
-rw-r--r--includes/js/dojo/tests/io/script.html101
1 files changed, 0 insertions, 101 deletions
diff --git a/includes/js/dojo/tests/io/script.html b/includes/js/dojo/tests/io/script.html
deleted file mode 100644
index db24ac9..0000000
--- a/includes/js/dojo/tests/io/script.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- <title>Testing dojo.io.script</title>
- <style type="text/css">
- @import "../../resources/dojo.css";
- </style>
- <script type="text/javascript"
- src="../../dojo.js" djConfig="isDebug: true"></script>
- <script type="text/javascript">
- dojo.require("doh.runner");
- dojo.require("dojo.io.script");
-
- dojo.addOnLoad(function(){
- doh.register("t",
- [
- function ioScriptSimple(t){
- var d = new doh.Deferred();
- var td = dojo.io.script.get({
- url: "scriptSimple.js",
- checkString: "myTasks"
- });
- td.addBoth(function(res){
- if(typeof(myTasks) != "undefined"
- && t.is("Do dishes.", myTasks[1])){
- d.callback(true);
- }else{
- d.errback(false);
- }
- });
- return d;
- },
- function ioScriptJsonp(t){
- var d = new doh.Deferred();
- var td = dojo.io.script.get({
- url: "scriptJsonp.js",
- content: { foo: "bar" },
- callbackParamName: "callback"
- });
- td.addBoth(function(res){
- if(!(res instanceof Error) &&
- t.is("mammal", res.animalType)){
- d.callback(true);
- }else{
- d.errback(false);
- }
- });
- return d;
- },
- function ioScriptJsonpTimeout(t){
- var d = new doh.Deferred();
- var td = dojo.io.script.get({
- url: "../_base/timeout.php",
- callbackParamName: "callback",
- content: {Foo: 'Bar'},
- timeout: 500,
- handleAs: "json",
- preventCache: true,
- handle: function(response, ioArgs){
- if(response instanceof Error && response.dojoType == "timeout"){
- console.debug("FOO OK TEST");
- d.callback(true);
- }else{
- console.debug("FOO FAIL TEST");
- d.errback(false);
- }
- }
- });
- return d;
- }
- ]
- );
- doh.run();
- });
-
-/*
- dojo.addOnLoad(function(){
- td = dojo.io.script.get({
- url: "scriptSimple.js",
- checkString: "myTasks"
- });
- td.addCallback(function(res){
- alert(myTasks);
- alert(myTasks[1]);
- if(typeof(myTasks) != "undefined"
- && "Do dishes." == myTasks[1]){
- alert("yeah");
- }else{
- alert("boo");
- }
- });
- });
-*/
-
- </script>
- </head>
- <body>
-
- </body>
-</html>