@@ -115,6 +115,33 @@ describe("electron", function () {
115115 assert . equal ( infoPlist [ "CFBundleName" ] , "FakeTemplateApp" )
116116 assert . equal ( infoPlist [ "CFBundleDisplayName" ] , "FakeTemplateApp" )
117117
118+ // Added helper Info.plist validation
119+ var helperBasePath = path . join (
120+ "FakeTemplateApp.app" ,
121+ "Contents" ,
122+ "Frameworks"
123+ ) ;
124+ var helperApps = [
125+ "FakeTemplateApp Helper.app" ,
126+ "FakeTemplateApp Helper (GPU).app" ,
127+ "FakeTemplateApp Helper (Renderer).app" ,
128+ "FakeTemplateApp Helper (Plugin).app"
129+ ] ;
130+ helperApps . forEach ( function ( appName ) {
131+ var helperPlistPath = path . join ( helperBasePath , appName , "Contents" , "Info.plist" ) ;
132+ if ( files [ helperPlistPath ] ) {
133+ var helperPlist = plist . parse ( files [ helperPlistPath ] . contents . toString ( "utf8" ) ) ;
134+ var expectedName = appName . replace ( / \. a p p $ / , "" ) ;
135+ assert . equal ( helperPlist [ "CFBundleName" ] , expectedName , "CFBundleName should be updated" ) ;
136+ if ( helperPlist [ "CFBundleDisplayName" ] ) {
137+ assert . equal ( helperPlist [ "CFBundleDisplayName" ] , expectedName , "CFBundleDisplayName should be updated" ) ;
138+ }
139+ if ( helperPlist [ "CFBundleExecutable" ] ) {
140+ assert . equal ( helperPlist [ "CFBundleExecutable" ] , expectedName , "CFBundleExecutable should be renamed" ) ;
141+ }
142+ }
143+ } ) ;
144+
118145 cb ( ) ;
119146 } ) ;
120147 } ) ;
0 commit comments