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
962f57f8
Unverified
Commit
962f57f8
authored
Aug 02, 2021
by
Darren Austin
Committed by
GitHub
Aug 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated skipped tests for foundation directory. (#87293)
parent
92e02457
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
bit_field_test.dart
packages/flutter/test/foundation/bit_field_test.dart
+2
-2
consolidate_response_test.dart
...es/flutter/test/foundation/consolidate_response_test.dart
+1
-1
constants_test.dart
packages/flutter/test/foundation/constants_test.dart
+1
-1
isolates_test.dart
packages/flutter/test/foundation/isolates_test.dart
+1
-1
serialization_test.dart
packages/flutter/test/foundation/serialization_test.dart
+3
-3
stack_frame_test.dart
packages/flutter/test/foundation/stack_frame_test.dart
+3
-3
stack_trace_test.dart
packages/flutter/test/foundation/stack_trace_test.dart
+1
-1
No files found.
packages/flutter/test/foundation/bit_field_test.dart
View file @
962f57f8
...
@@ -38,7 +38,7 @@ void main() {
...
@@ -38,7 +38,7 @@ void main() {
expect
(
field
[
_TestEnum
.
c
],
isTrue
);
expect
(
field
[
_TestEnum
.
c
],
isTrue
);
expect
(
field
[
_TestEnum
.
d
],
isTrue
);
expect
(
field
[
_TestEnum
.
d
],
isTrue
);
expect
(
field
[
_TestEnum
.
e
],
isTrue
);
expect
(
field
[
_TestEnum
.
e
],
isTrue
);
},
skip:
kIsWeb
);
},
skip:
isBrowser
);
// [intended] BitField is not supported when compiled to Javascript.
test
(
'BitField.filed control test'
,
()
{
test
(
'BitField.filed control test'
,
()
{
final
BitField
<
_TestEnum
>
field1
=
BitField
<
_TestEnum
>.
filled
(
8
,
true
);
final
BitField
<
_TestEnum
>
field1
=
BitField
<
_TestEnum
>.
filled
(
8
,
true
);
...
@@ -48,5 +48,5 @@ void main() {
...
@@ -48,5 +48,5 @@ void main() {
final
BitField
<
_TestEnum
>
field2
=
BitField
<
_TestEnum
>.
filled
(
8
,
false
);
final
BitField
<
_TestEnum
>
field2
=
BitField
<
_TestEnum
>.
filled
(
8
,
false
);
expect
(
field2
[
_TestEnum
.
d
],
isFalse
);
expect
(
field2
[
_TestEnum
.
d
],
isFalse
);
},
skip:
kIsWeb
);
},
skip:
isBrowser
);
// [intended] BitField is not supported when compiled to Javascript.
}
}
packages/flutter/test/foundation/consolidate_response_test.dart
View file @
962f57f8
...
@@ -147,7 +147,7 @@ void main() {
...
@@ -147,7 +147,7 @@ void main() {
]);
]);
});
});
});
});
}
,
skip:
kIsWeb
);
});
}
}
class
MockHttpClientResponse
extends
Fake
implements
HttpClientResponse
{
class
MockHttpClientResponse
extends
Fake
implements
HttpClientResponse
{
...
...
packages/flutter/test/foundation/constants_test.dart
View file @
962f57f8
...
@@ -8,5 +8,5 @@ import 'package:flutter_test/flutter_test.dart';
...
@@ -8,5 +8,5 @@ import 'package:flutter_test/flutter_test.dart';
void
main
(
)
{
void
main
(
)
{
test
(
'isWeb is false for flutter tester'
,
()
{
test
(
'isWeb is false for flutter tester'
,
()
{
expect
(
kIsWeb
,
false
);
expect
(
kIsWeb
,
false
);
},
skip:
kIsWeb
);
},
skip:
kIsWeb
);
// [intended] kIsWeb is what we are testing here.
}
}
packages/flutter/test/foundation/isolates_test.dart
View file @
962f57f8
...
@@ -46,5 +46,5 @@ void main() {
...
@@ -46,5 +46,5 @@ void main() {
final
String
scriptPath
=
fs
.
path
.
join
(
packageRoot
,
'test'
,
'foundation'
,
'_compute_caller.dart'
);
final
String
scriptPath
=
fs
.
path
.
join
(
packageRoot
,
'test'
,
'foundation'
,
'_compute_caller.dart'
);
final
ProcessResult
result
=
await
Process
.
run
(
dartPath
,
<
String
>[
scriptPath
]);
final
ProcessResult
result
=
await
Process
.
run
(
dartPath
,
<
String
>[
scriptPath
]);
expect
(
result
.
exitCode
,
0
);
expect
(
result
.
exitCode
,
0
);
},
skip:
kIsWeb
);
},
skip:
kIsWeb
);
// [intended] isn't supported on the web.
}
}
packages/flutter/test/foundation/serialization_test.dart
View file @
962f57f8
...
@@ -40,7 +40,7 @@ void main() {
...
@@ -40,7 +40,7 @@ void main() {
expect
(
written
.
lengthInBytes
,
equals
(
8
));
expect
(
written
.
lengthInBytes
,
equals
(
8
));
final
ReadBuffer
read
=
ReadBuffer
(
written
);
final
ReadBuffer
read
=
ReadBuffer
(
written
);
expect
(
read
.
getInt64
(),
equals
(-
9000000000000
));
expect
(
read
.
getInt64
(),
equals
(-
9000000000000
));
},
skip:
kIsWeb
);
},
skip:
kIsWeb
);
// [intended] bigint isn't supported on web.
test
(
'of 64-bit integer in big endian'
,
()
{
test
(
'of 64-bit integer in big endian'
,
()
{
final
WriteBuffer
write
=
WriteBuffer
();
final
WriteBuffer
write
=
WriteBuffer
();
write
.
putInt64
(-
9000000000000
,
endian:
Endian
.
big
);
write
.
putInt64
(-
9000000000000
,
endian:
Endian
.
big
);
...
@@ -48,7 +48,7 @@ void main() {
...
@@ -48,7 +48,7 @@ void main() {
expect
(
written
.
lengthInBytes
,
equals
(
8
));
expect
(
written
.
lengthInBytes
,
equals
(
8
));
final
ReadBuffer
read
=
ReadBuffer
(
written
);
final
ReadBuffer
read
=
ReadBuffer
(
written
);
expect
(
read
.
getInt64
(
endian:
Endian
.
big
),
equals
(-
9000000000000
));
expect
(
read
.
getInt64
(
endian:
Endian
.
big
),
equals
(-
9000000000000
));
},
skip:
kIsWeb
);
},
skip:
kIsWeb
);
// [intended] bigint isn't supported on web.
test
(
'of double'
,
()
{
test
(
'of double'
,
()
{
final
WriteBuffer
write
=
WriteBuffer
();
final
WriteBuffer
write
=
WriteBuffer
();
write
.
putFloat64
(
3.14
);
write
.
putFloat64
(
3.14
);
...
@@ -86,7 +86,7 @@ void main() {
...
@@ -86,7 +86,7 @@ void main() {
final
ReadBuffer
read
=
ReadBuffer
(
written
);
final
ReadBuffer
read
=
ReadBuffer
(
written
);
read
.
getUint8
();
read
.
getUint8
();
expect
(
read
.
getInt64List
(
3
),
equals
(
integers
));
expect
(
read
.
getInt64List
(
3
),
equals
(
integers
));
},
skip:
kIsWeb
);
},
skip:
kIsWeb
);
// [intended] bigint isn't supported on web.
test
(
'of float list when unaligned'
,
()
{
test
(
'of float list when unaligned'
,
()
{
final
Float32List
floats
=
Float32List
.
fromList
(<
double
>[
3.14
,
double
.
nan
]);
final
Float32List
floats
=
Float32List
.
fromList
(<
double
>[
3.14
,
double
.
nan
]);
final
WriteBuffer
write
=
WriteBuffer
();
final
WriteBuffer
write
=
WriteBuffer
();
...
...
packages/flutter/test/foundation/stack_frame_test.dart
View file @
962f57f8
...
@@ -68,9 +68,9 @@ void main() {
...
@@ -68,9 +68,9 @@ void main() {
expect
(
frames
.
contains
(
StackFrame
.
stackOverFlowElision
),
true
);
expect
(
frames
.
contains
(
StackFrame
.
stackOverFlowElision
),
true
);
}
}
expect
(
overflowed
,
true
);
expect
(
overflowed
,
true
);
},
skip:
isBrowser
);
//
The VM test harness can handle a stack overflow, but
},
skip:
isBrowser
);
//
[intended] The VM test harness can handle a
//
the browser cannot - running this test in a browser will cause it to become
//
stack overflow, but the browser cannot - running this test in a browser
// unresponsive.
//
will cause it to become
unresponsive.
test
(
'Traces from package:stack_trace throw assertion'
,
()
{
test
(
'Traces from package:stack_trace throw assertion'
,
()
{
try
{
try
{
...
...
packages/flutter/test/foundation/stack_trace_test.dart
View file @
962f57f8
...
@@ -16,7 +16,7 @@ void main() {
...
@@ -16,7 +16,7 @@ void main() {
expect
(
filtered
[
0
],
matches
(
r'^#0 +main\.<anonymous closure> \(.*stack_trace_test\.dart:[0-9]+:[0-9]+\)$'
));
expect
(
filtered
[
0
],
matches
(
r'^#0 +main\.<anonymous closure> \(.*stack_trace_test\.dart:[0-9]+:[0-9]+\)$'
));
expect
(
filtered
[
1
],
matches
(
r'^#1 +Declarer\.test\.<anonymous closure>.<anonymous closure> \(package:test_api/.+:[0-9]+:[0-9]+\)$'
));
expect
(
filtered
[
1
],
matches
(
r'^#1 +Declarer\.test\.<anonymous closure>.<anonymous closure> \(package:test_api/.+:[0-9]+:[0-9]+\)$'
));
expect
(
filtered
[
2
],
equals
(
'<asynchronous suspension>'
));
expect
(
filtered
[
2
],
equals
(
'<asynchronous suspension>'
));
}
,
skip:
kIsWeb
);
});
test
(
'FlutterError.defaultStackFilter (async test body)'
,
()
async
{
test
(
'FlutterError.defaultStackFilter (async test body)'
,
()
async
{
final
List
<
String
>
filtered
=
FlutterError
.
defaultStackFilter
(
StackTrace
.
current
.
toString
().
trimRight
().
split
(
'
\n
'
)).
toList
();
final
List
<
String
>
filtered
=
FlutterError
.
defaultStackFilter
(
StackTrace
.
current
.
toString
().
trimRight
().
split
(
'
\n
'
)).
toList
();
...
...
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