-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIMOB-26312]: iOS 12 Expose new NSUserActivity APIs for Siri Intents (…
…#10288) * [TIMOB-26312]: iOS 12 Expose new NSUserActivity APIs for Siri Intents * Update UserActivity.yml * [TIMOB-26312]: iOS 12 Expose new NSUserActivity APIs for Siri Intents * [TIMOB-26312] : Unit test added * [TIMOB-26312] : method names moved to header
- Loading branch information
1 parent
1a9c23c
commit a464d06
Showing
4 changed files
with
325 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Appcelerator Titanium Mobile | ||
* Copyright (c) 2017-Present by Appcelerator, Inc. All Rights Reserved. | ||
* Licensed under the terms of the Apache Public License | ||
* Please see the LICENSE included with this distribution for details. | ||
*/ | ||
/* eslint-env mocha */ | ||
/* global Ti */ | ||
/* eslint no-unused-expressions: "off" */ | ||
'use strict'; | ||
var should = require('./utilities/assertions'); | ||
|
||
describe.ios('Titanium.App.iOS.UserActivity', function () { | ||
|
||
var userActivity; | ||
|
||
before(function () { | ||
userActivity = Ti.App.iOS.createUserActivity({ | ||
activityType: 'com.setdirection.home', | ||
title: 'activity 1', | ||
userInfo: { | ||
msg: 'hello world' | ||
}, | ||
eligibleForSearch: true, | ||
eligibleForPrediction: true, | ||
persistentIdentifier: 'titanium_activity_identifier' | ||
}); | ||
}); | ||
|
||
after(function () { | ||
userActivity = null; | ||
}); | ||
|
||
it('constructor', function () { | ||
should(userActivity).be.an.Object; | ||
should(userActivity).have.readOnlyProperty('apiName').which.is.a.String; | ||
should(userActivity.apiName).be.eql('Ti.App.iOS.UserActivity'); | ||
}); | ||
|
||
it('#deleteSavedUserActivitiesForPersistentIdentifiers()', function () { | ||
should(userActivity.deleteSavedUserActivitiesForPersistentIdentifiers).be.a.Function; | ||
}); | ||
|
||
it('#deleteAllSavedUserActivities()', function () { | ||
should(userActivity.deleteAllSavedUserActivities).be.a.Function; | ||
}); | ||
|
||
}); |