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
44592238
Unverified
Commit
44592238
authored
Feb 26, 2018
by
Jason Simmons
Committed by
GitHub
Feb 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Roll engine to 33b88173f3820690169348859bbdc29133179e0b (#14832)
libtxt is now the default text renderer
parent
ed84fb96
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
8 deletions
+32
-8
engine.version
bin/internal/engine.version
+1
-1
text_field_test.dart
packages/flutter/test/material/text_field_test.dart
+6
-3
text_painter_rtl_test.dart
packages/flutter/test/painting/text_painter_rtl_test.dart
+3
-1
paragraph_test.dart
packages/flutter/test/rendering/paragraph_test.dart
+3
-1
baseline_test.dart
packages/flutter/test/widgets/baseline_test.dart
+2
-1
wrap_test.dart
packages/flutter/test/widgets/wrap_test.dart
+2
-1
flutter_test.dart
packages/flutter_test/lib/flutter_test.dart
+1
-0
matchers.dart
packages/flutter_test/lib/src/matchers.dart
+6
-0
platform.dart
packages/flutter_test/lib/src/platform.dart
+8
-0
No files found.
bin/internal/engine.version
View file @
44592238
ead227f118077d1f2b57842a32abaf105b573b8a
33b88173f3820690169348859bbdc29133179e0b
packages/flutter/test/material/text_field_test.dart
View file @
44592238
...
...
@@ -3,6 +3,7 @@
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:io'
show
Platform
;
import
'dart:ui'
show
SemanticsFlag
;
import
'package:flutter/material.dart'
;
...
...
@@ -735,7 +736,9 @@ void main() {
expect
(
newFirstPos
.
dy
,
firstPos
.
dy
);
expect
(
inputBox
.
hitTest
(
new
HitTestResult
(),
position:
inputBox
.
globalToLocal
(
newFirstPos
)),
isTrue
);
expect
(
inputBox
.
hitTest
(
new
HitTestResult
(),
position:
inputBox
.
globalToLocal
(
newFourthPos
)),
isFalse
);
});
},
// This test does not run as expected in the MacOS environment on Travis
skip:
runningOnTravis
&&
Platform
.
isMacOS
);
testWidgets
(
'TextField smoke test'
,
(
WidgetTester
tester
)
async
{
String
textFieldValue
;
...
...
@@ -1746,8 +1749,8 @@ void main() {
// --------- rowBottomY
final
double
rowBottomY
=
tester
.
getBottomLeft
(
find
.
byType
(
Row
)).
dy
;
expect
(
tester
.
getBottomLeft
(
find
.
byKey
(
keyA
)).
dy
,
rowBottomY
-
4.0
);
expect
(
tester
.
getBottomLeft
(
find
.
text
(
'abc'
)).
dy
,
rowBottomY
-
2.0
);
expect
(
tester
.
getBottomLeft
(
find
.
byKey
(
keyA
)).
dy
,
closeTo
(
rowBottomY
-
4.0
,
0.001
)
);
expect
(
tester
.
getBottomLeft
(
find
.
text
(
'abc'
)).
dy
,
closeTo
(
rowBottomY
-
2.0
,
0.001
)
);
expect
(
tester
.
getBottomLeft
(
find
.
byKey
(
keyB
)).
dy
,
rowBottomY
);
});
...
...
packages/flutter/test/painting/text_painter_rtl_test.dart
View file @
44592238
...
...
@@ -319,7 +319,9 @@ void main() {
const
TextBox
.
fromLTRBD
(
0.0
,
10.0
,
10.0
,
20.0
,
TextDirection
.
rtl
),
// Alef
],
);
},
skip:
Platform
.
isWindows
);
// Ahem-based tests don't yet quite work on Windows
},
// Ahem-based tests don't yet quite work on Windows or the MacOS environment in Travis
skip:
Platform
.
isWindows
||
(
runningOnTravis
&&
Platform
.
isMacOS
));
test
(
'TextPainter - line wrap mid-word'
,
()
{
final
TextPainter
painter
=
new
TextPainter
()
...
...
packages/flutter/test/rendering/paragraph_test.dart
View file @
44592238
...
...
@@ -69,7 +69,9 @@ void main() {
expect
(
boxes
.
any
((
ui
.
TextBox
box
)
=>
box
.
left
==
250
&&
box
.
top
==
0
),
isTrue
);
expect
(
boxes
.
any
((
ui
.
TextBox
box
)
=>
box
.
right
==
100
&&
box
.
top
==
10
),
isTrue
);
},
skip:
Platform
.
isWindows
);
// Ahem-based tests don't yet quite work on Windows
},
// Ahem-based tests don't yet quite work on Windows or the MacOS environment in Travis
skip:
Platform
.
isWindows
||
(
runningOnTravis
&&
Platform
.
isMacOS
));
test
(
'getWordBoundary control test'
,
()
{
final
RenderParagraph
paragraph
=
new
RenderParagraph
(
...
...
packages/flutter/test/widgets/baseline_test.dart
View file @
44592238
...
...
@@ -38,6 +38,7 @@ void main() {
),
);
expect
(
tester
.
renderObject
<
RenderBox
>(
find
.
text
(
'X'
)).
size
,
const
Size
(
100.0
,
100.0
));
expect
(
tester
.
renderObject
<
RenderBox
>(
find
.
byType
(
Baseline
)).
size
,
const
Size
(
100.0
,
200.0
));
expect
(
tester
.
renderObject
<
RenderBox
>(
find
.
byType
(
Baseline
)).
size
,
within
<
Size
>(
from:
const
Size
(
100.0
,
200.0
),
distance:
0.001
));
});
}
packages/flutter/test/widgets/wrap_test.dart
View file @
44592238
...
...
@@ -825,6 +825,7 @@ void main() {
),
);
expect
(
tester
.
renderObject
<
RenderBox
>(
find
.
text
(
'X'
)).
size
,
const
Size
(
100.0
,
100.0
));
expect
(
tester
.
renderObject
<
RenderBox
>(
find
.
byType
(
Baseline
)).
size
,
const
Size
(
100.0
,
200.0
));
expect
(
tester
.
renderObject
<
RenderBox
>(
find
.
byType
(
Baseline
)).
size
,
within
<
Size
>(
from:
const
Size
(
100.0
,
200.0
),
distance:
0.001
));
});
}
packages/flutter_test/lib/flutter_test.dart
View file @
44592238
...
...
@@ -13,6 +13,7 @@ export 'src/controller.dart';
export
'src/finders.dart'
;
export
'src/matchers.dart'
;
export
'src/nonconst.dart'
;
export
'src/platform.dart'
;
export
'src/stack_manipulation.dart'
;
export
'src/test_async_utils.dart'
;
export
'src/test_pointer.dart'
;
...
...
packages/flutter_test/lib/src/matchers.dart
View file @
44592238
...
...
@@ -622,6 +622,7 @@ const Map<Type, AnyDistanceFunction> _kStandardDistanceFunctions = const <Type,
int
:
_intDistance
,
double
:
_doubleDistance
,
Rect:
_rectDistance
,
Size:
_sizeDistance
,
};
int
_intDistance
(
int
a
,
int
b
)
=>
(
b
-
a
).
abs
();
...
...
@@ -642,6 +643,11 @@ double _rectDistance(Rect a, Rect b) {
return
delta
;
}
double
_sizeDistance
(
Size
a
,
Size
b
)
{
final
Offset
delta
=
b
-
a
;
return
math
.
sqrt
(
delta
.
dx
*
delta
.
dx
+
delta
.
dy
*
delta
.
dy
);
}
/// Asserts that two values are within a certain distance from each other.
///
/// The distance is computed by a [DistanceFunction].
...
...
packages/flutter_test/lib/src/platform.dart
0 → 100644
View file @
44592238
// Copyright 2018 The Chromium 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
'dart:io'
;
/// Whether the test is running in a Travis CI environment.
bool
get
runningOnTravis
=>
Platform
.
environment
[
'TRAVIS'
]
==
'true'
;
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