Update expected errors after the runtime errors change

This commit is contained in:
Panayot Cankov
2015-12-01 17:36:11 +02:00
parent b9d46fdc55
commit e9aee707f1

View File

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