mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed test_NavigateToNewPage_WithAndroidCache failure on Android API level 17
Unit tests re-factoring and improvements
This commit is contained in:
@@ -494,6 +494,9 @@ class AndroidFrame extends Observable implements definition.AndroidFrame {
|
||||
public set cachePagesOnNavigate(value: boolean) {
|
||||
if (this._cachePagesOnNavigate !== value) {
|
||||
if (this._owner.backStack.length > 0) {
|
||||
this._owner._printFrameBackStack();
|
||||
this._owner._printNativeBackStack();
|
||||
console.log(`currentPage: ${this._owner.currentPage}`);
|
||||
throw new Error("Cannot set cachePagesOnNavigate if there are items in the back stack.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user