gloo-console 0.4.0

Convenience crate for working with browser's console
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Test suite for the Web and headless browsers.

#![cfg(target_arch = "wasm32")]

use gloo_console::Timer;
use wasm_bindgen_test::*;

wasm_bindgen_test_configure!(run_in_browser);

#[wasm_bindgen_test]
fn scoped_timer_returns_value() {
    let value = Timer::scope("foo", || true);

    assert!(value);
}