From e9aee707f1a2d19cca8d5b2f890b5b21b3f39bf9 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Tue, 1 Dec 2015 17:36:11 +0200 Subject: [PATCH] Update expected errors after the runtime errors change --- .../xml-declaration/xml-declaration-tests.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/apps/tests/xml-declaration/xml-declaration-tests.ts b/apps/tests/xml-declaration/xml-declaration-tests.ts index 051ecc5c0..1dbaba4df 100644 --- a/apps/tests/xml-declaration/xml-declaration-tests.ts +++ b/apps/tests/xml-declaration/xml-declaration-tests.ts @@ -841,13 +841,7 @@ export function test_NonExistingElementError() { var basePath = "xml-declaration/"; var expectedErrorStart = "Building UI from XML. @file:///app/" + basePath + "errors/non-existing-element.xml:11:5\n" + - " ↳Module 'ui/unicorn' not found for element 'Unicorn'.\n"; - if (global.android) { - expectedErrorStart += " ↳Module \"ui/unicorn\" not found"; - } else { - expectedErrorStart += " ↳Failed to find module 'ui/unicorn'"; - } - + " ↳Module 'ui/unicorn' not found for element 'Unicorn'."; var message; try { builder.load(__dirname + "/errors/non-existing-element.xml"); @@ -861,13 +855,7 @@ export function test_NonExistingElementInTemplateError() { var basePath = "xml-declaration/"; var expectedErrorStart = "Building UI from XML. @file:///app/" + basePath + "errors/non-existing-element-in-template.xml:14:17\n" + - " ↳Module 'ui/unicorn' not found for element 'Unicorn'.\n"; - if (global.android) { - expectedErrorStart += " ↳Module \"ui/unicorn\" not found"; - } else { - expectedErrorStart += " ↳Failed to find module 'ui/unicorn'"; - } - + " ↳Module 'ui/unicorn' not found for element 'Unicorn'."; var message; var page = builder.load(__dirname + "/errors/non-existing-element-in-template.xml"); TKUnit.assert(view, "Expected the xml to generate a page");