@@ -26,7 +26,7 @@ describe('Robot Remote Library', function () {
2626 it ( 'client should fail to start if server is not running' , function ( done ) {
2727 // In case of slow DNS this will fail after 2000ms
2828 this . timeout ( 5000 ) ;
29- robot . createClient ( { host : 'localhost' , port : nextPort ( ) } ) . done (
29+ robot . createClient ( { host : 'localhost' , port : nextPort ( ) } ) . then (
3030 function ( val ) {
3131 throw new Error ( 'client succeeded' ) ;
3232 } ,
@@ -38,7 +38,7 @@ describe('Robot Remote Library', function () {
3838 it ( 'client should start and list all keywords when server is running' , function ( done ) {
3939 var serverPort = nextPort ( ) ;
4040 server = new robot . Server ( [ testLibrary ] , { host : 'localhost' , port : serverPort , allowStop : true } , function ( ) {
41- robot . createClient ( { host : 'localhost' , port : serverPort } ) . done (
41+ robot . createClient ( { host : 'localhost' , port : serverPort } ) . then (
4242 function ( val ) {
4343 keywordsEqual ( val , server . keywords ) ;
4444 done ( ) ;
@@ -65,9 +65,9 @@ describe('Robot Remote Library', function () {
6565 { testKeyword : testKeyword }
6666 ] ;
6767 server = new robot . Server ( libraries , { host : 'localhost' , port : serverPort , allowStop : true } , function ( ) {
68- robot . createClient ( { host : 'localhost' , port : serverPort } ) . done (
68+ robot . createClient ( { host : 'localhost' , port : serverPort } ) . then (
6969 function ( clientKeywords ) {
70- clientKeywords . testKeyword ( 'param' ) . done ( function ( val ) {
70+ clientKeywords . testKeyword ( 'param' ) . then ( function ( val ) {
7171 } ) ;
7272 } , done
7373 ) ;
@@ -87,9 +87,9 @@ describe('Robot Remote Library', function () {
8787 }
8888 } ;
8989 server = new robot . Server ( [ lib ] , { host : 'localhost' , port : serverPort , allowStop : true } , function ( ) {
90- robot . createClient ( { host : 'localhost' , port : serverPort } ) . done (
90+ robot . createClient ( { host : 'localhost' , port : serverPort } ) . then (
9191 function ( val ) {
92- val . testKeyword ( 'param' ) . done ( function ( res ) {
92+ val . testKeyword ( 'param' ) . then ( function ( res ) {
9393 assert . deepEqual ( res , {
9494 output : util . format ( '*WARN:%d* message\n*TRACE:%d* message\n*DEBUG:%d* message\n*INFO:%d* message\n*HTML:%d* message\n' , twarn , ttrace , tdebug , tinfo , thtml ) ,
9595 status : 'PASS' ,
@@ -111,9 +111,9 @@ describe('Robot Remote Library', function () {
111111 }
112112 } ;
113113 server = new robot . Server ( [ lib ] , { host : 'localhost' , port : serverPort , allowStop : true } , function ( ) {
114- robot . createClient ( { host : 'localhost' , port : serverPort } ) . done (
114+ robot . createClient ( { host : 'localhost' , port : serverPort } ) . then (
115115 function ( val ) {
116- val . testKeyword ( ) . done ( done , function ( err ) {
116+ val . testKeyword ( ) . then ( done , function ( err ) {
117117 assert . equal ( true , err . continuable ) ;
118118 assert . equal ( true , err . fatal ) ;
119119 done ( ) ;
@@ -135,11 +135,11 @@ describe('Robot Remote Library', function () {
135135 }
136136 } ;
137137 server = new robot . Server ( [ lib1 , lib2 ] , { host : 'localhost' , port : serverPort , allowStop : true } , function ( ) {
138- robot . createClient ( { host : 'localhost' , port : serverPort } ) . done (
138+ robot . createClient ( { host : 'localhost' , port : serverPort } ) . then (
139139 function ( val ) {
140- val . testKeywordFromLib1 ( ) . done ( function ( ) {
140+ val . testKeywordFromLib1 ( ) . then ( function ( ) {
141141 } , done ) ;
142- val . testKeywordFromLib2 ( ) . done ( function ( val ) {
142+ val . testKeywordFromLib2 ( ) . then ( function ( val ) {
143143 done ( ) ;
144144 } , done ) ;
145145 } , done
0 commit comments