driver.scroll action; scroll perf test for Stocks

This commit is contained in:
yjbanov
2016-03-01 15:15:01 -08:00
parent cde2e1017e
commit ee184a7821
8 changed files with 161 additions and 8 deletions

View File

@@ -122,7 +122,7 @@ main() {
test('finds by ValueKey', () async {
when(mockIsolate.invokeExtension(any, any)).thenAnswer((Invocation i) {
expect(i.positionalArguments[1], {
'kind': 'find',
'command': 'find',
'searchSpecType': 'ByValueKey',
'keyValueString': 'foo',
'keyValueType': 'String'
@@ -150,7 +150,7 @@ main() {
test('sends the tap command', () async {
when(mockIsolate.invokeExtension(any, any)).thenAnswer((Invocation i) {
expect(i.positionalArguments[1], {
'kind': 'tap',
'command': 'tap',
'targetRef': '123'
});
return new Future.value();
@@ -172,7 +172,7 @@ main() {
test('sends the getText command', () async {
when(mockIsolate.invokeExtension(any, any)).thenAnswer((Invocation i) {
expect(i.positionalArguments[1], {
'kind': 'get_text',
'command': 'get_text',
'targetRef': '123'
});
return new Future.value({