Add unit tests for base class support, and fix some issues.
Review Request #12916 — Created March 24, 2023 and submitted
This change adds a new test suite covering
spinaBaseClassExtends()
(and a lot of common code shared with@spina
).In the process, some typing and runtime issues were found and fixed:
-
Mixins can now mix in static members.
-
Mixins are now applied before processing attributes, allowing for
static members to be mixed in and processed. -
An attribute was unnecessarily set twice when copying static members
to the prototype. -
extend()
is now part of theSpinaClass
interface. -
Some functions now reference
PartialSpinaClass
rather than
SpinaClass
, when working with a class that hasn't yet been fully
processed.
Unit tests pass.
Summary | ID |
---|---|
94d5f3be16d39b57b07d570a54ecefa281110747 |
- Change Summary:
-
Added the missing tests file.
- Commits:
-
Summary ID 9157bf794cc4c6d43c215dae46428acf8922b8d8 94d5f3be16d39b57b07d570a54ecefa281110747 - Diff:
-
Revision 2 (+650 -30)