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
40aea479
Unverified
Commit
40aea479
authored
Apr 02, 2020
by
Ferhat
Committed by
GitHub
Apr 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[web] Unskip assertions test. Update for latest stack trace format. (#53795)
parent
1c8b81fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
assertions.dart
packages/flutter/lib/src/foundation/assertions.dart
+1
-0
assertions_test.dart
packages/flutter/test/foundation/assertions_test.dart
+2
-2
No files found.
packages/flutter/lib/src/foundation/assertions.dart
View file @
40aea479
...
@@ -926,6 +926,7 @@ void debugPrintStack({StackTrace stackTrace, String label, int maxFrames}) {
...
@@ -926,6 +926,7 @@ void debugPrintStack({StackTrace stackTrace, String label, int maxFrames}) {
// is addressed.
// is addressed.
lines
=
lines
.
skipWhile
((
String
line
)
{
lines
=
lines
.
skipWhile
((
String
line
)
{
return
line
.
contains
(
'StackTrace.current'
)
||
return
line
.
contains
(
'StackTrace.current'
)
||
line
.
contains
(
'dart-sdk/lib/_internal'
)
||
line
.
contains
(
'dart:sdk_internal'
);
line
.
contains
(
'dart:sdk_internal'
);
});
});
}
}
...
...
packages/flutter/test/foundation/assertions_test.dart
View file @
40aea479
...
@@ -14,7 +14,7 @@ void main() {
...
@@ -14,7 +14,7 @@ void main() {
});
});
expect
(
log
[
0
],
contains
(
'Example label'
));
expect
(
log
[
0
],
contains
(
'Example label'
));
expect
(
log
[
1
],
contains
(
'debugPrintStack'
));
expect
(
log
[
1
],
contains
(
'debugPrintStack'
));
}
,
skip:
isBrowser
);
});
test
(
'debugPrintStack'
,
()
{
test
(
'debugPrintStack'
,
()
{
final
List
<
String
>
log
=
captureOutput
(()
{
final
List
<
String
>
log
=
captureOutput
(()
{
...
@@ -39,7 +39,7 @@ void main() {
...
@@ -39,7 +39,7 @@ void main() {
expect
(
joined
,
contains
(
'captureOutput'
));
expect
(
joined
,
contains
(
'captureOutput'
));
expect
(
joined
,
contains
(
'
\n
Example information
\n
'
));
expect
(
joined
,
contains
(
'
\n
Example information
\n
'
));
}
,
skip:
isBrowser
);
});
test
(
'FlutterErrorDetails.toString'
,
()
{
test
(
'FlutterErrorDetails.toString'
,
()
{
expect
(
expect
(
...
...
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