File tree Expand file tree Collapse file tree
apps/tests/xml-declaration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,22 +135,22 @@ export function test_loadWithOptionsFromTNSPath() {
135135
136136export function test_loadWithAttributes ( ) {
137137 var lText = "Nativescript rocks" ;
138+ var lWrap = true ;
138139 var lColor = "#FF0000" ; // red
139140
140141 var v = builder . load ( {
141- path : "~/xml-declaration/mymodulewithxml" ,
142- name : "MyControl" ,
143- page : new Page ( ) ,
142+ path : "tns_modules/ui/label" ,
143+ name : "Label" ,
144144 attributes : {
145- customAttribute : {
146- text : lText
147- } ,
148- style : "background-color: " + lColor + ";"
145+ text : lText ,
146+ textWrap : lWrap ,
147+ style : "color: " + lColor + ";"
149148 }
150149 } ) ;
151150
152- TKUnit . assertEqual ( v [ "customAttribute" ] [ "text" ] , lText , "Expected result: true; Actual result: " + v + ";" ) ;
153- helper . assertViewBackgroundColor ( v , lColor ) ;
151+ TKUnit . assertEqual ( v [ "text" ] , lText , "Expected result: true; Actual result: " + v + ";" ) ;
152+ TKUnit . assertEqual ( v [ "textWrap" ] , true , "Expected result: true; Actual result: " + v + ";" ) ;
153+ helper . assertViewColor ( v , lColor ) ;
154154} ;
155155
156156export function test_parse_ShouldNotCrashWithoutExports ( ) {
You can’t perform that action at this time.
0 commit comments