libservo: Allow running more than one Servo test in a run (#36532)

A `Servo` instance can only be constructed once per program execution
and cannot be passed between threads. This change adds a special thread
to run `Servo` unit tests. This will allow creating suites of `WebView`
unit tests.

Testing: This change includes a new test.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-04-16 09:54:54 +02:00 committed by GitHub
parent 9aa09d73b5
commit 6bad65a5a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 92 additions and 14 deletions

1
Cargo.lock generated
View file

@ -4306,6 +4306,7 @@ dependencies = [
name = "libservo"
version = "0.0.1"
dependencies = [
"anyhow",
"arboard",
"background_hang_monitor",
"base",