| /arkcompiler/ets_runtime/test/moduletest/container/ |
| D | expect_output.txt | 54 Test Buffer done 55 Test Deque done 56 Test hashmap done 57 Test hashset done 58 Test LightWeightMap done 59 Test LightWeightSet done 60 Test LinkedList done 61 Test List done 62 Test PlainArray done 63 Test Queue done [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | ArrayIteratorDone.ets | 31 assertEQ(result.done, false, 'First result `done` flag for values() of Array<string>'); 34 assertEQ(result.done, true, 'Exhausted result `done` flag for values() of Array<string>'); 38 …assertEQ(result.done, true, 'Exhausted result `done` flag after push for values() of Array<string>… 47 assertEQ(result.done, false, 'First result `done` flag for entries() of Array<string>'); 51 assertEQ(result.done, true, 'Exhausted result `done` flag for entries() of Array<string>'); 55 …assertEQ(result.done, true, 'Exhausted result `done` flag after push for entries() of Array<string… 80 assertEQ(result.done, false, 'First result `done` flag for values() of Array<Object>'); 84 assertEQ(result.done, false, 'Second result `done` flag for values() of Array<Object>'); 88 assertEQ(result.done, true, 'Exhausted result `done` flag for values() of Array<Object>'); 92 …assertEQ(result.done, true, 'Exhausted result `done` flag after push for values() of Array<Object>… [all …]
|
| D | ArrayKeysIteratorTest.ets | 19 suite.addTest("Test Array.keys() is not restored after done", testArrayKeysIteratorFinal) 31 assertEQ(result.done, false, 'First result `done` flag'); 35 assertEQ(result.done, true, 'Exhausted result `done` flag'); 40 assertEQ(result.done, true, 'Exhausted result `done` flag (after push)');
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/Iterable_Types/ |
| D | for_of_10.ets | 31 private done: boolean; 35 this.done = false; 39 if (this.done) 41 done: this.done, 46 this.done = true; 48 done: this.done, 56 done: false;
|
| D | for_of_11.ets | 31 private done: boolean; 35 this.done = false; 39 if (this.done) 41 done: this.done, 46 this.done = true; 48 done: this.done, 56 done: false,
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/ |
| D | IteratorSetTest.ets | 36 if (!v.done) { 49 if (v.done || v.value != 1) { 54 if (v.done || v.value != 2) { 59 if (!v.done) { 72 if (v.done || v.value != 1) { 77 if (!v.done) { 81 // Calling next() again after iteration is done 82 … 18321, when the iterator has reached the end, and then called next() on it, v.done returns false. 84 if (!v.done) { 95 if (!v.done) { [all …]
|
| D | IteratorMapTest.ets | 36 if (!v.done) { 49 …if (v.done || (v.value as [string, Number])[0] != "key1" || (v.value as [string, Number])[1] != 1)… 54 …if (v.done || (v.value as [string, Number])[0] != "key2" || (v.value as [string, Number])[1] != 2)… 59 if (!v.done) { 72 …if (v.done || (v.value as [string, Number])[0] != "key1" || (v.value as [string, Number])[1] != 1)… 77 if (!v.done) { 81 // Calling next() again after iteration is done 82 …r 18321, when the iterator has reached the end, and then called next() on it, v.done returns false. 84 if (!v.done) { 95 if (!v.done) { [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedset/ |
| D | expect_output.txt | 19 keys next:0, done: false 20 keys next:1, done: false 21 keys next:2, done: false 22 keys next:3, done: false 23 keys next:4, done: false 24 keys next:undefined, done: true 25 values next:0, done: false 26 values next:1, done: false 27 values next:2, done: false 28 values next:3, done: false [all …]
|
| D | sharedset.ts | 43 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 45 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 47 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 49 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 51 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 53 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 57 print("values next:" + nextEntry.value + ", done: " + nextEntry.done); 59 print("values next:" + nextEntry.value + ", done: " + nextEntry.done); 61 print("values next:" + nextEntry.value + ", done: " + nextEntry.done); 63 print("values next:" + nextEntry.value + ", done: " + nextEntry.done); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Iterator.ets | 19 done: boolean 23 this.done = true 27 constructor(done: boolean, value: T | undefined) { 28 this.done = done 33 this.done = false 55 if (v.done) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/url/ |
| D | UrlTestProperties.ets | 20 console.log('-------------------------68 done') 28 console.log('-------------------------69 done') 36 console.log('-------------------------70 done') 44 console.log('-------------------------71 done') 52 console.log('-------------------------72 done') 58 console.log('-------------------------73 done') 64 console.log('-------------------------74 done') 72 console.log('-------------------------75 done') 80 console.log('-------------------------76 done') 88 console.log('-------------------------77 done') [all …]
|
| D | UrlTestParamCombine.ets | 22 console.log('-------------------------102 done') 30 console.log('-------------------------103 done') 37 console.log('-------------------------104 done') 45 console.log('-------------------------105 done') 51 console.log('-------------------------106 done') 59 console.log('-------------------------107 done') 68 console.log('-------------------------108 done') 78 console.log('-------------------------109 done') 84 console.log('-------------------------110 done') 96 console.log('-------------------------111 done') [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/test/ |
| D | pt_base64_test.cpp | 50 auto [numOctets, done] = PtBase64::Decode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() 53 EXPECT_FALSE(done); in HWTEST_F_L0() 74 auto [numOctets, done] = PtBase64::Decode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() 88 auto [numOctets, done] = PtBase64::Decode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() 101 auto [numOctets, done] = PtBase64::Decode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() 118 auto [numOctets, done] = PtBase64::Decode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() 121 EXPECT_TRUE(done); in HWTEST_F_L0() 139 auto [numOctets, done] = PtBase64::Decode(decoded.data(), encoded.data(), encoded.size()); in HWTEST_F_L0() 142 EXPECT_TRUE(done); in HWTEST_F_L0() 163 auto [numOctets, done] = PtBase64::Decode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedmap/ |
| D | expect_output.txt | 19 keys next:0, done: false 20 keys next:1, done: false 21 keys next:2, done: false 22 keys next:3, done: false 23 keys next:4, done: false 24 keys next:undefined, done: true 25 values next:value0, done: false 26 values next:value1, done: false 27 values next:value2, done: false 28 values next:value3, done: false [all …]
|
| D | sharedmap.ts | 43 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 45 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 47 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 49 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 51 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 53 print("keys next:" + nextEntry.value + ", done: " + nextEntry.done); 57 print("values next:" + nextEntry.value + ", done: " + nextEntry.done); 59 print("values next:" + nextEntry.value + ", done: " + nextEntry.done); 61 print("values next:" + nextEntry.value + ", done: " + nextEntry.done); 63 print("values next:" + nextEntry.value + ", done: " + nextEntry.done); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_async_from_sync_iterator.cpp | 43 …torRecord be the Record {[[Iterator]]: asyncIterator, [[NextMethod]]: nextMethod, [[Done]]: false}. in CreateAsyncFromSyncIterator() 53 // 1.Let done be IteratorComplete(result). in AsyncFromSyncIteratorContinuation() 54 bool done = JSIterator::IteratorComplete(thread, result); in AsyncFromSyncIteratorContinuation() local 55 // 2.IfAbruptRejectPromise(done, promiseCapability). in AsyncFromSyncIteratorContinuation() 56 JSHandle<JSTaggedValue> tmpDone(thread, JSTaggedValue(done)); in AsyncFromSyncIteratorContinuation() 75 // 9.Let onFulfilled be ! CreateBuiltinFunction(steps, length, "", « [[Done]] »). in AsyncFromSyncIteratorContinuation() 77 // 10.Set onFulfilled.[[Done]] to done. in AsyncFromSyncIteratorContinuation() 79 onFulfilled->SetDone(thread, JSTaggedValue(done)); in AsyncFromSyncIteratorContinuation() 96 // 2.Return ! CreateIterResultObject(value, F.[[Done]]). in AsyncFromSyncIterUnwarpFunction() 98 bool done = unwarpFunction->GetDone(thread).ToBoolean(); in AsyncFromSyncIterUnwarpFunction() local [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/getiterator/ |
| D | getiterator.js | 31 return { done: false, value: entry.value[0] }; 33 return { done: true, value: undefined }; 63 return { done: false, value: [value.value, value.value] }; 65 return { done: true, value: undefined }; 95 return { done: false, value: value }; 97 return { done: true, value: undefined }; 132 return { done: false, value: entry.value[0] }; 134 return { done: true, value: undefined }; 167 return { done: false, value: [value.value, value.value] }; 169 return { done: true, value: undefined }; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | generators.ets | 69 console.log(gen.next()); // {value: 1, done: false} 70 console.log(gen.next()); // {value: 2, done: false} 71 console.log(gen.next()); // {value: 3, done: false} 72 console.log(gen.next()); // {value: 4, done: false} 73 console.log(gen.next()); // {value: 5, done: false} 74 console.log(gen.next()); // {value: undefined, done: true}
|
| /arkcompiler/ets_runtime/test/aottest/asyncgenerator/ |
| D | asyncgenerator.js | 26 return {value: 1, done: false}; 42 print(result.done); 55 return {value: 1, done: false}; 68 print(result.done); 83 done: false, 89 done: false,
|
| /arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/ |
| D | mutex.cpp | 156 bool done = false; in WriteLock() local 157 while (!done) { in WriteLock() 163 done = state_.compare_exchange_weak(curState, WRITE_LOCKED, std::memory_order_acquire); in WriteLock() 210 bool done = false; in TryReadLock() local 213 while (!done) { in TryReadLock() 217 done = state_.compare_exchange_weak(curState, newState, std::memory_order_acquire); in TryReadLock() 232 bool done = false; in TryWriteLock() local 235 while (!done) { in TryWriteLock() 240 done = state_.compare_exchange_weak(curState, WRITE_LOCKED, std::memory_order_acquire); in TryWriteLock() 263 bool done = false; in WriteUnlock() local [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/HashMap/ |
| D | HashMapForEachKeysValuesIteratorTest.ets | 92 arktest.assertTrue(iteratorSetValues.next().done, 93 "The hashMap keys iterator.done should true for no more keys"); 99 arktest.assertTrue(iteratorSetValues.next().done, 100 "The hashMap keys iterator.done should true when the hashMap is empty"); 110 arktest.assertTrue(iteratorSetValues.next().done, 111 "The hashMap values iterator.done should true for no more values"); 117 arktest.assertTrue(iteratorSetValues.next().done, 118 "The hashMap values iterator.done should true when the hashMap is empty"); 142 arktest.assertTrue(iteratorSetValues.next().done, 143 "The hashMap iterator.done should true when the hashMap is empty");
|
| D | HashMapClearKeysValuesReplaceTest.ets | 86 arktest.assertTrue(keys.next().done, "Empty HashMap: keys iterator .next().done is true"); 98 while (!temp.done) { 108 arktest.assertTrue(result.next().done, "Empty HashMap: keys iterator .next().done is true"); 116 while (!temp.done) { 127 … arktest.assertTrue(keys.next().done, "values().next().done should be true for an empty HashMap"); 139 while (!temp.done) { 149 …arktest.assertTrue(result.next().done, "values().next().done should be true for an empty HashMap"); 157 while (!temp.done) {
|
| /arkcompiler/toolchain/tooling/dynamic/test/testcases/ |
| D | js_heapprofiler_dump_test.h | 51 int32_t done; in JsHeapProfilerDumpTest() 52 ret = params->GetInt("done", &done); in JsHeapProfilerDumpTest() 53 if (ret != Result::SUCCESS || done != 0) { in JsHeapProfilerDumpTest() 74 int32_t done; in JsHeapProfilerDumpTest() 75 ret = params->GetInt("done", &done); in JsHeapProfilerDumpTest()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/05.iterable_types/ |
| D | it.params.yaml | 33 done: this.index >= this.base.data.length, 62 done: this.index >= this.base.data.length, 91 done: this.index >= this.base.data.length, 120 done: this.index >= this.data.len(), 176 done: this.index >= this.data.len(), 226 done: this.index >= this.data.length, 255 done: this.index >= this.data.length, 289 done: this.index >= this.base.data.length, 312 done: this.index >= this.data.length, 351 return { done: false, value: v } [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/generator/ |
| D | generator.js | 44 print(a.value, a.done) 46 print(b.value, b.done) 48 print(c.value, c.done) 50 print(d.value, d.done)
|