diff --git a/tests/app/console/console.md b/tests/app/console/console.md index 57b604ff7..ae3ebb9b9 100644 --- a/tests/app/console/console.md +++ b/tests/app/console/console.md @@ -26,10 +26,6 @@ Asserts a boolean condition and prints a message in case the assert fails. Prints the state of the specified object to the console. {%snippet console-dir%} -### Dump -Prints the state of the specified object to the console. -{%snippet console-dump%} - ### Trace Prints the current stack trace in the console. {%snippet console-trace%} diff --git a/tests/app/image-source/image-source-tests.ts b/tests/app/image-source/image-source-tests.ts index 448883fc6..b2b41370c 100644 --- a/tests/app/image-source/image-source-tests.ts +++ b/tests/app/image-source/image-source-tests.ts @@ -16,7 +16,9 @@ var imagePath = "~/logo.png"; var smallImagePath = "~/small-image.png"; export function testFromResource() { + // >> imagesource-resname var img = imageSource.fromResource("icon"); + // << imagesource-resname TKUnit.assert(img.height > 0, "image.fromResource failed"); } diff --git a/tests/app/timer/timer-tests.ts b/tests/app/timer/timer-tests.ts index 57a48e560..588342829 100644 --- a/tests/app/timer/timer-tests.ts +++ b/tests/app/timer/timer-tests.ts @@ -82,12 +82,11 @@ export function test_setTimeout_callbackShouldBeCleared() { completed = true; // << (hide) }, 50); - // << timer-set-fifty //// Clear timeout with specified id. timer.clearTimeout(id); - // << timer-set-twothousands + // << timer-set-fifty TKUnit.wait(0.060); timer.clearTimeout(id); diff --git a/tests/app/timer/timer.md b/tests/app/timer/timer.md index ad34b3348..24db2e850 100644 --- a/tests/app/timer/timer.md +++ b/tests/app/timer/timer.md @@ -13,10 +13,10 @@ previous_url: /ApiReference/timer/HOW-TO {%snippet timer-set-zero%} ### Evaluates an expression after a specified number of milliseconds. -{%snippet timer-set-fivehundred%} +{%snippet timer-set-ten%} ### Cancels the evaluation with the clearTimeout method. -{%snippet timer-set-twothousands%} +{%snippet timer-set-fifty%} ### Evaluates an expression each time a specified number of milliseconds has elapsed. {%snippet timer-set-expression%} diff --git a/tests/app/ui/image/image-tests.ts b/tests/app/ui/image/image-tests.ts index c28c1947d..8b6dced74 100644 --- a/tests/app/ui/image/image-tests.ts +++ b/tests/app/ui/image/image-tests.ts @@ -126,10 +126,8 @@ export const test_SettingImageSrcToDataURI_sync = function () { }; export const test_SettingImageSrcToDataURI_async = function (done) { - // >> img-create-datauri const image = new ImageModule.Image(); image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAAXNSR0IArs4c6QAAABxpRE9UAAAAAgAAAAAAAAACAAAAKAAAAAIAAAACAAAARiS4uJEAAAASSURBVBgZYvjPwABHSMz/DAAAAAD//0GWpK0AAAAOSURBVGNgYPiPhBgQAACEvQv1D5y/pAAAAABJRU5ErkJggg=="; - // << img-create-datauri runImageTestAsync(image, image.src, done); };