lower-case-dashed components css support fixed

This commit is contained in:
Vladimir Enchev
2015-10-28 17:32:25 +02:00
parent 580e80b4c1
commit ffa54b5cf3
3 changed files with 28 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
.MyClass {
background-color: green;
}
stack-layout {
background-color: green;
}

View File

@@ -200,6 +200,23 @@ export function test_parse_ShouldResolveExportsFromCodeFileForTemplates() {
}
}
export function test_parse_css_is_applied_by_type_to_lower_case_dashed_components() {
var newPage: Page;
var pageFactory = function (): Page {
newPage = <Page>builder.parse("<page cssFile='~/xml-declaration/custom-css-file.css'><stack-layout /></page>");
return newPage;
};
helper.navigate(pageFactory);
TKUnit.assert(newPage.isLoaded, "The page should be loaded here.");
try {
helper.assertViewBackgroundColor(newPage.content, "#008000");
}
finally {
helper.goBack();
}
};
export function test_parse_ShouldApplyCssFromCssFile() {
var newPage: Page;
var pageFactory = function (): Page {