@@ -14,6 +14,8 @@ public partial class ReadLine
14
14
[ SkippableFact ]
15
15
public void Inline_RenderSuggestion ( )
16
16
{
17
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
18
+
17
19
TestSetup ( KeyMode . Cmd ,
18
20
new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ) ;
19
21
using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
@@ -92,6 +94,8 @@ public void Inline_RenderSuggestion()
92
94
[ SkippableFact ]
93
95
public void Inline_CustomKeyBindingsToAcceptSuggestion ( )
94
96
{
97
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
98
+
95
99
TestSetup ( KeyMode . Cmd ,
96
100
new KeyHandler ( "Alt+g" , PSConsoleReadLine . AcceptSuggestion ) ,
97
101
new KeyHandler ( "Alt+f" , PSConsoleReadLine . AcceptNextSuggestionWord ) ) ;
@@ -156,6 +160,8 @@ public void Inline_CustomKeyBindingsToAcceptSuggestion()
156
160
[ SkippableFact ]
157
161
public void Inline_AcceptNextSuggestionWordCanAcceptMoreThanOneWords ( )
158
162
{
163
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
164
+
159
165
TestSetup ( KeyMode . Cmd ,
160
166
new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ,
161
167
new KeyHandler ( "Alt+f" , PSConsoleReadLine . AcceptNextSuggestionWord ) ) ;
@@ -192,6 +198,8 @@ public void Inline_AcceptNextSuggestionWordCanAcceptMoreThanOneWords()
192
198
[ SkippableFact ]
193
199
public void Inline_AcceptSuggestionWithSelection ( )
194
200
{
201
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
202
+
195
203
TestSetup ( KeyMode . Cmd ,
196
204
new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ) ;
197
205
using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
@@ -261,6 +269,8 @@ public void Inline_DisablePrediction()
261
269
[ SkippableFact ]
262
270
public void Inline_SetPredictionColor ( )
263
271
{
272
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
273
+
264
274
TestSetup ( KeyMode . Cmd ) ;
265
275
var predictionColor = MakeCombinedColor ( ConsoleColor . DarkYellow , ConsoleColor . Yellow ) ;
266
276
var predictionColorToCheck = Tuple . Create ( ConsoleColor . DarkYellow , ConsoleColor . Yellow ) ;
@@ -288,6 +298,8 @@ public void Inline_SetPredictionColor()
288
298
[ SkippableFact ]
289
299
public void Inline_HistoryEditsCanUndoProperly ( )
290
300
{
301
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
302
+
291
303
TestSetup ( KeyMode . Cmd ,
292
304
new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ) ;
293
305
SetHistory ( "git checkout -b branch origin/bbbb" ) ;
@@ -320,6 +332,8 @@ public void Inline_HistoryEditsCanUndoProperly()
320
332
[ SkippableFact ]
321
333
public void Inline_AcceptSuggestionInVIMode ( )
322
334
{
335
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
336
+
323
337
TestSetup ( KeyMode . Vi ) ;
324
338
using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
325
339
@@ -367,6 +381,8 @@ public void Inline_AcceptSuggestionInVIMode()
367
381
[ SkippableFact ]
368
382
public void ViDefect2408 ( )
369
383
{
384
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
385
+
370
386
TestSetup ( KeyMode . Vi ) ;
371
387
using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
372
388
@@ -460,6 +476,8 @@ internal static List<PredictionResult> MockedPredictInput(Ast ast, Token[] token
460
476
[ SkippableFact ]
461
477
public void Inline_PluginSource_Acceptance ( )
462
478
{
479
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
480
+
463
481
// Using the 'Plugin' source will make PSReadLine get prediction from the plugin only.
464
482
TestSetup ( KeyMode . Cmd ,
465
483
new KeyHandler ( "Ctrl+f" , PSConsoleReadLine . ForwardWord ) ) ;
@@ -534,6 +552,8 @@ public void Inline_PluginSource_Acceptance()
534
552
[ SkippableFact ]
535
553
public void Inline_HistoryAndPluginSource_Acceptance ( )
536
554
{
555
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
556
+
537
557
// Using the 'HistoryAndPlugin' source will make PSReadLine get prediction from the plugin and history,
538
558
// and plugin takes precedence.
539
559
TestSetup ( KeyMode . Cmd ,
@@ -798,6 +818,8 @@ public void Inline_HistoryAndPluginSource_ExecutionStatus()
798
818
[ SkippableFact ]
799
819
public void Inline_TruncateVeryLongSuggestion ( )
800
820
{
821
+ Skip . If ( ScreenReaderModeEnabled , "Inline predictions are not supported in screen reader mode." ) ;
822
+
801
823
TestSetup ( new TestConsole ( keyboardLayout : _ , width : 10 , height : 2 ) , KeyMode . Cmd ) ;
802
824
using var disp = SetPrediction ( PredictionSource . History , PredictionViewStyle . InlineView ) ;
803
825
0 commit comments