Include assert to test_NavigateToNewPage_WithAndroidCache for reuse native views on forward navigation (#4764)

This commit is contained in:
SvetoslavTsenov
2017-08-28 17:16:41 +03:00
committed by GitHub
parent 617fa92efc
commit 03a0ac75b1

View File

@ -32,8 +32,10 @@ export function test_NavigateToNewPage_WithAndroidCache() {
const androidFrame = topmost().android; const androidFrame = topmost().android;
const cachingBefore = androidFrame.cachePagesOnNavigate; const cachingBefore = androidFrame.cachePagesOnNavigate;
try { try {
const currentPage = topmost().currentPage;
androidFrame.cachePagesOnNavigate = true; androidFrame.cachePagesOnNavigate = true;
helper.navigateWithHistory(pageFactory); helper.navigateWithHistory(pageFactory);
TKUnit.assertNotNull(currentPage.nativeView);
helper.goBack(); helper.goBack();
} finally { } finally {
androidFrame.cachePagesOnNavigate = cachingBefore; androidFrame.cachePagesOnNavigate = cachingBefore;