servo 0.1.0

A component of the servo web-engine.
Documentation
/* 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/. */

//! Servo API unit tests.
//!
//! Since all Servo tests must run serially on the same thread, it is important
//! that tests never panic. In order to ensure this, use `anyhow::ensure!` instead
//! of `assert!` for test assertions. `ensure!` will produce a `Result::Err` in
//! place of panicking.

#[expect(dead_code)]
mod common;

use common::ServoTest;

#[test]
fn test_simple_start_and_stop_servo() {
    // The drop implementation of `Servo` will trigger the shutdown processs and also spin the
    // event loop until shutdown is complete.
    ServoTest::new();
}