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
80344aca
Unverified
Commit
80344aca
authored
May 02, 2019
by
Kate Lovett
Committed by
GitHub
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comma Comma Nit Nit
parent
fdd554fb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
28 deletions
+24
-28
segmented_control_test.dart
packages/flutter/test/cupertino/segmented_control_test.dart
+2
-2
bottom_app_bar_test.dart
packages/flutter/test/material/bottom_app_bar_test.dart
+1
-1
input_decorator_test.dart
packages/flutter/test/material/input_decorator_test.dart
+1
-2
localized_fonts_test.dart
packages/flutter/test/rendering/localized_fonts_test.dart
+3
-6
editable_text_cursor_test.dart
packages/flutter/test/widgets/editable_text_cursor_test.dart
+2
-2
shadow_test.dart
packages/flutter/test/widgets/shadow_test.dart
+3
-3
text_golden_test.dart
packages/flutter/test/widgets/text_golden_test.dart
+12
-12
No files found.
packages/flutter/test/cupertino/segmented_control_test.dart
View file @
80344aca
...
...
@@ -1327,7 +1327,7 @@ void main() {
find
.
byType
(
RepaintBoundary
),
matchesSkiaGoldFile
(
'segmented_control_test.0.png'
),
);
}
,
);
});
testWidgets
(
'Golden Test Pressed State'
,
(
WidgetTester
tester
)
async
{
final
Map
<
int
,
Widget
>
children
=
<
int
,
Widget
>{};
...
...
@@ -1365,5 +1365,5 @@ void main() {
find
.
byType
(
RepaintBoundary
),
matchesSkiaGoldFile
(
'segmented_control_test.1.png'
),
);
}
,
);
});
}
packages/flutter/test/material/bottom_app_bar_test.dart
View file @
80344aca
...
...
@@ -79,7 +79,7 @@ void main() {
find
.
byKey
(
key
),
matchesSkiaGoldFile
(
'bottom_app_bar.custom_shape.2.png'
),
);
}
,
);
});
testWidgets
(
'color defaults to Theme.bottomAppBarColor'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
...
...
packages/flutter/test/material/input_decorator_test.dart
View file @
80344aca
...
...
@@ -2027,8 +2027,7 @@ void main() {
find
.
byType
(
InputDecorator
),
matchesSkiaGoldFile
(
'input_decorator.outline_icon_label.rtl.png'
),
);
},
);
});
testWidgets
(
'InputDecorationTheme.toString()'
,
(
WidgetTester
tester
)
async
{
// Regression test for https://github.com/flutter/flutter/issues/19305
...
...
packages/flutter/test/rendering/localized_fonts_test.dart
View file @
80344aca
...
...
@@ -51,8 +51,7 @@ void main() {
find
.
byType
(
RichText
),
matchesSkiaGoldFile
(
'localized_fonts.rich_text.styled_text_span.png'
),
);
},
);
});
testWidgets
(
'Text with locale-specific glyphs, ambient locale'
,
...
...
@@ -102,8 +101,7 @@ void main() {
find
.
byType
(
Row
),
matchesSkiaGoldFile
(
'localized_fonts.text_ambient_locale.chars.png'
),
);
},
);
});
testWidgets
(
'Text with locale-specific glyphs, explicit locale'
,
...
...
@@ -145,7 +143,6 @@ void main() {
find
.
byType
(
Row
),
matchesSkiaGoldFile
(
'localized_fonts.text_explicit_locale.chars.png'
),
);
},
);
});
}
packages/flutter/test/widgets/editable_text_cursor_test.dart
View file @
80344aca
...
...
@@ -91,7 +91,7 @@ void main() {
find
.
byKey
(
const
ValueKey
<
int
>(
1
)),
matchesSkiaGoldFile
(
'editable_text_test.0.png'
),
);
}
,
);
});
testWidgets
(
'cursor layout has correct radius'
,
(
WidgetTester
tester
)
async
{
final
GlobalKey
<
EditableTextState
>
editableTextKey
=
GlobalKey
<
EditableTextState
>();
...
...
@@ -142,7 +142,7 @@ void main() {
find
.
byKey
(
const
ValueKey
<
int
>(
1
)),
matchesSkiaGoldFile
(
'editable_text_test.1.png'
),
);
}
,
);
});
testWidgets
(
'Cursor animates on iOS'
,
(
WidgetTester
tester
)
async
{
final
Widget
widget
=
MaterialApp
(
...
...
packages/flutter/test/widgets/shadow_test.dart
View file @
80344aca
...
...
@@ -60,7 +60,7 @@ void main() {
);
}
debugDisableShadows
=
true
;
}
,
);
});
testWidgets
(
'Shadows with PhysicalLayer'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
...
...
@@ -124,5 +124,5 @@ void main() {
);
}
debugDisableShadows
=
true
;
},);
}
\ No newline at end of file
});
}
packages/flutter/test/widgets/text_golden_test.dart
View file @
80344aca
...
...
@@ -55,7 +55,7 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.Centered.wrap.png'
),
);
}
,
);
});
testWidgets
(
'Text Foreground'
,
(
WidgetTester
tester
)
async
{
...
...
@@ -131,7 +131,7 @@ void main() {
find
.
byType
(
RepaintBoundary
),
matchesSkiaGoldFile
(
'text_golden.Foreground.stroke_and_gradient.png'
),
);
}
,
);
});
// TODO(garyq): This test requires an update when the background
// drawing from the beginning of the line bug is fixed. The current
...
...
@@ -181,7 +181,7 @@ void main() {
find
.
byType
(
RepaintBoundary
),
matchesSkiaGoldFile
(
'text_golden.Background.png'
),
);
}
,
);
});
testWidgets
(
'Text Fade'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
...
...
@@ -217,7 +217,7 @@ void main() {
find
.
byType
(
RepaintBoundary
).
first
,
matchesSkiaGoldFile
(
'text_golden.Fade.1.png'
),
);
}
,
);
});
testWidgets
(
'Default Strut text'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
...
...
@@ -242,7 +242,7 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.StrutDefault.png'
),
);
}
,
);
});
testWidgets
(
'Strut text 1'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
...
...
@@ -269,7 +269,7 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.Strut.1.png'
),
);
}
,
);
});
testWidgets
(
'Strut text 2'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
...
...
@@ -297,7 +297,7 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.Strut.2.png'
),
);
}
,
);
});
testWidgets
(
'Strut text rich'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
...
...
@@ -348,7 +348,7 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.Strut.3.png'
),
);
}
,
);
});
testWidgets
(
'Strut text font fallback'
,
(
WidgetTester
tester
)
async
{
// Font Fallback
...
...
@@ -383,7 +383,7 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.Strut.4.png'
),
);
}
,
);
});
testWidgets
(
'Strut text rich forceStrutHeight'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
...
...
@@ -434,7 +434,7 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.StrutForce.1.png'
),
);
}
,
);
});
testWidgets
(
'Decoration thickness'
,
(
WidgetTester
tester
)
async
{
final
TextDecoration
allDecorations
=
TextDecoration
.
combine
(
...
...
@@ -472,7 +472,7 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.Decoration.1.png'
),
);
}
,
);
});
testWidgets
(
'Decoration thickness'
,
(
WidgetTester
tester
)
async
{
final
TextDecoration
allDecorations
=
TextDecoration
.
combine
(
...
...
@@ -511,5 +511,5 @@ void main() {
find
.
byType
(
Container
),
matchesSkiaGoldFile
(
'text_golden.DecorationThickness.1.png'
),
);
}
,
);
});
}
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