define(["require","intern!object","intern/chai!assert","../../rpc/JsonService","../../rpc/JsonpService","../../_base/array","dojo/_base/array"],function(n,e,t,r,o,s,c){t.notStrictEqual(s,c),e({name:"dojo/rpc",JsonService:{echo:function(){return new r({serviceURL:"/__services/rpc/json",methods:[{name:"myecho",parameters:[{name:"somestring",type:"STRING"}]}]}).myecho("RPC TEST").then(function(e){t.strictEqual(e,"<P>RPC TEST</P>")})},"empty param":function(){return new r({serviceURL:"/__services/rpc/json",methods:[{name:"contentB"}]}).contentB().then(function(e){t.strictEqual(e,"<P>Content B</P>")})},"SMD loading":function(){var e=new r(n.toUrl("./rpc/support/testClass.smd"));t.strictEqual(e.smd.objectName,"testClass")}},JsonpService:function(){return new o({methods:[{name:"jsonp",serviceURL:"/__services/rpc/jsonp",parameters:[{name:"query",type:"STRING"}]}]}).jsonp({query:"dojotoolkit"}).then(function(e){t.strictEqual(e.url,"dojotoolkit.org/")})}})});