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:
vsm@google.com 2013-05-30 18:47:16 +00:00
parent 9a9db6b3eb
commit c40784b4c2
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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);