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
f52fe4f7
Unverified
Commit
f52fe4f7
authored
Oct 09, 2023
by
droidbg
Committed by
GitHub
Oct 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[leak-tracking] Add leak tracking in test/painting #2 (#136169)
parent
6dce1425
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
29 deletions
+31
-29
continuous_rectangle_border_test.dart
...utter/test/painting/continuous_rectangle_border_test.dart
+8
-7
image_stream_test.dart
packages/flutter/test/painting/image_stream_test.dart
+23
-22
No files found.
packages/flutter/test/painting/continuous_rectangle_border_test.dart
View file @
f52fe4f7
...
...
@@ -9,6 +9,7 @@ library;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart'
;
void
main
(
)
{
test
(
'ContinuousRectangleBorder defaults'
,
()
{
...
...
@@ -108,7 +109,7 @@ void main() {
expect
(
border
.
getInnerPath
(
rect
,
textDirection:
TextDirection
.
rtl
),
looksLikeRectRtl
);
});
testWidgets
(
'Golden test even radii'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Golden test even radii'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
RepaintBoundary
(
child:
Material
(
color:
Colors
.
blueAccent
[
400
],
...
...
@@ -126,7 +127,7 @@ void main() {
);
});
testWidgets
(
'Golden test varying radii'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Golden test varying radii'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
RepaintBoundary
(
child:
Material
(
color:
Colors
.
green
[
100
],
...
...
@@ -149,7 +150,7 @@ void main() {
);
});
testWidgets
(
'Golden test topLeft radii'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Golden test topLeft radii'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
RepaintBoundary
(
child:
Material
(
color:
Colors
.
green
[
200
],
...
...
@@ -169,7 +170,7 @@ void main() {
);
});
testWidgets
(
'Golden test topRight radii'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Golden test topRight radii'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
RepaintBoundary
(
child:
Material
(
color:
Colors
.
green
[
300
],
...
...
@@ -189,7 +190,7 @@ void main() {
);
});
testWidgets
(
'Golden test bottomLeft radii'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Golden test bottomLeft radii'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
RepaintBoundary
(
child:
Material
(
color:
Colors
.
green
[
400
],
...
...
@@ -209,7 +210,7 @@ void main() {
);
});
testWidgets
(
'Golden test bottomRight radii'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Golden test bottomRight radii'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
RepaintBoundary
(
child:
Material
(
color:
Colors
.
green
[
500
],
...
...
@@ -229,7 +230,7 @@ void main() {
);
});
testWidgets
(
'Golden test large radii'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'Golden test large radii'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
RepaintBoundary
(
child:
Material
(
color:
Colors
.
redAccent
[
400
],
...
...
packages/flutter/test/painting/image_stream_test.dart
View file @
f52fe4f7
This diff is collapsed.
Click to expand it.
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