diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojo/tests/io/iframe.html | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-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/iframe.html')
-rw-r--r-- | includes/js/dojo/tests/io/iframe.html | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/includes/js/dojo/tests/io/iframe.html b/includes/js/dojo/tests/io/iframe.html deleted file mode 100644 index c37bcb1..0000000 --- a/includes/js/dojo/tests/io/iframe.html +++ /dev/null @@ -1,124 +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.iframe</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.iframe"); - - dojo.addOnLoad(function(){ - doh.register("t", - [ - function ioIframeGetText(t){ - var d = new doh.Deferred(); - var td = dojo.io.iframe.send({ - url: "iframeResponse.text.html", - method: "GET", - timeoutSeconds: 5, - preventCache: true, - handle: function(res, ioArgs){ - if(!(res instanceof Error) && - t.is("iframe succeeded", res)){ - d.callback(true); - }else{ - d.errback(false); - } - } - }); - return d; - }, - - function ioIframeGetJson(t){ - var d = new doh.Deferred(); - var td = dojo.io.iframe.send({ - url: "iframeResponse.json.html", - method: "GET", - timeoutSeconds: 5, - preventCache: true, - handleAs: "json", - handle: function(res, ioArgs){ - if(!(res instanceof Error) && - t.is("blue", res.color)){ - d.callback(true); - }else{ - d.errback(false); - } - } - }); - return d; - }, - - function ioIframeGetJavascript(t){ - var d = new doh.Deferred(); - var td = dojo.io.iframe.send({ - url: "iframeResponse.js.html", - method: "GET", - timeoutSeconds: 5, - preventCache: true, - handleAs: "javascript", - handle: function(res, ioArgs){ - console.log("RES: ", res); - if(!(res instanceof Error) && - t.is(42, window.iframeTestingFunction())){ - d.callback(true); - }else{ - d.errback(false); - } - } - }); - return d; - }, - - function ioIframeGetHtml(t){ - var d = new doh.Deferred(); - var td = dojo.io.iframe.send({ - url: "iframeResponse.html", - method: "GET", - timeoutSeconds: 5, - preventCache: true, - handleAs: "html", - handle: function(res, ioArgs){ - if(!(res instanceof Error) && - t.is("SUCCESSFUL HTML response", res.getElementsByTagName("h1")[0].innerHTML)){ - d.callback(true); - }else{ - d.errback(false); - } - } - }); - return d; - } - ] - ); - doh.run(); - }); - -/* -dojo.addOnLoad(function(){ - var td = dojo.io.iframe.get({ - url: "iframeResponse.text.html", - timeoutSeconds: 5, - preventCache: true, - handle: function(res, ioArgs){ - if(!(res instanceof Error) && - "iframe succeeded" == res){ - console.debug("OK"); - }else{ - console.debug("Error", res); - } - } - }); -}); -*/ - </script> - </head> - <body> - - </body> -</html> |