Lines Matching refs:aa

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