@@ -78,7 +78,6 @@ const iOSSimulator = {
78
78
} ,
79
79
applicationManager : {
80
80
getInstalledApplications : ( ) => Promise . resolve ( [ "com.telerik.unitTest1" , "com.telerik.unitTest2" ] ) ,
81
- canStartApplication : ( ) => true ,
82
81
startApplication : ( packageName : string , framework : string ) => Promise . resolve ( ) ,
83
82
tryStartApplication : ( packageName : string , framework : string ) => Promise . resolve ( ) ,
84
83
reinstallApplication : ( packageName : string , packageFile : string ) => Promise . resolve ( ) ,
@@ -218,7 +217,6 @@ describe("devicesService", () => {
218
217
} ,
219
218
applicationManager : {
220
219
getInstalledApplications : ( ) => Promise . resolve ( [ "com.telerik.unitTest1" , "com.telerik.unitTest2" ] ) ,
221
- canStartApplication : ( ) => true ,
222
220
startApplication : ( appData : Mobile . IApplicationData ) => Promise . resolve ( ) ,
223
221
tryStartApplication : ( appData : Mobile . IApplicationData ) => Promise . resolve ( ) ,
224
222
reinstallApplication : ( packageName : string , packageFile : string ) => Promise . resolve ( ) ,
@@ -238,7 +236,6 @@ describe("devicesService", () => {
238
236
} ,
239
237
applicationManager : {
240
238
getInstalledApplications : ( ) => Promise . resolve ( [ "com.telerik.unitTest1" , "com.telerik.unitTest2" , "com.telerik.unitTest3" ] ) ,
241
- canStartApplication : ( ) => true ,
242
239
startApplication : ( appData : Mobile . IApplicationData ) => Promise . resolve ( ) ,
243
240
tryStartApplication : ( appData : Mobile . IApplicationData ) => Promise . resolve ( ) ,
244
241
reinstallApplication : ( packageName : string , packageFile : string ) => Promise . resolve ( ) ,
@@ -935,18 +932,6 @@ describe("devicesService", () => {
935
932
} ) ;
936
933
} ) ;
937
934
938
- it ( "does not call startApplication when canStartApplication returns false" , async ( ) => {
939
- iOSDevice . applicationManager . canStartApplication = ( ) => false ;
940
- iOSDevice . applicationManager . startApplication = ( ) : Promise < void > => {
941
- throw new Error ( "Start application must not be called for iOSDevice when canStartApplication returns false." ) ;
942
- } ;
943
-
944
- const results = devicesService . deployOnDevices ( [ androidDevice . deviceInfo . identifier , iOSDevice . deviceInfo . identifier ] , "path" , "packageName" , "cordova" ) ;
945
- assert . isTrue ( results . length > 0 ) ;
946
- const deployOnDevicesResults = await Promise . all ( results ) ;
947
- assert . deepEqual ( deployOnDevicesResults , [ undefined , undefined ] ) ;
948
- } ) ;
949
-
950
935
it ( "throws error when invalid identifier is passed" , async ( ) => {
951
936
const results = devicesService . deployOnDevices ( [ "invalidDeviceId" , iOSDevice . deviceInfo . identifier ] , "path" , "packageName" , "cordova" ) ;
952
937
const expectedErrorMessage = getErrorMessage ( testInjector , "NotFoundDeviceByIdentifierErrorMessageWithIdentifier" , "invalidDeviceId" ) ;
0 commit comments