Fixed issue when bindingContext is bound more than once.

This commit is contained in:
Nedyalko Nikolov
2015-04-30 13:48:52 +03:00
parent 315959a590
commit 2e4b2eacf2
10 changed files with 136 additions and 46 deletions

View File

@@ -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;