[Pkg-javascript-commits] [dojo] 09/19: 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:08 UTC 2014


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

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

commit d27b5dd17178bf791778a81800c8106bd5b8e5a8
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)
    
    Conflicts:
    	tests/rpc.js
---
 tests/rpc.js | 34 ----------------------------------
 1 file changed, 34 deletions(-)

diff --git a/tests/rpc.js b/tests/rpc.js
index e291b3e..b02c7b6 100644
--- a/tests/rpc.js
+++ b/tests/rpc.js
@@ -100,40 +100,6 @@ define(["../main", "doh/main", "require", "../rpc/RpcService", "../rpc/JsonServi
 					return new Error("Error loading and/or parsing an smd file");
 				}
 			}
-		},
-
-		{
-			name: "JsonP_test",
-			timeout: 10000,
-			setUp: function(){
-				this.svc = new dojo.rpc.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