File tree 1 file changed +13
-0
lines changed
Filter options
1 file changed +13
-0
lines changed
Original file line number Diff line number Diff line change @@ -674,6 +674,19 @@ export function test_CSS_isAppliedOnPage_From_addCssFile() {
674
674
} ) ;
675
675
}
676
676
677
+ export function test_CSS_isAppliedOnPage_From_changeCssFile ( ) {
678
+ const testButton = new buttonModule . Button ( ) ;
679
+ testButton . text = "Test" ;
680
+
681
+ helper . buildUIAndRunTest ( testButton , function ( views : Array < viewModule . View > ) {
682
+ const page : pageModule . Page = < pageModule . Page > views [ 1 ] ;
683
+ page . css = "button { color: blue; }" ;
684
+ page . changeCssFile ( "~/ui/styling/test.css" ) ;
685
+ helper . assertViewBackgroundColor ( page , "#FF0000" ) ;
686
+ TKUnit . assert ( testButton . style . color === undefined , "Color should not have a value" ) ;
687
+ } ) ;
688
+ }
689
+
677
690
const invalidCSS = ".invalid { " +
678
691
"color: invalidValue; " +
679
692
"background-color: invalidValue; " +
You can’t perform that action at this time.
0 commit comments