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
50532f38
Commit
50532f38
authored
Dec 04, 2019
by
Jacek Marchwicki
Committed by
Flutter GitHub Bot
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Driver] correct type for getWidgetDiagnostics (#45985)
parent
4484ae40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletion
+37
-1
driver.dart
packages/flutter_driver/lib/src/driver/driver.dart
+1
-1
flutter_driver_test.dart
packages/flutter_driver/test/flutter_driver_test.dart
+36
-0
No files found.
packages/flutter_driver/lib/src/driver/driver.dart
View file @
50532f38
...
...
@@ -619,7 +619,7 @@ class FlutterDriver {
})
async
{
return
_sendCommand
(
GetDiagnosticsTree
(
finder
,
DiagnosticsType
.
renderObjec
t
,
DiagnosticsType
.
widge
t
,
subtreeDepth:
subtreeDepth
,
includeProperties:
includeProperties
,
timeout:
timeout
,
...
...
packages/flutter_driver/test/flutter_driver_test.dart
View file @
50532f38
...
...
@@ -250,6 +250,42 @@ void main() {
});
});
group
(
'getWidgetDiagnostics'
,
()
{
test
(
'sends the getWidgetDiagnostics command'
,
()
async
{
when
(
mockIsolate
.
invokeExtension
(
any
,
any
)).
thenAnswer
((
Invocation
i
)
{
expect
(
i
.
positionalArguments
[
1
],
<
String
,
dynamic
>{
'command'
:
'get_diagnostics_tree'
,
'diagnosticsType'
:
'widget'
,
'finderType'
:
'ByTooltipMessage'
,
'text'
:
'foo'
,
'includeProperties'
:
'true'
,
'subtreeDepth'
:
'0'
,
'timeout'
:
_kSerializedTestTimeout
,
});
return
makeMockResponse
(<
String
,
dynamic
>{});
});
await
driver
.
getWidgetDiagnostics
(
find
.
byTooltip
(
'foo'
),
timeout:
_kTestTimeout
);
});
});
group
(
'getRenderObjectDiagnostics'
,
()
{
test
(
'sends the getRenderObjectDiagnostics command'
,
()
async
{
when
(
mockIsolate
.
invokeExtension
(
any
,
any
)).
thenAnswer
((
Invocation
i
)
{
expect
(
i
.
positionalArguments
[
1
],
<
String
,
dynamic
>{
'command'
:
'get_diagnostics_tree'
,
'diagnosticsType'
:
'renderObject'
,
'finderType'
:
'ByTooltipMessage'
,
'text'
:
'foo'
,
'includeProperties'
:
'true'
,
'subtreeDepth'
:
'0'
,
'timeout'
:
_kSerializedTestTimeout
,
});
return
makeMockResponse
(<
String
,
dynamic
>{});
});
await
driver
.
getRenderObjectDiagnostics
(
find
.
byTooltip
(
'foo'
),
timeout:
_kTestTimeout
);
});
});
group
(
'waitForCondition'
,
()
{
test
(
'sends the wait for NoPendingFrameCondition command'
,
()
async
{
when
(
mockIsolate
.
invokeExtension
(
any
,
any
)).
thenAnswer
((
Invocation
i
)
{
...
...
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