mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 02:33:03 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
Notes:
sideshowbarker
2024-07-18 23:53:55 +09:00
Author: https://github.com/awesomekling
Commit: 13d7c09125
1857 changed files with 266 additions and 274 deletions
|
@ -1,27 +0,0 @@
|
|||
// Update when more typed arrays get added
|
||||
const TYPED_ARRAYS = [
|
||||
Uint8Array,
|
||||
Uint16Array,
|
||||
Uint32Array,
|
||||
Int8Array,
|
||||
Int16Array,
|
||||
Int32Array,
|
||||
Float32Array,
|
||||
Float64Array,
|
||||
];
|
||||
|
||||
test("basic functionality", () => {
|
||||
expect(ArrayBuffer.isView).toHaveLength(1);
|
||||
|
||||
expect(ArrayBuffer.isView()).toBeFalse();
|
||||
expect(ArrayBuffer.isView(null)).toBeFalse();
|
||||
expect(ArrayBuffer.isView(undefined)).toBeFalse();
|
||||
expect(ArrayBuffer.isView([])).toBeFalse();
|
||||
expect(ArrayBuffer.isView({})).toBeFalse();
|
||||
expect(ArrayBuffer.isView(123)).toBeFalse();
|
||||
expect(ArrayBuffer.isView("foo")).toBeFalse();
|
||||
expect(ArrayBuffer.isView(new ArrayBuffer())).toBeFalse();
|
||||
TYPED_ARRAYS.forEach(T => {
|
||||
expect(ArrayBuffer.isView(new T())).toBeTrue();
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue