mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed issue when bindingContext is bound more than once.
This commit is contained in:
@@ -143,6 +143,16 @@ export function buildUIAndRunTest(controlToTest, testFunction, pageCss?) {
|
||||
}
|
||||
}
|
||||
|
||||
export function navigateToModuleAndRunTest(moduleName, testFunction) {
|
||||
navigateToModule(moduleName);
|
||||
try {
|
||||
testFunction(frame.topmost().currentPage);
|
||||
}
|
||||
finally {
|
||||
goBack();
|
||||
}
|
||||
}
|
||||
|
||||
export function buildUIWithWeakRefAndInteract<T extends view.View>(createFunc: () => T, interactWithViewFunc?: (view: T) => void) {
|
||||
var newPage: page.Page;
|
||||
var testFinished = false;
|
||||
|
||||
Reference in New Issue
Block a user