// Copyright 2014 The Flutter 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/rendering.dart';import'package:flutter_test/flutter_test.dart';voidmain(){test('Initializing the RendererBinding does not crash when semantics is enabled',(){try{MyRenderingFlutterBinding();}catch(e){fail('Initializing the RenderingBinding threw an unexpected error:\n$e');}expect(RendererBinding.instance,isA<MyRenderingFlutterBinding>());expect(SemanticsBinding.instance.semanticsEnabled,isTrue);});}// Binding that pretends the platform had semantics enabled before the binding// is initialized.classMyRenderingFlutterBindingextendsRenderingFlutterBinding{@overrideboolgetsemanticsEnabled=>true;}