mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
Handle [Unforgeable] on interfaces
In addition to handling it on methods look like it also shows up on interfaces! Closes #780
This commit is contained in:
56
crates/web-sys/tests/wasm/location.rs
Normal file
56
crates/web-sys/tests/wasm/location.rs
Normal file
@ -0,0 +1,56 @@
|
||||
use wasm_bindgen_test::*;
|
||||
use web_sys::Window;
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn href() {
|
||||
let loc = Window::location();
|
||||
loc.href().unwrap();
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn origin() {
|
||||
let loc = Window::location();
|
||||
loc.origin().unwrap();
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn protocol() {
|
||||
let loc = Window::location();
|
||||
loc.protocol().unwrap();
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn host() {
|
||||
let loc = Window::location();
|
||||
loc.host().unwrap();
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn hostname() {
|
||||
let loc = Window::location();
|
||||
loc.hostname().unwrap();
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn port() {
|
||||
let loc = Window::location();
|
||||
loc.port().unwrap();
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn pathname() {
|
||||
let loc = Window::location();
|
||||
loc.pathname().unwrap();
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn search() {
|
||||
let loc = Window::location();
|
||||
loc.search().unwrap();
|
||||
}
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn hash() {
|
||||
let loc = Window::location();
|
||||
loc.hash().unwrap();
|
||||
}
|
@ -52,3 +52,4 @@ pub mod title_element;
|
||||
pub mod xpath_result;
|
||||
pub mod dom_point;
|
||||
pub mod performance;
|
||||
pub mod location;
|
||||
|
Reference in New Issue
Block a user