// 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/material.dart';import'package:flutter_api_samples/material/data_table/data_table.1.dart'asexample;import'package:flutter_test/flutter_test.dart';voidmain(){testWidgets('DataTable is scrollable',(WidgetTestertester)async{awaittester.pumpWidget(constexample.DataTableExampleApp(),);expect(find.byType(SingleChildScrollView),findsOneWidget);expect(tester.getTopLeft(find.text('Row 5')),constOffset(66.0,366.0));awaittester.drag(find.byType(SingleChildScrollView),constOffset(0.0,-200.0));awaittester.pumpAndSettle();expect(tester.getTopLeft(find.text('Row 5')),constOffset(66.0,186.0));});}