@@ -151,6 +151,39 @@ void main() {
151151 );
152152 });
153153 });
154+
155+ group ('Deprecation.forVersion' , () {
156+ test ('excludes deprecations that are obsolete' , () {
157+ final version = Version .parse ('1.79.0' );
158+ final deprecations = Deprecation .forVersion (version);
159+
160+ expect (
161+ deprecations,
162+ equals ({
163+ Deprecation .callString,
164+ Deprecation .elseif,
165+ Deprecation .mozDocument,
166+ Deprecation .relativeCanonical,
167+ Deprecation .newGlobal,
168+ Deprecation .colorModuleCompat,
169+ Deprecation .slashDiv,
170+ Deprecation .bogusCombinators,
171+ Deprecation .strictUnary,
172+ Deprecation .functionUnits,
173+ Deprecation .duplicateVarFlags,
174+ Deprecation .nullAlpha,
175+ Deprecation .absPercent,
176+ Deprecation .fsImporterCwd,
177+ Deprecation .cssFunctionMixin,
178+ Deprecation .featureExists,
179+ Deprecation .color4Api,
180+ Deprecation .colorFunctions,
181+ Deprecation .legacyJsApi
182+ }),
183+ reason: 'mixed-decls obsolete as of 1.92.0' ,
184+ );
185+ });
186+ });
154187}
155188
156189/// Confirms that [source] will error if [deprecation] is fatal.
0 commit comments