@@ -98,7 +98,7 @@ describeWithEnvironment('NetworkLogView', () => {
9898 assert . isNull ( marker ) ;
9999 } ) ;
100100
101- it ( 'adds an error red icon to the left of the failed requests' , async ( ) => {
101+ it ( 'adds an error icon to the left of the failed requests' , async ( ) => {
102102 const request = SDK . NetworkRequest . NetworkRequest . create (
103103 'requestId' as Protocol . Network . RequestId , urlString `https://www.example.com` , urlString `` , null , null , null ) ;
104104 request . statusCode = 404 ;
@@ -111,9 +111,6 @@ describeWithEnvironment('NetworkLogView', () => {
111111 const iconElement = el . querySelector ( '.icon' ) as HTMLElement ;
112112 const iconImage = iconElement . getAttribute ( 'name' ) ;
113113 assert . strictEqual ( 'cross-circle-filled' , iconImage ) ;
114-
115- const backgroundColorOfIcon = iconElement . style . color . toString ( ) ;
116- assert . strictEqual ( backgroundColorOfIcon , 'var(--icon-error)' ) ;
117114 } ) ;
118115
119116 it ( 'show document icon' , async ( ) => {
@@ -475,7 +472,5 @@ describeWithEnvironment('NetworkLogView', () => {
475472 const iconElement = el . querySelector ( '.icon' ) as HTMLElement ;
476473 const iconImage = iconElement . getAttribute ( 'name' ) ;
477474 assert . strictEqual ( 'warning-filled' , iconImage ) ;
478- const backgroundColorOfIcon = iconElement . style . color . toString ( ) ;
479- assert . strictEqual ( backgroundColorOfIcon , 'var(--icon-warning)' ) ;
480475 } ) ;
481476} ) ;
0 commit comments