From e07fd34fa394864a9d696d4f00b865be5b1b3031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Wed, 14 Oct 2026 22:12:51 -0400 Subject: [PATCH] Documents: time the drawn-lookup test with web_time The component's check bans std Instant; the R4.10 test used it. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/documents/tree/sources.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/tree/sources.rs b/src/documents/tree/sources.rs index 2b27a22..a65a953 100644 --- a/src/documents/tree/sources.rs +++ b/src/documents/tree/sources.rs @@ -378,7 +378,7 @@ mod tests { fn a_long_paragraph_reads_back_in_one_pass() { let source = "x".repeat(40_000); let inline = first(&source); - let started = std::time::Instant::now(); + let started = web_time::Instant::now(); assert_eq!(inline.drawn_at(&source, 5), Some(5)); let took = started.elapsed(); assert!(took.as_millis() < 500, "took {took:?}");