mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-27 20:15:14 +03:00
230b8f61fd
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
9 lines
183 B
Rust
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());
|
|
}
|