RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.

This commit is contained in:
Adam Ierymenko
2022-06-08 07:32:16 -04:00
parent 373ca30269
commit d5ca4e5f52
12611 changed files with 2898014 additions and 284 deletions

View File

@@ -0,0 +1,34 @@
use wasm_bindgen::prelude::*;
use wasm_bindgen_test::*;
use web_sys::HtmlOptGroupElement;
#[wasm_bindgen(module = "/tests/wasm/element.js")]
extern "C" {
fn new_optgroup() -> HtmlOptGroupElement;
}
#[wasm_bindgen_test]
fn test_optgroup_element() {
let optgroup = new_optgroup();
optgroup.set_disabled(true);
assert_eq!(
optgroup.disabled(),
true,
"Optgroup should be disabled after we set it to be disabled."
);
optgroup.set_disabled(false);
assert_eq!(
optgroup.disabled(),
false,
"Optgroup should not be disabled after we set it to be not-disabled."
);
optgroup.set_label("Group of options below");
assert_eq!(
optgroup.label(),
"Group of options below",
"Optgroup should have the label we gave it."
);
}