diff --git a/apps/ui-tests-app/app.ts b/apps/ui-tests-app/app.ts index c4122b43e..6486e99c2 100644 --- a/apps/ui-tests-app/app.ts +++ b/apps/ui-tests-app/app.ts @@ -1,7 +1,6 @@ import application = require("application"); application.mainModule = "mainPage"; - application.onUncaughtError = function (error: application.NativeScriptError) { console.warn(error.message); if (error.nativeError) { @@ -9,7 +8,6 @@ application.onUncaughtError = function (error: application.NativeScriptError) { } } - application.on(application.launchEvent, function (args: application.ApplicationEventData) { if (args.android) { // For Android applications, args.android is an android.content.Intent class. diff --git a/apps/ui-tests-app/mainPage.ts b/apps/ui-tests-app/mainPage.ts index 8b4ec2ab7..3c0ee1e98 100644 --- a/apps/ui-tests-app/mainPage.ts +++ b/apps/ui-tests-app/mainPage.ts @@ -20,7 +20,7 @@ export function createPage() { frame.topmost().navigate("pages/" + txtInput.text); } else { - var fileName = fs.path.join(__dirname, txtInput.text, txtInput.text); + fileName = fs.path.join(__dirname, txtInput.text, txtInput.text); if ((fs.File.exists(fileName + ".xml") || (fs.File.exists(fileName + ".js")))) { frame.topmost().navigate(txtInput.text + "/" + txtInput.text); }