Unverified Commit 962f57f8 authored by Darren Austin's avatar Darren Austin Committed by GitHub

Updated skipped tests for foundation directory. (#87293)

parent 92e02457
...@@ -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.
} }
...@@ -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 {
......
...@@ -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.
} }
...@@ -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.
} }
...@@ -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();
......
...@@ -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 {
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment