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
439aadf4
Commit
439aadf4
authored
Feb 18, 2016
by
yjbanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move to pub version of vm_service_client
parent
b0e45594
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
driver.dart
packages/flutter_driver/lib/src/driver.dart
+2
-2
pubspec.yaml
packages/flutter_driver/pubspec.yaml
+1
-4
flutter_driver_test.dart
packages/flutter_driver/test/flutter_driver_test.dart
+2
-7
No files found.
packages/flutter_driver/lib/src/driver.dart
View file @
439aadf4
...
...
@@ -74,8 +74,8 @@ class FlutterDriver {
// Waits for a signal from the VM service that the extension is registered
Future
waitForServiceExtension
()
{
return
isolate
.
on
ServiceExtensionAdded
.
firstWhere
((
VMServiceExtension
ext
)
{
return
ext
.
method
==
_flutterExtensionMethod
;
return
isolate
.
on
ExtensionAdded
.
firstWhere
((
String
extension
)
{
return
ext
ension
==
_flutterExtensionMethod
;
});
}
...
...
packages/flutter_driver/pubspec.yaml
View file @
439aadf4
...
...
@@ -8,10 +8,7 @@ environment:
sdk
:
'
>=1.12.0
<2.0.0'
dependencies
:
vm_service_client
:
git
:
url
:
git://github.com/yjbanov/vm_service_client.git
ref
:
54085d1
vm_service_client
:
'
>=0.1.2
<1.0.0'
json_rpc_2
:
any
logging
:
'
>=0.11.0
<1.0.0'
flutter
:
...
...
packages/flutter_driver/test/flutter_driver_test.dart
View file @
439aadf4
...
...
@@ -46,10 +46,8 @@ main() {
test
(
'connects to isolate paused at start'
,
()
async
{
when
(
mockIsolate
.
pauseEvent
).
thenReturn
(
new
MockVMPauseStartEvent
());
when
(
mockIsolate
.
resume
()).
thenReturn
(
new
Future
.
value
());
MockVMServiceExtension
mockExtension
=
new
MockVMServiceExtension
();
when
(
mockExtension
.
method
).
thenReturn
(
'ext.flutter_driver'
);
when
(
mockIsolate
.
onServiceExtensionAdded
)
.
thenReturn
(
new
Stream
.
fromIterable
([
mockExtension
]));
when
(
mockIsolate
.
onExtensionAdded
)
.
thenReturn
(
new
Stream
.
fromIterable
([
'ext.flutter_driver'
]));
FlutterDriver
driver
=
await
FlutterDriver
.
connect
();
expect
(
driver
,
isNotNull
);
...
...
@@ -203,6 +201,3 @@ class MockVMPauseBreakpointEvent extends Mock implements VMPauseBreakpointEvent
@proxy
class
MockVMResumeEvent
extends
Mock
implements
VMResumeEvent
{
}
@proxy
class
MockVMServiceExtension
extends
Mock
implements
VMServiceExtension
{
}
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