// Copyright 2014 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.
voidmain(){finalPaintingBindingSpybinding=PaintingBindingSpy();test('instantiateImageCodec used for loading images',()async{expect(binding.instantiateImageCodecCalledCount,0);finalUint8Listbytes=Uint8List.fromList(kTransparentImage);finalMemoryImagememoryImage=MemoryImage(bytes);memoryImage.load(memoryImage);expect(binding.instantiateImageCodecCalledCount,1);});}