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
23f269d8
Commit
23f269d8
authored
Nov 21, 2016
by
Yegor
Committed by
GitHub
Nov 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wait for I/O operations in transitions test (#6967)
parent
b40b54e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
transitions_perf_test.dart
...es/flutter_gallery/test_driver/transitions_perf_test.dart
+4
-5
No files found.
examples/flutter_gallery/test_driver/transitions_perf_test.dart
View file @
23f269d8
...
...
@@ -102,7 +102,7 @@ void main() {
tearDownAll
(()
async
{
if
(
driver
!=
null
)
driver
.
close
();
await
driver
.
close
();
});
test
(
'all demos'
,
()
async
{
...
...
@@ -137,16 +137,15 @@ void main() {
// that follows a 'Start Transition' event. The Gallery app adds a
// 'Start Transition' event when a demo is launched (see GalleryItem).
TimelineSummary
summary
=
new
TimelineSummary
.
summarize
(
timeline
);
summary
.
writeSummaryToFile
(
'transitions'
,
pretty:
true
);
await
summary
.
writeSummaryToFile
(
'transitions'
,
pretty:
true
);
try
{
saveDurationsHistogram
(
timeline
.
json
[
'traceEvents'
]);
await
saveDurationsHistogram
(
timeline
.
json
[
'traceEvents'
]);
}
catch
(
_
)
{
summary
.
writeTimelineToFile
(
'transitions'
,
pretty:
true
);
await
summary
.
writeTimelineToFile
(
'transitions'
,
pretty:
true
);
print
(
'ERROR: failed to extract transition events. Here is the full timeline:
\n
'
);
print
(
await
_fs
.
file
(
'build/transitions.timeline.json'
).
readAsString
());
rethrow
;
}
},
timeout:
new
Timeout
(
new
Duration
(
minutes:
5
)));
});
}
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