// Copyright 2016 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.import'package:flutter/painting.dart';import'package:test/test.dart';voidmain(){test("applyImageFit",(){FittedSizesresult;result=applyImageFit(ImageFit.scaleDown,constSize(100.0,1000.0),constSize(200.0,2000.0));expect(result.source,equals(constSize(100.0,1000.0)));expect(result.destination,equals(constSize(100.0,1000.0)));result=applyImageFit(ImageFit.scaleDown,constSize(300.0,3000.0),constSize(200.0,2000.0));expect(result.source,equals(constSize(300.0,3000.0)));expect(result.destination,equals(constSize(200.0,2000.0)));});}