Merge pull request #2118 from dotCooCoo/fix/alt-drag-tests-created-stamp

Tests: the Alt-drag tests no longer fail when their documents are made in different seconds
This commit is contained in:
BFlat
2026-10-16 02:35:13 +07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ use super::*;
/// An 800 × 600 document with a two-point grid and a rectangle attached to the right plane.
pub(crate) fn persp_session() -> (Session, NodeId) {
let mut s = Session::new();
s.execute("file.new", &json!({"width": 800, "height": 600})).unwrap();
// Separately created fixtures must compare equal across clock ticks.
s.execute("file.new", &json!({"width": 800, "height": 600, "created": null})).unwrap();
s.execute("perspective.grid.preset", &json!({"kind": 2})).unwrap();
// Snap to Grid (on by default) would land moved edges on gridlines: these tests measure exact moves.
s.execute("perspective.grid.snap", &json!({"on": false})).unwrap();
+2 -1
View File
@@ -9,7 +9,8 @@ use super::*;
fn session() -> Session {
let mut s = Session::new();
s.execute("file.new", &json!({"width": 800, "height": 600})).unwrap();
// Separately created fixtures must compare equal across clock ticks.
s.execute("file.new", &json!({"width": 800, "height": 600, "created": null})).unwrap();
s
}