File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ public static class ViewFactory
46
46
// This is unstable when added directly as a view see https://github.com/gui-cs/Terminal.Gui/issues/3664
47
47
typeof ( Shortcut ) ,
48
48
49
+ typeof ( Tab ) ,
50
+ typeof ( Bar ) ,
51
+ typeof ( CharMap ) ,
52
+ typeof ( LegendAnnotation ) ,
53
+ typeof ( Menuv2 ) ,
54
+ typeof ( ScrollBar ) ,
55
+ typeof ( ScrollSlider ) ,
56
+ typeof ( TileView )
49
57
] ;
50
58
51
59
/// <summary>
@@ -91,7 +99,7 @@ internal static MenuBarItem[] DefaultMenuBarItems
91
99
92
100
private static bool IsSupportedType ( this Type t )
93
101
{
94
- return t == typeof ( Window ) || ( ! KnownUnsupportedTypes . Any ( t . IsSubclassOf ) & ! KnownUnsupportedTypes . Contains ( t ) ) ;
102
+ return t == typeof ( Window ) || ! KnownUnsupportedTypes . Contains ( t ) ;
95
103
}
96
104
97
105
/// <summary>
Original file line number Diff line number Diff line change @@ -154,15 +154,6 @@ public void KnownUnsupportedTypes_ContainsExpectedItems( [ValueSource( nameof( K
154
154
Assert . That ( ViewFactory . KnownUnsupportedTypes , Contains . Item ( expectedType ) ) ;
155
155
}
156
156
157
- [ Test ]
158
- [ Description ( "Checks that no new types have been added that aren't tested" ) ]
159
- [ Category ( "Change Control" ) ]
160
- [ NonParallelizable ]
161
- public void KnownUnsupportedTypes_DoesNotContainUnexpectedItems ( [ ValueSource ( nameof ( ViewFactory_KnownUnsupportedTypes ) ) ] Type typeDeclaredUnsupportedInViewFactory )
162
- {
163
- Assert . That ( KnownUnsupportedTypes_ExpectedTypes , Contains . Item ( typeDeclaredUnsupportedInViewFactory ) ) ;
164
- }
165
-
166
157
private bool CompareTwoViews ( View nonGenericTabIndex , View genericTabIndex )
167
158
{
168
159
Assert . Warn ( "View comparison only done by bounds check." ) ;
You can’t perform that action at this time.
0 commit comments