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
225a43d9
Unverified
Commit
225a43d9
authored
Aug 05, 2021
by
Darren Austin
Committed by
GitHub
Aug 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated skipped tests for rendering directory. (#87700)
parent
ec86605a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
63 additions
and
67 deletions
+63
-67
editable_test.dart
packages/flutter/test/rendering/editable_test.dart
+47
-51
first_frame_test.dart
packages/flutter/test/rendering/first_frame_test.dart
+1
-1
image_test.dart
packages/flutter/test/rendering/image_test.dart
+3
-3
layers_test.dart
packages/flutter/test/rendering/layers_test.dart
+1
-1
paragraph_test.dart
packages/flutter/test/rendering/paragraph_test.dart
+9
-9
platform_view_test.dart
packages/flutter/test/rendering/platform_view_test.dart
+1
-1
proxy_box_test.dart
packages/flutter/test/rendering/proxy_box_test.dart
+1
-1
No files found.
packages/flutter/test/rendering/editable_test.dart
View file @
225a43d9
This diff is collapsed.
Click to expand it.
packages/flutter/test/rendering/first_frame_test.dart
View file @
225a43d9
...
...
@@ -24,7 +24,7 @@ void main() {
binding
.
handleDrawFrame
();
await
expectLater
(
completer
.
future
,
completes
);
},
skip:
!
kIsWeb
);
},
skip:
!
kIsWeb
);
// [intended] the test is only makes sense on the web.
}
class
TestRenderBinding
extends
BindingBase
...
...
packages/flutter/test/rendering/image_test.dart
View file @
225a43d9
...
...
@@ -189,7 +189,7 @@ Future<void> main() async {
image
.
dispose
();
expect
(
image
.
debugGetOpenHandleStackTraces
()!.
length
,
0
);
},
skip:
kIsWeb
);
//
Web doesn't track open image handles.
},
skip:
kIsWeb
);
//
https://github.com/flutter/flutter/issues/87442
test
(
'RenderImage does not dispose its image if setting the same image twice'
,
()
async
{
final
ui
.
Image
image
=
await
createTestImage
(
width:
10
,
height:
10
,
cache:
false
);
...
...
@@ -206,7 +206,7 @@ Future<void> main() async {
image
.
dispose
();
expect
(
image
.
debugGetOpenHandleStackTraces
()!.
length
,
0
);
},
skip:
kIsWeb
);
//
Web doesn't track open image handles.
},
skip:
kIsWeb
);
//
https://github.com/flutter/flutter/issues/87442
test
(
'Render image disposes its image when it is disposed'
,
()
async
{
final
ui
.
Image
image
=
await
createTestImage
(
width:
10
,
height:
10
,
cache:
false
);
...
...
@@ -221,5 +221,5 @@ Future<void> main() async {
image
.
dispose
();
expect
(
image
.
debugGetOpenHandleStackTraces
()!.
length
,
0
);
},
skip:
kIsWeb
);
//
Web doesn't track open image handles.
},
skip:
kIsWeb
);
//
https://github.com/flutter/flutter/issues/87442
}
packages/flutter/test/rendering/layers_test.dart
View file @
225a43d9
...
...
@@ -434,7 +434,7 @@ void main() {
// Ensure we can render the same scene again after rendering an interior
// layer.
parent
.
buildScene
(
SceneBuilder
());
},
skip:
isBrowser
);
// TODO(yjbanov): `toImage` doesn't work on the Web: https://github.com/flutter/flutter/issues/4
276
7
},
skip:
isBrowser
);
// TODO(yjbanov): `toImage` doesn't work on the Web: https://github.com/flutter/flutter/issues/4
985
7
test
(
'PictureLayer does not let you call dispose unless refcount is 0'
,
()
{
PictureLayer
layer
=
PictureLayer
(
Rect
.
zero
);
...
...
packages/flutter/test/rendering/paragraph_test.dart
View file @
225a43d9
...
...
@@ -118,7 +118,7 @@ void main() {
final
TextPosition
positionBelow
=
paragraph
.
getPositionForOffset
(
const
Offset
(
5.0
,
20.0
));
expect
(
positionBelow
.
offset
,
greaterThan
(
position40
.
offset
));
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61015
}
);
test
(
'getBoxesForSelection control test'
,
()
{
final
RenderParagraph
paragraph
=
RenderParagraph
(
...
...
@@ -184,7 +184,7 @@ void main() {
expect
(
boxes
[
2
],
const
TextBox
.
fromLTRBD
(
0.0
,
10.0
,
130.0
,
20.0
,
TextDirection
.
ltr
));
// 'fifth':
expect
(
boxes
[
3
],
const
TextBox
.
fromLTRBD
(
0.0
,
20.0
,
50.0
,
30.0
,
TextDirection
.
ltr
));
},
skip:
!
isLinux
);
// mac typography values can differ
},
skip:
!
isLinux
);
// mac typography values can differ
https://github.com/flutter/flutter/issues/12357
test
(
'getBoxesForSelection test with boxHeightStyle and boxWidthStyle set to max'
,
()
{
final
RenderParagraph
paragraph
=
RenderParagraph
(
...
...
@@ -243,7 +243,7 @@ void main() {
final
TextRange
range85
=
paragraph
.
getWordBoundary
(
const
TextPosition
(
offset:
75
));
expect
(
range85
.
textInside
(
_kText
),
equals
(
"Queen's"
));
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61017
}
);
test
(
'overflow test'
,
()
{
final
RenderParagraph
paragraph
=
RenderParagraph
(
...
...
@@ -439,7 +439,7 @@ void main() {
expect
(
boxes
[
2
].
toRect
().
height
,
moreOrLessEquals
(
26.0
,
epsilon:
0.0001
));
expect
(
boxes
[
3
].
toRect
().
width
,
anyOf
(
14.0
,
13.0
));
expect
(
boxes
[
3
].
toRect
().
height
,
moreOrLessEquals
(
13.0
,
epsilon:
0.0001
));
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61016
}
);
test
(
'toStringDeep'
,
()
{
final
RenderParagraph
paragraph
=
RenderParagraph
(
...
...
@@ -605,7 +605,7 @@ void main() {
// intrinsicHeight = singleLineHeight * textScaleFactor * two lines.
expect
(
maxIntrinsicHeight
,
singleLineHeight
*
2.0
*
2
);
expect
(
maxIntrinsicHeight
,
minIntrinsicHeight
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61020
}
);
test
(
'can compute IntrinsicWidth for widget span'
,
()
{
// Regression test for https://github.com/flutter/flutter/issues/59316
...
...
@@ -648,7 +648,7 @@ void main() {
final
double
maxIntrinsicWidth
=
paragraph
.
computeMaxIntrinsicWidth
(
fixedHeight
);
// maxIntrinsicWidth = widthForOneLine * textScaleFactor
expect
(
maxIntrinsicWidth
,
widthForOneLine
*
2.0
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61020
}
);
test
(
'inline widgets multiline test'
,
()
{
const
TextSpan
text
=
TextSpan
(
...
...
@@ -714,7 +714,7 @@ void main() {
layout
(
paragraph
);
paragraph
.
assembleSemanticsNode
(
SemanticsNode
(),
SemanticsConfiguration
(),
<
SemanticsNode
>[]);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61020
}
);
test
(
'Asserts on unsupported gesture recognizer'
,
()
{
final
RenderParagraph
paragraph
=
RenderParagraph
(
...
...
@@ -733,7 +733,7 @@ void main() {
expect
(
e
.
message
,
'MultiTapGestureRecognizer is not supported.'
);
}
expect
(
failed
,
true
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61020
}
);
test
(
'assembleSemanticsNode handles text spans that do not yield selection boxes'
,
()
{
final
RenderParagraph
paragraph
=
RenderParagraphWithEmptySelectionBoxList
(
...
...
@@ -750,7 +750,7 @@ void main() {
final
SemanticsNode
node
=
SemanticsNode
();
paragraph
.
assembleSemanticsNode
(
node
,
SemanticsConfiguration
(),
<
SemanticsNode
>[]);
expect
(
node
.
childrenCount
,
2
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61020
}
);
test
(
'assembleSemanticsNode handles empty WidgetSpans that do not yield selection boxes'
,
()
{
final
TextSpan
text
=
TextSpan
(
text:
''
,
children:
<
InlineSpan
>[
...
...
packages/flutter/test/rendering/platform_view_test.dart
View file @
225a43d9
...
...
@@ -99,7 +99,7 @@ void main() {
expect
(
fakePlatformViewController
.
dispatchedPointerEvents
,
isNotEmpty
);
});
}
,
skip:
isBrowser
);
// TODO(yjbanov): fails on Web with obscured stack trace: https://github.com/flutter/flutter/issues/42770
}
);
// Regression test for https://github.com/flutter/flutter/issues/69431
test
(
'multi-finger touch test'
,
()
{
...
...
packages/flutter/test/rendering/proxy_box_test.dart
View file @
225a43d9
...
...
@@ -262,7 +262,7 @@ void main() {
expect
(
getPixel
(
20
,
20
),
equals
(
0x00000080
));
expect
(
getPixel
(
image
.
width
-
1
,
0
),
equals
(
0x00000000
));
expect
(
getPixel
(
image
.
width
-
1
,
20
),
equals
(
0xffffffff
));
},
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/4
276
7
},
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/4
985
7
test
(
'RenderOpacity does not composite if it is transparent'
,
()
{
final
RenderOpacity
renderOpacity
=
RenderOpacity
(
...
...
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