You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/tests/xml-declaration/xml-declaration-tests.ts
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -837,7 +837,7 @@ export function test_parse_template_property() {
837
837
TKUnit.assertEqual(button.text,"Click!","Expected child Button to have text 'Click!'");
838
838
}
839
839
840
-
exportfunctiontest_ParserError(){
840
+
exportfunctiontest_NonExistingElementError(){
841
841
varbasePath="xml-declaration/";
842
842
varexpectedErrorStart=
843
843
"Building UI from XML. @file:///app/"+basePath+"errors/non-existing-element.xml:11:5\n"+
@@ -856,3 +856,28 @@ export function test_ParserError() {
856
856
}
857
857
TKUnit.assertEqual(message.substr(0,expectedErrorStart.length),expectedErrorStart,"Expected load to throw, and the message to start with specific string");
TKUnit.assert(templateView,"Expected the page to have a TemplateView with 'temaplte-view' id.");
876
+
877
+
try{
878
+
templateView.parseTemplate();
879
+
}catch(e){
880
+
message=e.message;
881
+
}
882
+
TKUnit.assertEqual(message.substr(0,expectedErrorStart.length),expectedErrorStart,"Expected load to throw, and the message to start with specific string");
0 commit comments