wasm-bindgen/crates/web-sys/tests/wasm/indexeddb.rs
Alex Crichton 230b8f61fd Fix WebIDL mixin attributes on Window
Previously the "container attribute" were set to the attributes of the
mixin itself, but we want the container attributes to be that of the
type which includes the mixin (like `Window`) as those attributes
contain information about whether or not bindings are `structural`.

The end result with this is that the `structural` tag is now used for
properties on `Window`, correctly generating setters/getters.

Closes #904
2018-09-28 21:41:48 -07:00

9 lines
183 B
Rust

use wasm_bindgen_test::*;
use web_sys;
#[wasm_bindgen_test]
fn accessor_works() {
let window = web_sys::window().unwrap();
assert!(window.indexed_db().unwrap().is_some());
}