@@ -531,9 +531,10 @@ fn theme_add_works() {
531531 let non_default_theme = Theme {
532532 name : stb ( "doglover" ) ,
533533 properties : vec ! [
534- ThemeProperty { key: stb( "sound" ) , value: stb( "woof" ) , inherit : Some ( true ) } ,
535- ThemeProperty { key: stb( "secondary_color" ) , value: stb( "blue" ) , inherit : None } ,
534+ ThemeProperty { key: stb( "sound" ) , value: stb( "woof" ) } ,
535+ ThemeProperty { key: stb( "secondary_color" ) , value: stb( "blue" ) } ,
536536 ] ,
537+ inherit : false ,
537538 } ;
538539
539540 // Attempt to add theme (should fail: Base must exist)
@@ -568,9 +569,10 @@ fn theme_add_works() {
568569 let default_theme = Theme {
569570 name : stb ( "default" ) ,
570571 properties : vec ! [
571- ThemeProperty { key: stb( "primary_color" ) , value: stb( "red" ) , inherit : None } ,
572- ThemeProperty { key: stb( "secondary_color" ) , value: stb( "blue" ) , inherit : None } ,
572+ ThemeProperty { key: stb( "primary_color" ) , value: stb( "red" ) } ,
573+ ThemeProperty { key: stb( "secondary_color" ) , value: stb( "blue" ) } ,
573574 ] ,
575+ inherit : false ,
574576 } ;
575577
576578 // Attempt to add default theme (should fail: Signer must be issuer of base)
@@ -635,17 +637,18 @@ fn theme_add_too_many_properties_fails() {
635637 let default_theme = Theme {
636638 name : stb ( "default" ) ,
637639 properties : vec ! [
638- ThemeProperty { key: stb( "1" ) , value: stb( "red" ) , inherit : None } ,
639- ThemeProperty { key: stb( "2" ) , value: stb( "blue" ) , inherit : None } ,
640- ThemeProperty { key: stb( "3" ) , value: stb( "red" ) , inherit : None } ,
641- ThemeProperty { key: stb( "4" ) , value: stb( "blue" ) , inherit : None } ,
642- ThemeProperty { key: stb( "5" ) , value: stb( "red" ) , inherit : None } ,
643- ThemeProperty { key: stb( "6" ) , value: stb( "blue" ) , inherit : None } ,
644- ThemeProperty { key: stb( "7" ) , value: stb( "red" ) , inherit : None } ,
645- ThemeProperty { key: stb( "8" ) , value: stb( "blue" ) , inherit : None } ,
646- ThemeProperty { key: stb( "9" ) , value: stb( "red" ) , inherit : None } ,
647- ThemeProperty { key: stb( "10" ) , value: stb( "blue" ) , inherit : None } ,
640+ ThemeProperty { key: stb( "1" ) , value: stb( "red" ) } ,
641+ ThemeProperty { key: stb( "2" ) , value: stb( "blue" ) } ,
642+ ThemeProperty { key: stb( "3" ) , value: stb( "red" ) } ,
643+ ThemeProperty { key: stb( "4" ) , value: stb( "blue" ) } ,
644+ ThemeProperty { key: stb( "5" ) , value: stb( "red" ) } ,
645+ ThemeProperty { key: stb( "6" ) , value: stb( "blue" ) } ,
646+ ThemeProperty { key: stb( "7" ) , value: stb( "red" ) } ,
647+ ThemeProperty { key: stb( "8" ) , value: stb( "blue" ) } ,
648+ ThemeProperty { key: stb( "9" ) , value: stb( "red" ) } ,
649+ ThemeProperty { key: stb( "10" ) , value: stb( "blue" ) } ,
648650 ] ,
651+ inherit : false ,
649652 } ;
650653
651654 // Add default theme to base should fail (too many properties)
0 commit comments