@@ -105,7 +105,7 @@ public async Task MenuBar_auto_hide_and_visibility()
105105 [ Fact ( Timeout = 20000 ) ]
106106 public async Task ReadyToShow_event_fires_after_content_ready ( )
107107 {
108- var window = await Electron . WindowManager . CreateWindowAsync ( new BrowserWindowOptions { Show = false } ) ;
108+ var window = await Electron . WindowManager . CreateWindowAsync ( new BrowserWindowOptions { Show = false } , "about:blank" ) ;
109109 var tcs = new TaskCompletionSource ( ) ;
110110 window . OnReadyToShow += ( ) => tcs . TrySetResult ( ) ;
111111
@@ -125,7 +125,7 @@ public async Task ReadyToShow_event_fires_after_content_ready()
125125 [ Fact ( Timeout = 20000 ) ]
126126 public async Task PageTitleUpdated_event_fires_on_title_change ( )
127127 {
128- var window = await Electron . WindowManager . CreateWindowAsync ( new BrowserWindowOptions { Show = true } ) ;
128+ var window = await Electron . WindowManager . CreateWindowAsync ( new BrowserWindowOptions { Show = true } , "about:blank" ) ;
129129 var tcs = new TaskCompletionSource < string > ( ) ;
130130 window . OnPageTitleUpdated += title => tcs . TrySetResult ( title ) ;
131131
@@ -145,7 +145,7 @@ public async Task PageTitleUpdated_event_fires_on_title_change()
145145 [ Fact ( Timeout = 20000 ) ]
146146 public async Task Resize_event_fires_on_size_change ( )
147147 {
148- var window = await Electron . WindowManager . CreateWindowAsync ( new BrowserWindowOptions { Show = false } ) ;
148+ var window = await Electron . WindowManager . CreateWindowAsync ( new BrowserWindowOptions { Show = false } , "about:blank" ) ;
149149 var resized = false ;
150150 window . OnResize += ( ) => resized = true ;
151151 window . SetSize ( 500 , 400 ) ;
@@ -178,7 +178,7 @@ public async Task Menu_bar_visibility_and_auto_hide()
178178 [ Fact ( Timeout = 20000 ) ]
179179 public async Task Parent_child_relationship_roundtrip ( )
180180 {
181- var child = await Electron . WindowManager . CreateWindowAsync ( new BrowserWindowOptions { Show = false , Width = 300 , Height = 200 } ) ;
181+ var child = await Electron . WindowManager . CreateWindowAsync ( new BrowserWindowOptions { Show = false , Width = 300 , Height = 200 } , "about:blank" ) ;
182182 this . fx . MainWindow . SetParentWindow ( null ) ; // ensure top-level
183183 child . SetParentWindow ( this . fx . MainWindow ) ;
184184 var parent = await child . GetParentWindowAsync ( ) ;
0 commit comments