mirror of
https://github.com/dart-lang/sdk
synced 2024-09-23 04:33:44 +00:00
Changed Uint8ClampedList to implement Uint8List
This matches the typed array spec / behavior. R=asiva@google.com Review URL: https://codereview.chromium.org//14316008 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23435 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
9a9db6b3eb
commit
c40784b4c2
|
@ -430,7 +430,7 @@ abstract class Uint8List implements List<int>, TypedData {
|
|||
* more space- and time-efficient than the default [List] implementation.
|
||||
* Indexed store clamps the value to range 0..0xFF.
|
||||
*/
|
||||
abstract class Uint8ClampedList implements List<int>, TypedData {
|
||||
abstract class Uint8ClampedList implements Uint8List {
|
||||
/**
|
||||
* Creates a [Uint8ClampedList] of the specified length (in elements), all of
|
||||
* whose elements are initially zero.
|
||||
|
|
|
@ -30,7 +30,7 @@ void testCreateClampedUint8TypedData() {
|
|||
|
||||
typed_data = new Uint8ClampedList(0);
|
||||
Expect.isTrue(typed_data is Uint8ClampedList);
|
||||
Expect.isFalse(typed_data is Uint8List);
|
||||
Expect.isTrue(typed_data is Uint8List);
|
||||
Expect.equals(0, typed_data.length);
|
||||
Expect.equals(0, typed_data.lengthInBytes);
|
||||
|
||||
|
|
Loading…
Reference in a new issue