mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
This introduces a new `ServoTestUtils` namespace with a `forceLayout()` function. This `forceLayout()` function returns an object which currently has an array of the phases ran by layout. Also moves `panic()`, `crashHard()` and `advanceClock()` from `TestBinding` to this new namespace. `TestBinding` is meant to test the bindings generation, but these are more generic helpers for Servo-only tests. Testing: This change adds a series of Servo-only tests that verify the behavior of the new `forceLayout()` function. Tests that rely on the moved interfaces are updated and should continue to pass. Signed-off-by: Luke Warlow <lwarlow@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
19 lines
712 B
Rust
19 lines
712 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
pub(crate) mod layoutresult;
|
|
pub(crate) mod servotestutils;
|
|
pub(crate) mod testbinding;
|
|
pub(crate) mod testbindingiterable;
|
|
pub(crate) mod testbindingmaplikewithinterface;
|
|
pub(crate) mod testbindingmaplikewithprimitive;
|
|
pub(crate) mod testbindingpairiterable;
|
|
pub(crate) mod testbindingproxy;
|
|
pub(crate) mod testbindingsetlikewithinterface;
|
|
pub(crate) mod testbindingsetlikewithprimitive;
|
|
pub(crate) mod testns;
|
|
pub(crate) mod testutils;
|
|
pub(crate) mod testworklet;
|
|
pub(crate) mod testworkletglobalscope;
|