@@ -1012,7 +1012,7 @@ export function injectSharedRendererTests(ctx: ISharedRendererTestContext): void
10121012 await ctx . value . proxy . writeln ( '\x1b[31;42;7m\u{E0B4} red fg green bg inverse\x1b[0m' ) ;
10131013 await ctx . value . proxy . writeln ( '\x1b[32;41;7m\u{E0B4} green fg red bg inverse\x1b[0m' ) ;
10141014 await ctx . value . proxy . selectAll ( ) ;
1015- await pollFor ( ctx . value . page , ( ) => getCellColor ( ctx . value , 1 , 1 ) , [ 255 , 255 , 255 , 255 ] ) ;
1015+ await pollFor ( ctx . value . page , ( ) => getCellColor ( ctx . value , 1 , 1 ) , [ 255 , 255 , 255 , 255 ] ) ;
10161016 await pollFor ( ctx . value . page , ( ) => getCellColor ( ctx . value , 1 , 2 ) , [ 230 , 128 , 128 , 255 ] ) ;
10171017 await pollFor ( ctx . value . page , ( ) => getCellColor ( ctx . value , 1 , 3 ) , [ 128 , 230 , 128 , 255 ] ) ;
10181018 await pollFor ( ctx . value . page , ( ) => getCellColor ( ctx . value , 1 , 4 ) , [ 128 , 230 , 128 , 255 ] ) ;
@@ -1397,9 +1397,7 @@ export function injectSharedRendererTestsStandalone(ctx: ISharedRendererTestCont
13971397 * @param row The 1-based row index to get the color for.
13981398 */
13991399async function getCellColor ( ctx : ITestContext , col : number , row : number , position : CellColorPosition = CellColorPosition . CENTER ) : Promise < [ red : number , green : number , blue : number , alpha : number ] > {
1400- if ( ! frameDetails ) {
1401- frameDetails = await getFrameDetails ( ctx ) ;
1402- }
1400+ frameDetails ??= await getFrameDetails ( ctx ) ;
14031401 switch ( position ) {
14041402 case CellColorPosition . CENTER :
14051403 return getCellColorInner ( frameDetails , col , row ) ;
0 commit comments