Cause of the CI failures on 212090fd7a:
- main's dialogs::new_document test a_presets_rows_reach_the_document_create_makes
sets artboardLayout.rows to 3.6 and expects 4, but this branch refused a
rows value that was not a whole number. rows now rounds like columns and is
still refused outside 1 to 1000.
- script_host_vs_scriptcheck listed Document.prototype.pathItems=, the
setter of main's placeholder. This branch makes pathItems a read-only
collection, like pageItems, so the row goes.
vectorcraft-ui-egui's tests were one leg that set the pull request run's
length (33.2 min median over 20 runs: about 19 min compiling and 11.9 min
running 5,288 tests). The gate now has six legs. Shards 1 and 2 each
build vectorcraft-ui-egui's tests and run half of them with nextest's
count partition. Each part also runs its own pinned slow tests, so the
slowest tests do not land on one leg. Part 1 alone runs the doctests and
the i18n report, and `cargo xtask ci warm` builds the split once.
Before running, a part lists the tests and stops with an error when a
pinned test name no longer exists. The xtask shard tests check that
every test of a split runs on exactly one part.
The nightly signing policy and its preparation doc list the new job
names (`test N/6`).
symbol.options recorded an undo step and moved the revision whenever any
option was passed, unless only alignToPixelGrid was given with the value
the symbol already had. A newName equal to the current name, or a
registration, export type, 9-slice, type or pixel grid value the symbol
already has, now leaves the document and its undo history as they are.
symbol.replace with the symbol the instances already show recorded an
undo step too. It now records one only when an instance changes.
Both run through colorcmds::edit_if_changed, as the Symbol Shifter and
the other symbolism tools do.
With an object of a dynamic symbol instance selected by Direct Selection,
transparency.set without ids changes that object's opacity and blend mode
for the instance, and the Transparency panel shows those values. The
transparency.info command still reported the instance's own opacity and
blend mode. Without ids or id it now returns the panel's values
(Session::transparency_info), so it reports the part's opacity and blend
mode with the instance's isolate and knockout. With ids or id it still
reports those objects.
The Libraries panel accepted a swatch row dragged before File › Revert and added the restored swatch of that name. Membership::grabbed now refuses stale rows, for the hover marker and on release.
A sliver at 0% opacity, or inside a group or layer at 0% opacity, paints
nothing, so Clean Up and Select > Object > Hairline Slivers now skip it.
The params text and docs/mcp.md say so, and docs/mcp.md also names what a
group or compound path used as a clipping path holds among the objects
both commands leave.
#9931 refused an appearance carried across File › Revert. Graphic styles,
brushes, symbols, swatch rows and appearance stack rows had the same fault:
a held drag still resolved a name or id against the restored contents.
- Graphic style, brush, symbol and swatch drags carry the document's revert
count, and the canvas, the panels, the Fill/Stroke wells and the Gradient
slider refuse a drag from before the revert.
- The Brushes panel shows no reorder marker for a stale brush drag.
- docs/mcp.md says which drops File › Revert cancels.
Follows #9931 by @dotCooCoo.
app.redraw() changes nothing, so docs/mcp.md now describes it on its own. The undo step a run
leaves is stated for documents that were open before the run and are still open after it.
main's own indexer tests already check the receiver's and the key's limits.
The progress lines for the ES5 language runs, the ECMAScript 2015
collections and binary data runs, and the generator runs gave counts from
before later changes. On main at 0ac2b74614, cargo xtask test262 reports
4,676 of 4,682 ES5 language runs, 1,514 of 1,514 collection and binary
data runs, and 1,285 of 1,289 generator runs (669 tests) passing. The
generator tests that use classes now parse, so the 4 remaining generator
failures are the caller and arguments restrictions.
In a .js script, `class B extends A { m() { return eval("super.x"); } }`
and `class B extends A { constructor() { eval("super()"); } }` threw a
SyntaxError: eval code was parsed with only `new.target` allowed, never
`super` (ECMA-262 2015 section 18.2.1.1).
Each compiled code now records what `super` and `new.target` may do in
eval code it runs: the rules of its function's body, the rules of the
code around an arrow function, or the rules the eval code itself was read
with. A direct eval parses its code with the caller's rules, so
`super.name` and `super[key]` work inside a method, accessor or class
constructor, and `super(...)` works inside a derived class's
constructor, also from an arrow function or a nested eval there. A plain
function inside a method, the top of a script, an indirect eval and a
`Function` body still give a SyntaxError. `super(...)` in eval code binds
`this` once; a second call is a ReferenceError.
Two tests in es2015_tests.rs cover the allowed and SyntaxError cases and
fail without the change; a third checks that a `Function` body reads its
own `new.target`. docs/mcp.md describes the rule. Follows #9094.