Home
last modified time | relevance | path

Searched refs:function (Results 1 – 25 of 6024) sorted by relevance

12345678910>>...241

/test/xts/acts/arkui/ace_ets_state_test/entry/src/main/ets/test/
DStateTwoJsunit.test.ets21 export default function stateTwoJsunit() {
22 describe('ActsAceStateTwoTest', function () {
24 beforeAll(async function (done) {
44 beforeEach(async function (done) {
49 afterEach(async function (done) {
74 it('GetCertificate',0,async function(done){
79 it('Get',0,async function(done){
86 it('Has',0,async function(done){
91 it('Set',0,async function(done){
96 it('SetFalse',0,async function(done){
[all …]
DStateJsunit.test.ets20 export default function stateJsunit() {
21 describe('ActsAceStateTest', function () {
22 beforeEach(async function (done) {
28 afterEach(async function (done) {
50 … *tc.desic Injects the JavaScript object into window and invoke the function in window
52 it('OnLoadIntercept',0,async function(done){
57 it('Clear',0,async function(done){
62 it('Keys',0,async function(done){
68 it('Size',0,async function(done){
73 it('LocalStorageSize',0,async function(done){
[all …]
/test/xts/acts/resourceschedule/resourceschedule_standard/ffrt/entry/src/main/ets/test/
DFfrt.test.ets17 export default function ffrtTest() {
18 describe('ActsFfrtTest', function () {
19 // Defines a test suite. Two parameters are supported: test suite name and test suite function.
20 beforeAll(function () {
22 // This API supports only one parameter: preset action function.
24 beforeEach(function () {
27 // This API supports only one parameter: preset action function.
29 afterEach(function () {
32 // This API supports only one parameter: clear action function.
34 afterAll(function () {
[all …]
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/ets/test/
DJsvmTest.ets22 export default function JsvmJsunit() {
28 async function sleep(time) {
41 afterEach(async function () {
51 it('JsvmTest001', 0, async function (done) {
62 it('JsvmTest002', 0, async function (done) {
74 it('JsvmTest003', 0, async function (done) {
86 it('JsvmTest004', 0, async function (done) {
98 it('JsvmTest005', 0, async function (done) {
110 it('JsvmTest006', 0, async function (done) {
122 it('JsvmTest007', 0, async function (done) {
[all …]
/test/xts/acts/commonlibrary/ets_utils/taskpool_lib_standard/entry/src/ohosTest/ets/test/
DtestFunclist.ets23 export async function currentFun(): Promise<void> {
33 export function transferArrayBuffer(arg1: Array<number>): string {
42 export function transferAtomics(arg1: Int32Array) {
49 export function setCloneListTest(arrayBuffer: Array<number>): Int32Array {
59 export function setTransferListTest(arg1: Uint8Array, arg2: Uint8Array): number {
64 export async function testString(args: string): Promise<void> {
74 export function testTime(): number {
79 export async function testNumber(value1: number, value2: number): Promise<number> {
88 export function testTaskPool(): void {
111 export function promiseCase() {
[all …]
/test/xts/acts/communication/netstack_websocket/entry/src/main/ets/test/
DWebSocketTest.ets19 export default function webSocketTest() {
20 describe('ActsAbilityTest', function () {
21 // Defines a test suite. Two parameters are supported: test suite name and test suite function.
22 beforeAll(function () {
24 // This API supports only one parameter: preset action function.
26 beforeEach(function () {
29 // This API supports only one parameter: preset action function.
31 afterEach(function () {
34 // This API supports only one parameter: clear action function.
36 afterAll(function () {
[all …]
/test/xts/acts/distributeddatamgr/kvStoretest/kvStoreStagetest/src/main/ets/test/
DDeviceKvStoreCallbackStage.test.ets41 function sleep(ms) {
45 function putBatchString(len, prefix) {
59 export default function deviceKvStoreCallbackStageTest(){
60 describe('deviceKvStoreCallbackStageTest', function () {
71 beforeAll(async function (done) {
86 kvStore.on('dataChange', 0, function (data) {
98 await getDeviceId.then(function(deviceId) {
112 afterAll(async function (done) {
119 beforeEach(async function (done) {
121 await kvManager.getKVStore(TEST_STORE_ID, options, function (err, store) {
[all …]
DSingleKvStoreCallbackStage.test.ets40 function sleep(ms) {
44 function putBatchString(len, prefix) {
59 export default function singleKvStoreCallbackStageTest(){
60 describe('singleKvStoreCallbackStageTest', function () {
71 beforeAll(async function (done) {
83 afterAll(async function (done) {
90 beforeEach(async function (done) {
92 await kvManager.getKVStore(TEST_STORE_ID, options, function (err, store) {
99 afterEach(async function (done) {
101 …await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore, async function (err, data) {
[all …]
DKvManagerCallbackStage.test.ets27 function sleep(ms) {
31 export default function kvManagerCallbackStageTest(){
32 describe('kvManagerCallbackStageTest', function () {
42 beforeAll(async function (done) {
54 afterAll(async function (done) {
60 beforeEach(async function (done) {
65 afterEach(async function (done) {
67 await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore, async function () {
69 await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, function () {
82 it('testEtsKVManagerGetKVStore101', 0, async function (done) {
[all …]
/test/xts/acts/distributeddatamgr/preferencesEtstest/entry/src/ohosTest/ets/test/
DPreferencesCallBackJsunit.test.ets32 export default function preferencesCallBackTest(){
33 describe('preferencesCallBackTest', function () {
34 beforeAll(async function () {
39 afterAll(async function () {
43 beforeEach(async function () {
48 afterEach(async function () {
62 it('testPreferencesClear0012', 0, async function (done) {
65 await mPreferences.clear(async function (err, ret) {
80 it('testPreferencesHasKey0032', 0, async function (done) {
82 await mPreferences.has(KEY_TEST_STRING_ELEMENT, function (err, ret) {
[all …]
DPreferencesV9CallBackJsunit.test.ets24 export default function preferencesV9CallbackTest(){
25 describe('preferencesV9CallbackTest', async function () {
26 beforeAll(async function () {
32 afterAll(async function () {
37 beforeEach(async function () {
40 mPreference.put(KEY_TEST_STRING_ELEMENT, 'abc', function (err, ret) {
48 afterEach(async function () {
61 it('SUB_DDM_JSPREFERENCEV9_CALLBACK_0100', 0, function (done) {
64 mPreference.clear(function (err, val) {
69 mPreference.put(KEY_TEST_STRING_ELEMENT, 'abc', function (err, ret) {
[all …]
/test/xts/acts/arkui/ace_ets_web_dev_webviewController/entry/src/main/ets/test/
DwebViewControllerJsunit.test.ets20 export default function webViewControllerJsunit() {
21 describe('ActsAceWebDevWebViewControllerTest', function () {
22 beforeEach(async function (done) {
27 afterEach(async function (done) {
52 it('testGetWebId',0,async function(done){
63 it('testFetchCookieSync',0,async function(done){
73 it('testFetchCookieCallback',0,async function(done){
83 it('testFetchCookiePromise',0,async function(done){
93 it('testConfigCookieSync',0,async function(done){
103 it('testConfigCookieCallback',0,async function(done){
[all …]
/test/xts/acts/distributeddatamgr/distributedKVStoretest/distributedKVStoreetstest/src/main/ets/test/
DSingleKvStoreKVCallbackEtsTest.ets41 function sleep(ms) {
45 function putBatchString(len, prefix) {
59 export default function SingleKvStoreCallbackTest(){
60 describe('SingleKvStoreCallbackTest', function () {
71 beforeAll(async function (done) {
82 afterAll(async function (done) {
89 beforeEach(async function (done) {
91 await kvManager.getKVStore(TEST_STORE_ID, options, function (err, store) {
98 afterEach(async function (done) {
101 …await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore, async function (err, data) {
[all …]
DDeviceKvStoreCallbackEtsTest.ets41 function sleep(ms) {
45 function putBatchString(len, prefix) {
59 export default function deviceKvStoreCallbackTest(){
60 describe('deviceKvStoreCallbackTest', function () {
71 beforeAll(async function (done) {
86 kvStore.on('dataChange', 0, function (data) {
98 await getDeviceId.then(function(deviceId) {
112 afterAll(async function (done) {
119 beforeEach(async function (done) {
121 await kvManager.getKVStore(TEST_STORE_ID, options, function (err, store) {
[all …]
/test/xts/acts/multimedia/image/image_js_standard/imageColorSpaceTransfer/entry/src/main/ets/test/
DImageColorSpaceTransferTest.ets23 export default function ImageColorSpaceTransferTest() {
24 describe('ImageColorSpaceTransferTest', function () {
27 async function getFd(fileName) {
37 function Logger(caseName) {
40 log: function (msg) {
45 … async function createPixelmapTestPromise(done, testNum, colorSpace, gamma, checkColorSpace) {
78 async function createPixelmapTestCb(done, testNum, colorSpace, gamma, checkColorSpace) {
113 … async function applyColorSpacePromiseTest(done, testNum, checkColorSpace, colorSpace, gamma) {
155 async function applyColorSpaceCbTest(done, testNum, checkColorSpace, colorSpace, gamma) {
198 async function applyColorSpaceCbErrTest(done, testNum, csmModify) {
[all …]
/test/xts/acts/barrierfree/accessibilitysendaccessibilityevent/entry/src/main/ets/test/
DAccessibilitySendAccessibilityEvent.test.ets24 export default function abilityTest() {
25 describe('AccessibilitySendAccessibilityEvent', function () {
27 beforeEach(async function (done) {
32 afterEach(async function (done) {
41 * function. The result of sendAccessibilityEvent() should be undefined.
46 …it('SUB_BASIC_BARRIERFREE_API_AccessibilitySendAccessibilityEvent_0100', 0, async function (done) {
69 … The parameter input eventType is accessibilityFocus, test the sendAccessibilityEvent() function
70 … * The function sendAccessibilityEvent in promise mode and result should be undefined.
75 …it('SUB_BASIC_BARRIERFREE_API_AccessibilitySendAccessibilityEvent_0200', 0, async function (done) {
98 * function. The result of sendAccessibilityEvent() should be undefined.
[all …]
/test/xts/acts/multimedia/image/image_js_standard/imageSourceNDK/entry/src/main/ets/test/
DImageSourceNDKTest.ets26 export default function ImageSourceNDKTest() {
27 describe('ImageSourceNDKTest', function () {
32 beforeAll(function () {
36 beforeEach(function () {
40 afterEach(function () {
44 afterAll(function () {
47 function logger(caseName) {
50 log: function (msg) {
56 async function getPath(fileName: string) {
69 async function getFd(fileName) {
[all …]
/test/xts/acts/ability/ability_runtime/actscalltest/systemcallentrytest/entry/src/main/ets/test/
DAbility.test.ets73 export default function abilityTest() {
74 describe('ActsAbilityTest', function () {
90 * @tc.name: The parameter "method" of the Caller.callWithResult function is an empty string.
91 …* @tc.desc: Verify that the parameter "method" of the Caller.callWithResult function is an empty s…
93 it('ACTS_CommonComponent_Call_0100', 0, async function (done) {
114 * @tc.name: The parameter "method" of the Caller.callWithResult function is an empty string.
115 …* @tc.desc: Verify that the parameter "method" of the Caller.callWithResult function is an empty s…
117 it('ACTS_CommonComponent_Call_0300', 0, async function (done) {
121 function unSubscribeCallBack() {
127 function releaseCallback(data) {
[all …]
/test/xts/acts/commonlibrary/ets_utils/concurrency_base/entry/src/main/ets/test/
DSendablesTest.ets27 export function testSendableSimpleDate(): Promise<string> {
33 async function testSendableSimpleDateImpl(): Promise<string> {
45 export function testSendableSimpleString(): Promise<string> {
51 async function testSendableSimpleStringImpl(): Promise<string> {
63 export function testSendableSimpleNumber(): Promise<string> {
69 async function testSendableSimpleNumberImpl(): Promise<string> {
81 export function testSendableSimpleBoolean(): Promise<string> {
87 async function testSendableSimpleBooleanImpl(): Promise<string> {
99 export function testSendableSimpleSharedArrayBuffer(): Promise<string> {
105 async function testSendableSimpleSharedArrayBufferImpl(): Promise<string> {
[all …]
DSendablesTestWithAlloc.ets27 export function testSendableSimpleDate(): Promise<string> {
33 async function testSendableSimpleDateImpl(): Promise<string> {
45 export function testSendableSimpleString(): Promise<string> {
51 async function testSendableSimpleStringImpl(): Promise<string> {
63 export function testSendableSimpleNumber(): Promise<string> {
69 async function testSendableSimpleNumberImpl(): Promise<string> {
81 export function testSendableSimpleBoolean(): Promise<string> {
87 async function testSendableSimpleBooleanImpl(): Promise<string> {
99 export function testSendableSimpleSharedArrayBuffer(): Promise<string> {
105 async function testSendableSimpleSharedArrayBufferImpl(): Promise<string> {
[all …]
/test/xts/acts/commonlibrary/ets_utils/sendable_lib_collections/entry/src/ohosTest/ets/util/
DComcurrentFunction.ets20 export function arrayPop(array: collections.Array<number>): Promise<number | undefined> {
28 export function arrayPush(array: collections.Array<number>): Promise<number> {
36 export function arrayJoin(array: collections.Array<number>): Promise<string> {
45 export function arrayShift(array: collections.Array<number>): Promise<number | undefined> {
53 export function arrayUnshift(array: collections.Array<number>): Promise<number> {
61 export function arraySlice(array: collections.Array<number>): Promise<number> {
69 export function arrayIndexOf(array: collections.Array<number>): Promise<number | undefined> {
77 export function arrayAt(array: collections.Array<number>): Promise<number | undefined> {
85 export function arrayFill(array: collections.Array<number>): Promise<number> {
93 export function mapClear(map: collections.Map<number, string>): Promise<string> {
[all …]
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreEtstest/entry/src/ohosTest/ets/test/
DRelationalStoreBackupRestoreWithFAContextJsunit.test.ets33 async function CreatRdbStore(context, STORE_CONFIG) {
67 async function BackupTest(backupName) {
85 async function ReStoreTest(restoreName) {
103 export default function relationalStoreBackupRestorePromiseTest() {
104 describe('relationalStoreBackupRestorePromiseTest', function () {
105 beforeAll(async function () {
110 beforeEach(async function () {
115 afterEach(async function () {
126 afterAll(async function () {
135 * @tc.desc RelationalStore backup and restore function test
[all …]
/test/xts/acts/storage/storagedownloadcloudsyncjstest/entry/src/main/ets/test/
Ddownloadcloud.test.ets23 export default function cloudFileDownloadTest(){
29 describe('cloud_file_download_test',async function(){
30 async function getNetId(){
44 beforeAll(async function(){
59 beforeEach(async function ()
63 afterAll(function (){
67 function errHandle(err,tag){
92 * @tc.desc function of API, Test State RUNNING
98 it('test_Download_State_001', 3,function (done){
121 * @tc.desc function of API, Test State FAILED
[all …]
/test/xts/tools/sample/AppSampleD/entry/src/ohosTest/ets/test/
DAbility.test.ets18 export default function abilityTest() {
19 describe('ActsAbilityTest', function () {
20 // Defines a test suite. Two parameters are supported: test suite name and test suite function.
21 beforeAll(function () {
23 // This API supports only one parameter: preset action function.
25 beforeEach(function () {
28 // This API supports only one parameter: preset action function.
30 afterEach(function () {
33 // This API supports only one parameter: clear action function.
35 afterAll(function () {
[all …]
/test/xts/acts/multimedia/camera/camera_picker_test/src/main/ets/test/
DCameraPickerPc.test.ets18 export default function abilityTest() {
19 describe('ActsAbilityTest', function () {
20 // Defines a test suite. Two parameters are supported: test suite name and test suite function.
21 beforeAll(function () {
23 // This API supports only one parameter: preset action function.
25 beforeEach(function () {
28 // This API supports only one parameter: preset action function.
30 afterEach(function () {
33 // This API supports only one parameter: clear action function.
35 afterAll(function () {
[all …]

12345678910>>...241