mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
@@ -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");
|
||||
}
|
||||
@@ -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};`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user