Generate tests

This commit is contained in:
Rick Waldron 2020-09-15 10:53:17 -04:00
parent cbfb7eb96a
commit a92de6fa2d
42 changed files with 70 additions and 0 deletions

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubAggregateError() instanceof AggregateError (Subclass instanceof Heritage)
features: [AggregateError]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubArrayBuffer() instanceof ArrayBuffer (Subclass instanceof Heritage)
features: [TypedArray, ArrayBuffer]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubBigInt64Array() instanceof BigInt64Array (Subclass instanceof Heritage)
features: [TypedArray, BigInt]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubBigUint64Array() instanceof BigUint64Array (Subclass instanceof Heritage)
features: [TypedArray, BigInt]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubDataView() instanceof DataView (Subclass instanceof Heritage)
features: [TypedArray, DataView]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubFloat32Array() instanceof Float32Array (Subclass instanceof Heritage)
features: [TypedArray, Float32Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubFloat64Array() instanceof Float64Array (Subclass instanceof Heritage)
features: [TypedArray, Float64Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubInt16Array() instanceof Int16Array (Subclass instanceof Heritage)
features: [TypedArray, Int16Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubInt32Array() instanceof Int32Array (Subclass instanceof Heritage)
features: [TypedArray, Int32Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubInt8Array() instanceof Int8Array (Subclass instanceof Heritage)
features: [TypedArray, Int8Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubMap() instanceof Map (Subclass instanceof Heritage)
features: [Map]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubPromise() instanceof Promise (Subclass instanceof Heritage)
features: [Promise]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubSet() instanceof Set (Subclass instanceof Heritage)
features: [Set]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubSharedArrayBuffer() instanceof SharedArrayBuffer (Subclass instanceof Heritage)
features: [SharedArrayBuffer]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubUint16Array() instanceof Uint16Array (Subclass instanceof Heritage)
features: [TypedArray, Uint16Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubUint32Array() instanceof Uint32Array (Subclass instanceof Heritage)
features: [TypedArray, Uint32Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubUint8Array() instanceof Uint8Array (Subclass instanceof Heritage)
features: [TypedArray, Uint8Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubUint8ClampedArray() instanceof Uint8ClampedArray (Subclass instanceof Heritage)
features: [TypedArray, Uint8ClampedArray]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubWeakMap() instanceof WeakMap (Subclass instanceof Heritage)
features: [WeakMap]
flags: [generated]
---*/

View File

@ -0,0 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/subclass-builtins/WeakRef.case
// - src/subclass-builtins/default/expression.template
/*---
description: new SubWeakRef() instanceof WeakRef (Subclass instanceof Heritage)
features: [WeakRef]
flags: [generated]
---*/
const Subclass = class extends WeakRef {}
const sub = new Subclass();
assert(sub instanceof Subclass);
assert(sub instanceof WeakRef);

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/expression.template
/*---
description: new SubWeakSet() instanceof WeakSet (Subclass instanceof Heritage)
features: [WeakSet]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubAggregateError() instanceof AggregateError (Subclass instanceof Heritage)
features: [AggregateError]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubArrayBuffer() instanceof ArrayBuffer (Subclass instanceof Heritage)
features: [TypedArray, ArrayBuffer]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubBigInt64Array() instanceof BigInt64Array (Subclass instanceof Heritage)
features: [TypedArray, BigInt]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubBigUint64Array() instanceof BigUint64Array (Subclass instanceof Heritage)
features: [TypedArray, BigInt]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubDataView() instanceof DataView (Subclass instanceof Heritage)
features: [TypedArray, DataView]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubFloat32Array() instanceof Float32Array (Subclass instanceof Heritage)
features: [TypedArray, Float32Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubFloat64Array() instanceof Float64Array (Subclass instanceof Heritage)
features: [TypedArray, Float64Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubInt16Array() instanceof Int16Array (Subclass instanceof Heritage)
features: [TypedArray, Int16Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubInt32Array() instanceof Int32Array (Subclass instanceof Heritage)
features: [TypedArray, Int32Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubInt8Array() instanceof Int8Array (Subclass instanceof Heritage)
features: [TypedArray, Int8Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubMap() instanceof Map (Subclass instanceof Heritage)
features: [Map]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubPromise() instanceof Promise (Subclass instanceof Heritage)
features: [Promise]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubSet() instanceof Set (Subclass instanceof Heritage)
features: [Set]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubSharedArrayBuffer() instanceof SharedArrayBuffer (Subclass instanceof Heritage)
features: [SharedArrayBuffer]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubUint16Array() instanceof Uint16Array (Subclass instanceof Heritage)
features: [TypedArray, Uint16Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubUint32Array() instanceof Uint32Array (Subclass instanceof Heritage)
features: [TypedArray, Uint32Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubUint8Array() instanceof Uint8Array (Subclass instanceof Heritage)
features: [TypedArray, Uint8Array]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubUint8ClampedArray() instanceof Uint8ClampedArray (Subclass instanceof Heritage)
features: [TypedArray, Uint8ClampedArray]
flags: [generated]
---*/

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubWeakMap() instanceof WeakMap (Subclass instanceof Heritage)
features: [WeakMap]
flags: [generated]
---*/

View File

@ -0,0 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/subclass-builtins/WeakRef.case
// - src/subclass-builtins/default/statement.template
/*---
description: new SubWeakRef() instanceof WeakRef (Subclass instanceof Heritage)
features: [WeakRef]
flags: [generated]
---*/
class Subclass extends WeakRef {}
const sub = new Subclass();
assert(sub instanceof Subclass);
assert(sub instanceof WeakRef);

View File

@ -3,6 +3,7 @@
// - src/subclass-builtins/default/statement.template
/*---
description: new SubWeakSet() instanceof WeakSet (Subclass instanceof Heritage)
features: [WeakSet]
flags: [generated]
---*/