(entry: NavigationEntry, topFrame?: Frame)
| 217 | } |
| 218 | |
| 219 | export function navigateWithEntry(entry: NavigationEntry, topFrame?: Frame): Page { |
| 220 | const page = Builder.createViewFromEntry(entry) as Page; |
| 221 | entry.moduleName = null; |
| 222 | entry.create = function () { |
| 223 | return page; |
| 224 | }; |
| 225 | |
| 226 | waitUntilNavigatedFrom(() => (topFrame ? topFrame.navigate(entry) : Frame.topmost().navigate(entry))); |
| 227 | |
| 228 | return page; |
| 229 | } |
| 230 | |
| 231 | export function goBack(topFrame?: Frame) { |
| 232 | waitUntilNavigatedFrom(() => (topFrame ? topFrame.goBack() : Frame.topmost().goBack())); |
no test coverage detected