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
64bf567b
Unverified
Commit
64bf567b
authored
Oct 24, 2018
by
Danny Tuppeny
Committed by
GitHub
Oct 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Push breakpoint URIs to Project and remove unused string paths (#23395)
parent
aa83f77a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
expression_evaluation_test.dart
...er_tools/test/integration/expression_evaluation_test.dart
+2
-2
hot_reload_test.dart
packages/flutter_tools/test/integration/hot_reload_test.dart
+1
-1
basic_project.dart
...utter_tools/test/integration/test_data/basic_project.dart
+2
-4
test_project.dart
...lutter_tools/test/integration/test_data/test_project.dart
+1
-2
No files found.
packages/flutter_tools/test/integration/expression_evaluation_test.dart
View file @
64bf567b
...
...
@@ -33,13 +33,13 @@ void main() {
Future
<
VMIsolate
>
breakInBuildMethod
(
FlutterTestDriver
flutter
)
async
{
return
_flutter
.
breakAt
(
Uri
.
parse
(
'package:test/main.dart'
)
,
_project
.
buildMethodBreakpointUri
,
_project
.
buildMethodBreakpointLine
);
}
Future
<
VMIsolate
>
breakInTopLevelFunction
(
FlutterTestDriver
flutter
)
async
{
return
_flutter
.
breakAt
(
Uri
.
parse
(
'package:test/main.dart'
)
,
_project
.
topLevelFunctionBreakpointUri
,
_project
.
topLevelFunctionBreakpointLine
);
}
...
...
packages/flutter_tools/test/integration/hot_reload_test.dart
View file @
64bf567b
...
...
@@ -41,7 +41,7 @@ void main() {
test
(
'reload hits breakpoints after reload'
,
()
async
{
await
_flutter
.
run
(
withDebugger:
true
);
final
VMIsolate
isolate
=
await
_flutter
.
breakAt
(
Uri
.
parse
(
'package:test/main.dart'
)
,
_project
.
breakpointUri
,
_project
.
breakpointLine
);
expect
(
isolate
.
pauseEvent
,
isInstanceOf
<
VMPauseBreakpointEvent
>());
});
...
...
packages/flutter_tools/test/integration/test_data/basic_project.dart
View file @
64bf567b
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'test_project.dart'
;
class
BasicProject
extends
TestProject
{
...
...
@@ -41,9 +39,9 @@ class BasicProject extends TestProject {
}
'''
;
String
get
buildMethodBreakpointFile
=>
breakpointFile
;
Uri
get
buildMethodBreakpointUri
=>
breakpointUri
;
int
get
buildMethodBreakpointLine
=>
breakpointLine
;
String
get
topLevelFunctionBreakpointFile
=>
fs
.
path
.
join
(
dir
.
path
,
'lib'
,
'main.dart'
)
;
Uri
get
topLevelFunctionBreakpointUri
=>
breakpointUri
;
int
get
topLevelFunctionBreakpointLine
=>
lineContaining
(
main
,
'// TOP LEVEL BREAKPOINT'
);
}
packages/flutter_tools/test/integration/test_data/test_project.dart
View file @
64bf567b
...
...
@@ -16,8 +16,7 @@ abstract class TestProject {
String
get
main
;
// Valid locations for a breakpoint for tests that just need to break somewhere.
String
get
breakpointFile
=>
fs
.
path
.
join
(
dir
.
path
,
'lib'
,
'main.dart'
);
Uri
get
breakpointUri
=>
Uri
.
parse
(
'package:test/main.dart'
);
int
get
breakpointLine
=>
lineContaining
(
main
,
'// BREAKPOINT'
);
Future
<
void
>
setUpIn
(
Directory
dir
)
async
{
...
...
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