Lines Matching refs:aa
465 aa = a.subarray(3);
466 assertInstance(aa, Uint16Array);
467 assertEquals(3, aa.length);
468 assertEquals(6, aa.byteLength);
469 assertEquals(2, aa.BYTES_PER_ELEMENT);
470 assertSame(a.buffer, aa.buffer);
471 aa = a.subarray(3,5);
472 assertInstance(aa, Uint16Array);
473 assertEquals(2, aa.length);
474 assertEquals(4, aa.byteLength);
475 assertEquals(2, aa.BYTES_PER_ELEMENT);
476 assertSame(a.buffer, aa.buffer);
477 aa = a.subarray(4,8);
478 assertInstance(aa, Uint16Array);
479 assertEquals(2, aa.length);
480 assertEquals(4, aa.byteLength);
481 assertEquals(2, aa.BYTES_PER_ELEMENT);
482 assertSame(a.buffer, aa.buffer);
483 aa = a.subarray(9);
484 assertInstance(aa, Uint16Array);
485 assertEquals(0, aa.length);
486 assertEquals(0, aa.byteLength);
487 assertEquals(2, aa.BYTES_PER_ELEMENT);
488 assertSame(a.buffer, aa.buffer);
489 aa = a.subarray(-4);
490 assertInstance(aa, Uint16Array);
491 assertEquals(4, aa.length);
492 assertEquals(8, aa.byteLength);
493 assertEquals(2, aa.BYTES_PER_ELEMENT);
494 assertSame(a.buffer, aa.buffer);
495 aa = a.subarray(-3,-1);
496 assertInstance(aa, Uint16Array);
497 assertEquals(2, aa.length);
498 assertEquals(4, aa.byteLength);
499 assertEquals(2, aa.BYTES_PER_ELEMENT);
500 assertSame(a.buffer, aa.buffer);
501 aa = a.subarray(3,2);
502 assertInstance(aa, Uint16Array);
503 assertEquals(0, aa.length);
504 assertEquals(0, aa.byteLength);
505 assertEquals(2, aa.BYTES_PER_ELEMENT);
506 assertSame(a.buffer, aa.buffer);
507 aa = a.subarray(-3,-4);
508 assertInstance(aa, Uint16Array);
509 assertEquals(0, aa.length);
510 assertEquals(0, aa.byteLength);
511 assertEquals(2, aa.BYTES_PER_ELEMENT);
512 assertSame(a.buffer, aa.buffer);
513 aa = a.subarray(0,-8);
514 assertInstance(aa, Uint16Array);
515 assertEquals(0, aa.length);
516 assertEquals(0, aa.byteLength);
517 assertEquals(2, aa.BYTES_PER_ELEMENT);
518 assertSame(a.buffer, aa.buffer);