mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-09 20:42:20 +00:00
Comment out WebGl tests
This commit is contained in:
parent
2e6880c43c
commit
fa1d51fe44
@ -17,28 +17,36 @@ use web_sys::WebGlRenderingContext;
|
|||||||
#[wasm_bindgen(module = "./tests/wasm/element.js")]
|
#[wasm_bindgen(module = "./tests/wasm/element.js")]
|
||||||
extern "C" {
|
extern "C" {
|
||||||
fn new_webgl_rendering_context() -> WebGlRenderingContext;
|
fn new_webgl_rendering_context() -> WebGlRenderingContext;
|
||||||
|
// TODO: Add a function to create another type to test here.
|
||||||
|
// These functions come from element.js
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Uncomment WebGlRenderingContext test...
|
||||||
|
// Currently commented out because WebGl isn't working in geckodriver.
|
||||||
|
// It currently works in chromedriver so if you need to run this in the meantime you can
|
||||||
|
// uncomment this block and run it in using chromedriver.
|
||||||
|
//
|
||||||
|
// CHROMEDRIVER=chromedriver cargo test --manifest-path crates/web-sys/Cargo.toml --target wasm32-unknown-unknown --all-features --test test_webgl_rendering_context_immutable_slices
|
||||||
|
|
||||||
// Ensure that our whitelisted WebGlRenderingContext methods work
|
// Ensure that our whitelisted WebGlRenderingContext methods work
|
||||||
#[wasm_bindgen_test]
|
//#[wasm_bindgen_test]
|
||||||
fn test_webgl_rendering_context_immutable_slices() {
|
//fn test_webgl_rendering_context_immutable_slices() {
|
||||||
// WebGl wasn't working in headless firefox at the time of writing..
|
// let gl = new_webgl_rendering_context();
|
||||||
let gl = new_webgl_rendering_context();
|
//
|
||||||
|
// gl.vertex_attrib1fv_with_f32_array(0, &[1.]);
|
||||||
gl.vertex_attrib1fv_with_f32_array(0, &[1.]);
|
// gl.vertex_attrib2fv_with_f32_array(0, &[1.]);
|
||||||
gl.vertex_attrib2fv_with_f32_array(0, &[1.]);
|
// gl.vertex_attrib3fv_with_f32_array(0, &[1.]);
|
||||||
gl.vertex_attrib3fv_with_f32_array(0, &[1.]);
|
// gl.vertex_attrib4fv_with_f32_array(0, &[1.]);
|
||||||
gl.vertex_attrib4fv_with_f32_array(0, &[1.]);
|
//
|
||||||
|
// gl.uniform1fv_with_f32_array(None, &[1.]);
|
||||||
gl.uniform1fv_with_f32_array(None, &[1.]);
|
// gl.uniform2fv_with_f32_array(None, &[1.]);
|
||||||
gl.uniform2fv_with_f32_array(None, &[1.]);
|
// gl.uniform3fv_with_f32_array(None, &[1.]);
|
||||||
gl.uniform3fv_with_f32_array(None, &[1.]);
|
// gl.uniform4fv_with_f32_array(None, &[1.]);
|
||||||
gl.uniform4fv_with_f32_array(None, &[1.]);
|
//
|
||||||
|
// gl.uniform_matrix2fv_with_f32_array(None, false, &[1.]);
|
||||||
gl.uniform_matrix2fv_with_f32_array(None, false, &[1.]);
|
// gl.uniform_matrix3fv_with_f32_array(None, false, &[1.]);
|
||||||
gl.uniform_matrix3fv_with_f32_array(None, false, &[1.]);
|
// gl.uniform_matrix4fv_with_f32_array(None, false, &[1.]);
|
||||||
gl.uniform_matrix4fv_with_f32_array(None, false, &[1.]);
|
//}
|
||||||
}
|
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
//#[wasm_bindgen_test]
|
//#[wasm_bindgen_test]
|
||||||
|
@ -724,10 +724,6 @@ pub fn public() -> syn::Visibility {
|
|||||||
fn maybe_adjust<'a>(mut idl_type: IdlType<'a>, id: &'a OperationId) -> IdlType<'a> {
|
fn maybe_adjust<'a>(mut idl_type: IdlType<'a>, id: &'a OperationId) -> IdlType<'a> {
|
||||||
let immutable_f32_fns: Vec<&'static str> = vec![
|
let immutable_f32_fns: Vec<&'static str> = vec![
|
||||||
// WebGlRenderingContext
|
// WebGlRenderingContext
|
||||||
"vertexAttrib1fv",
|
|
||||||
"vertexAttrib2fv",
|
|
||||||
"vertexAttrib3fv",
|
|
||||||
"vertexAttrib4fv",
|
|
||||||
"uniform1fv",
|
"uniform1fv",
|
||||||
"uniform2fv",
|
"uniform2fv",
|
||||||
"uniform3fv",
|
"uniform3fv",
|
||||||
@ -735,7 +731,11 @@ fn maybe_adjust<'a>(mut idl_type: IdlType<'a>, id: &'a OperationId) -> IdlType<'
|
|||||||
"uniformMatrix2fv",
|
"uniformMatrix2fv",
|
||||||
"uniformMatrix3fv",
|
"uniformMatrix3fv",
|
||||||
"uniformMatrix4fv",
|
"uniformMatrix4fv",
|
||||||
// TODO: Add another type's functions here
|
"vertexAttrib1fv",
|
||||||
|
"vertexAttrib2fv",
|
||||||
|
"vertexAttrib3fv",
|
||||||
|
"vertexAttrib4fv",
|
||||||
|
// TODO: Add another type's functions here. Leave a comment header with the type name
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut immutable_f32_slice_whitelist: HashSet<&'static str> = HashSet::new();
|
let mut immutable_f32_slice_whitelist: HashSet<&'static str> = HashSet::new();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user