[Pkg-javascript-commits] [dojo] 12/23: fixes #17968, remove failing jsonp rpc test due to yahoo search API service no longer being available

David Prévot taffit at moszumanska.debian.org
Sun Sep 14 16:23:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.9.4
in repository dojo.

commit 756a2b61f7eb9305a294e90ca574e7bc5464fd24
Author: dylans <dylan at dojotoolkit.org>
Date:   Fri May 9 16:29:24 2014 -0700

    fixes #17968, remove failing jsonp rpc test due to yahoo search API service no longer being available
    
    (cherry picked from commit c68907df322eb146da4404f5058c6624994685f8)
---
 tests/rpc.js | 34 ----------------------------------
 1 file changed, 34 deletions(-)

diff --git a/tests/rpc.js b/tests/rpc.js
index 10610cc..5a678ff 100644
--- a/tests/rpc.js
+++ b/tests/rpc.js
@@ -101,40 +101,6 @@ define(["doh/main", "require", "../rpc/RpcService", "../rpc/JsonService", "../rp
 					return new Error("Error loading and/or parsing an smd file");
 				}
 			}
-		},
-
-		{
-			name: "JsonP_test",
-			timeout: 10000,
-			setUp: function(){
-				this.svc = new JsonpService(require.toUrl("dojo/tests/resources/yahoo_smd_v1.smd"), {appid: "foo"});
-			},
-			runTest: function(){
-				var d = new doh.Deferred();
-
-				if (window.location.protocol=="file:"){
-					var err= new Error("This Test requires a webserver and will fail intentionally if loaded from file://");
-					d.errback(err);
-					return d;
-				}
-
-				var td = this.svc.webSearch({query:"dojotoolkit"});
-
-				td.addCallbacks(function(result){
-					return true;
-					if (result["ResultSet"]["Result"][0]["DisplayUrl"]=="dojotoolkit.org/"){
-						return true;
-					}else{
-						return new Error("JsonRpc_SMD_Loading_Test failed, resultant content didn't match");
-					}
-				}, function(result){
-					return new Error(result);
-				});
-
-				td.addBoth(d, "callback");
-
-				return d;
-			}
 		}
 	]);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list