[Pkg-javascript-commits] [dojo] 13/27: 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:05 UTC 2014


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

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

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

diff --git a/tests/rpc.js b/tests/rpc.js
index ef6e477..6060d0f 100644
--- a/tests/rpc.js
+++ b/tests/rpc.js
@@ -100,40 +100,6 @@ define(["../main", "doh", "require", "../rpc/RpcService", "../rpc/JsonService",
 					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