Lines Matching refs:done
96 function writeTest(name, type, params, code, done) { argument
101 done();
105 function writeParamsTest(params, code, done) { argument
106 writeTest(TEST_NAME, TEST_TYPE, params, code, done);
109 function writeNameTest(name, code, done) { argument
110 writeTest(name, TEST_TYPE, TEST_PARAMS, code, done);
113 function writeV9Test(eventInfo, expectErr, done, hasCatch) { argument
122 done();
128 done();
133 function writeParamsV9Test(params, expectErr, done, hasCatch) { argument
140 writeV9Test(eventInfo, expectErr, done, hasCatch);
143 function writeDomainV9Test(domain, expectErr, done, hasCatch) { argument
150 writeV9Test(eventInfo, expectErr, done, hasCatch);
153 function writeNameV9Test(name, expectErr, done, hasCatch) { argument
160 writeV9Test(eventInfo, expectErr, done, hasCatch);
163 function writeTypeV9Test(type, expectErr, done, hasCatch) { argument
170 writeV9Test(eventInfo, expectErr, done, hasCatch);
180 it('HiAppEventJsTest001_1', 0, async function (done) { argument
192 writeParamsTest(params, 0, done);
202 it('HiAppEventJsTest001_2', 0, async function (done) { argument
214 writeParamsV9Test(params, null, done);
224 it('HiAppEventJsTest002_1', 0, async function (done) { argument
230 done()
233 done()
244 it('HiAppEventJsTest002_2', 0, async function (done) { argument
254 done();
257 done();
268 it('HiAppEventJsTest003_1', 0, async function (done) { argument
278 writeParamsTest(params, 1, done);
288 it('HiAppEventJsTest003_2', 0, async function (done) { argument
299 writeParamsV9Test(params, expectErr, done);
304 writeParamsV9Test(params, expectErr, done);
308 writeParamsV9Test(params, expectErr, done);
312 writeParamsV9Test(params, null, done);
322 it('HiAppEventJsTest004_1', 0, async function (done) { argument
329 writeParamsTest(params, 3, done);
339 it('HiAppEventJsTest004_2', 0, async function (done) { argument
347 writeParamsV9Test(params, expectErr, done, true);
357 it('HiAppEventJsTest005_1', 0, async function (done) { argument
368 writeParamsTest(params, 4, done);
378 it('HiAppEventJsTest005_2', 0, async function (done) { argument
390 writeParamsV9Test(params, expectErr, done);
400 it('HiAppEventJsTest006_1', 0, async function (done) { argument
406 writeParamsTest(params, 5, done);
416 it('HiAppEventJsTest006_2', 0, async function (done) { argument
423 writeParamsV9Test(params, expectErr, done);
433 it('HiAppEventJsTest007_1', 0, async function (done) { argument
442 writeParamsTest(params, 6, done);
452 it('HiAppEventJsTest007_2', 0, async function (done) { argument
462 writeParamsV9Test(params, expectErr, done);
472 it('HiAppEventJsTest008_1', 0, async function (done) { argument
481 writeParamsTest(params, 7, done);
491 it('HiAppEventJsTest008_2', 0, async function (done) { argument
501 writeParamsV9Test(params, expectErr, done, true);
511 it('HiAppEventJsTest009_1', 0, async function (done) { argument
513 writeNameTest("verify_test_1.**1", -1, done);
523 it('HiAppEventJsTest009_2', 0, async function (done) { argument
526 writeNameV9Test("", expectErr, done);
536 it('HiAppEventJsTest009_3', 0, async function (done) { argument
539 writeNameV9Test("VVtt_", expectErr, done);
549 it('HiAppEventJsTest009_4', 0, async function (done) { argument
553 writeNameV9Test("a".repeat(MAX_LENGTH_OF_EVENT_NAME + 1), expectErr, done);
555 writeNameV9Test("a".repeat(MAX_LENGTH_OF_EVENT_NAME - 1) + "_", expectErr, done);
557 writeNameV9Test("a".repeat(MAX_LENGTH_OF_EVENT_NAME), null, done);
567 it('HiAppEventJsTest010_1', 0, async function (done) { argument
569 writeTest(null, TEST_TYPE, TEST_PARAMS, -2, done);
579 it('HiAppEventJsTest010_1', 0, async function (done) { argument
581 writeTest(TEST_NAME, "invalid", TEST_PARAMS, -2, done);
591 it('HiAppEventJsTest010_3', 0, async function (done) { argument
596 writeV9Test(null, expectErr, done, true);
606 it('HiAppEventJsTest010_4', 0, async function (done) { argument
611 writeDomainV9Test(true, expectErr, done, true);
621 it('HiAppEventJsTest010_5', 0, async function (done) { argument
626 writeNameV9Test(null, expectErr, done, true);
636 it('HiAppEventJsTest010_6', 0, async function (done) { argument
641 writeTypeV9Test(-1, expectErr, done, true);
651 it('HiAppEventJsTest010_7', 0, async function (done) { argument
656 writeParamsV9Test(null, expectErr, done, true);
666 it('HiAppEventJsTest011_1', 0, async function (done) { argument
670 done();
674 done();
686 it('HiAppEventJsTest011_2', 0, async function (done) { argument
697 done();
707 it('HiAppEventJsTest011_3', 0, async function (done) { argument
722 done();
732 it('HiAppEventJsTest011_4', 0, async function (done) { argument
747 done();
757 it('HiAppEventJsTest011_5', 0, async function (done) { argument
772 done();
782 it('HiAppEventJsTest011_6', 0, async function (done) { argument
797 done();
807 it('HiAppEventJsTest012', 0, async function (done) { argument
813 writeDomainV9Test("domain***", expectErr, done);
814 writeDomainV9Test("123domain", expectErr, done);
815 writeDomainV9Test("_domain", expectErr, done);
816 writeDomainV9Test("domain_", expectErr, done);
817 writeDomainV9Test("a".repeat(MAX_LEN_OF_DOMAIN - 1) + "_", expectErr, done);
818 writeDomainV9Test("", expectErr, done);
819 writeDomainV9Test("a".repeat(MAX_LEN_OF_DOMAIN + 1), expectErr, done);
822 writeDomainV9Test("a", null, done);
823 writeDomainV9Test("a1", null, done);
824 writeDomainV9Test("domainTest", null, done);
825 writeDomainV9Test("a".repeat(MAX_LEN_OF_DOMAIN), null, done);
835 it('HiAppEventJsTest013', 0, async function (done) { argument
844 writeParamsV9Test(params, expectErr, done);
854 it('HiAppEventJsTest014', 0, async function (done) { argument
864 writeParamsV9Test(params, expectErr, done);
874 it('HiAppEventJsPresetTest001_1', 0, async function (done) { argument
878 }, 0, done);
888 it('HiAppEventJsPresetTest001_2', 0, async function (done) { argument
892 }, 0, done);
902 it('HiAppEventJsPresetTest001_3', 0, async function (done) { argument
913 writeV9Test(eventInfo, null, done);
923 it('HiAppEventConfigureTest001_1', 0, async function (done) { argument
930 writeNameTest("config_test", -99, done);
940 it('HiAppEventConfigureTest001_2', 0, async function (done) { argument
947 writeNameV9Test("config_test", expectErr, done);
1050 it('HiAppEventClearTest001', 0, async function (done) { argument
1058 writeNameV9Test("clear_test", null, done);
1423 it('HiAppEventWatcherTest007', 0, async function (done) { argument
1454 done();
1465 it('HiAppEventWatcherTest008', 0, async function (done) { argument
1500 done();
1511 it('HiAppEventWatcherTest009', 0, async function (done) { argument
1542 done();
1553 it('HiAppEventWatcherTest010', 0, async function (done) { argument
1573 done();
1628 it('HiAppEventWatcherTest012', 0, async function (done) { argument
1661 done();
1672 it('HiAppEventWatcherTest013', 0, async function (done) { argument
1709 done();
1730 it('HiAppEventWatcherTest014', 0, async function (done) { argument
1758 done();
1769 it('HiAppEventWatcherTest015', 0, async function (done) { argument
1786 done();
1797 it('HiAppEventWatcherTest016', 0, async function (done) { argument
1845 done();