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
581b929b
Commit
581b929b
authored
Feb 09, 2017
by
Ian Hickson
Committed by
GitHub
Feb 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually fix the memory_nav benchmark (#8041)
parent
473b67ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
memory_nav_test.dart
examples/flutter_gallery/test_driver/memory_nav_test.dart
+15
-6
No files found.
examples/flutter_gallery/test_driver/memory_nav_test.dart
View file @
581b929b
...
@@ -18,16 +18,25 @@ void main() {
...
@@ -18,16 +18,25 @@ void main() {
});
});
test
(
'navigation'
,
()
async
{
test
(
'navigation'
,
()
async
{
Completer
<
Null
>
completer
=
new
Completer
<
Null
>();
bool
scroll
=
true
;
SerializableFinder
menuItem
=
find
.
text
(
'Text fields'
);
SerializableFinder
menuItem
=
find
.
text
(
'Text fields'
);
await
driver
.
scrollIntoView
(
menuItem
,
alignment:
0.5
);
driver
.
waitFor
(
menuItem
).
then
<
Null
>((
Null
value
)
async
{
scroll
=
false
;
await
new
Future
<
Null
>.
delayed
(
kWaitBetweenActions
);
await
new
Future
<
Null
>.
delayed
(
kWaitBetweenActions
);
for
(
int
i
=
0
;
i
<
15
;
i
++)
{
for
(
int
i
=
0
;
i
<
15
;
i
++)
{
await
driver
.
tap
(
menuItem
);
await
driver
.
tap
(
menuItem
);
await
new
Future
<
Null
>.
delayed
(
kWaitBetweenActions
);
await
new
Future
<
Null
>.
delayed
(
kWaitBetweenActions
);
await
driver
.
tap
(
find
.
byTooltip
(
'Back'
));
await
driver
.
tap
(
find
.
byTooltip
(
'Back'
));
await
new
Future
<
Null
>.
delayed
(
kWaitBetweenActions
);
await
new
Future
<
Null
>.
delayed
(
kWaitBetweenActions
);
}
}
completer
.
complete
();
});
while
(
scroll
)
{
await
driver
.
scroll
(
find
.
text
(
'Flutter Gallery'
),
0.0
,
-
500.0
,
const
Duration
(
milliseconds:
80
));
await
new
Future
<
Null
>.
delayed
(
kWaitBetweenActions
);
}
await
completer
.
future
;
},
timeout:
new
Timeout
(
new
Duration
(
minutes:
1
)));
},
timeout:
new
Timeout
(
new
Duration
(
minutes:
1
)));
});
});
}
}
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