Gave the modal page 100 ms before closing it to avoid "Trying to dismiss the presentation controller while transitioning already." error.

This commit is contained in:
Rossen Hristov
2015-10-20 15:52:51 +03:00
parent 2545f2f19a
commit 0a0ab98f31
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
import {ShownModallyData} from "ui/page";
import TKUnit = require("../../TKUnit");
export function onShownModally(args: ShownModallyData) {
TKUnit.wait(0.100);
args.context.shownModally = true;
args.closeCallback("return value");
}

View File

@@ -372,7 +372,6 @@ export function test_page_backgroundColor_is_white() {
export function test_WhenPageIsLoadedFrameCurrentPageIsTheSameInstance() {
var page;
var loadedEventHandler = function (args) {
console.log("loadedEventHandler");
TKUnit.assert(FrameModule.topmost().currentPage === args.object, `frame.topmost().currentPage should be equal to args.object page instance in the page.loaded event handler. Expected: ${args.object.id}; Actual: ${FrameModule.topmost().currentPage.id};`);
}