File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,25 @@ public async Task ExecuteDevToolsMethodThrowsExceptionWithInvalidMethod()
324324 }
325325 }
326326
327+ [ Fact ]
328+ public async Task CanGetMediaQueries ( )
329+ {
330+ using ( var browser = new ChromiumWebBrowser ( "https://cefsharp.github.io/demo/mediaqueryhover.html" ) )
331+ {
332+ await browser . WaitForInitialLoadAsync ( ) ;
333+
334+ using ( var devToolsClient = browser . GetDevToolsClient ( ) )
335+ {
336+ await devToolsClient . DOM . EnableAsync ( ) ;
337+ await devToolsClient . CSS . EnableAsync ( ) ;
338+
339+ var mediaQueries = await devToolsClient . CSS . GetMediaQueriesAsync ( ) ;
340+
341+ Assert . True ( mediaQueries . Medias . Count > 0 ) ;
342+ }
343+ }
344+ }
345+
327346 [ Fact ]
328347 public async Task CanRegisterMultipleEventHandlers ( )
329348 {
You can’t perform that action at this time.
0 commit comments