@@ -151,6 +151,40 @@ void main() {
151151 );
152152 });
153153 });
154+
155+ group ('Deprecation.forVersion' , () {
156+ test ('includes deprecations that are not 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:
184+ 'mixed-decls obsolete in 1.92.0' ,
185+ );
186+ });
187+ });
154188}
155189
156190/// Confirms that [source] will error if [deprecation] is fatal.
0 commit comments