mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed text decoration tests, Color will now store just a single argb info in 32bit unsigned int internally and covert to a/r/g/b or hex when necessary
This commit is contained in:
committed by
Panayot Cankov
parent
ccde2a4083
commit
b2cf286948
@@ -52,16 +52,17 @@ export function test_setTimeout_callbackCalledAfterSpecifiedTime() {
|
||||
|
||||
TKUnit.waitUntilReady(() => completed, 1);
|
||||
timer.clearTimeout(id);
|
||||
TKUnit.assert(completed, "Callback should be called after specified time!");
|
||||
TKUnit.assert(completed, "Callback should be called after the specified time!");
|
||||
};
|
||||
|
||||
export function test_setTimeout_callbackNotCalled() {
|
||||
let completed = false;
|
||||
const id = timer.setTimeout(() => completed = true, 50);
|
||||
|
||||
TKUnit.wait(0.007);
|
||||
const id = timer.setTimeout(() => completed = true, 10);
|
||||
timer.clearTimeout(id);
|
||||
TKUnit.assert(!completed, "Callback should be called after specified time!");
|
||||
TKUnit.wait(30 / 1000);
|
||||
|
||||
TKUnit.assert(!completed, "Callback should not be called after the specified time!");
|
||||
};
|
||||
|
||||
export function test_setTimeout_shouldReturnNumber() {
|
||||
|
||||
Reference in New Issue
Block a user