Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
c2bfb7b3
Unverified
Commit
c2bfb7b3
authored
Dec 10, 2020
by
Jia Hao
Committed by
GitHub
Dec 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[integration_test] Wrap pumped widgets with a RepaintBoundary (#70368)
parent
135a8c22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
integration_test.dart
packages/integration_test/lib/integration_test.dart
+8
-0
binding_test.dart
packages/integration_test/test/binding_test.dart
+7
-0
No files found.
packages/integration_test/lib/integration_test.dart
View file @
c2bfb7b3
...
...
@@ -412,4 +412,12 @@ class IntegrationTestWidgetsFlutterBinding extends LiveTestWidgetsFlutterBinding
/// See [TestWidgetsFlutterBinding.defaultTestTimeout] for more details.
set
defaultTestTimeout
(
Timeout
timeout
)
=>
_defaultTestTimeout
=
timeout
;
Timeout
_defaultTestTimeout
;
@override
void
attachRootWidget
(
Widget
rootWidget
)
{
// This is a workaround where screenshots of root widgets have incorrect
// bounds.
// TODO(jiahaog): Remove when https://github.com/flutter/flutter/issues/66006 is fixed.
super
.
attachRootWidget
(
RepaintBoundary
(
child:
rootWidget
));
}
}
packages/integration_test/test/binding_test.dart
View file @
c2bfb7b3
...
...
@@ -100,6 +100,13 @@ Future<void> main() async {
expect
(
integrationBinding
.
defaultTestTimeout
,
newTimeout
);
});
});
// TODO(jiahaog): Remove when https://github.com/flutter/flutter/issues/66006 is fixed.
testWidgets
(
'root widgets are wrapped with a RepaintBoundary'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
const
Placeholder
());
expect
(
find
.
byType
(
RepaintBoundary
),
findsOneWidget
);
});
});
tearDownAll
(()
async
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment