提交 a2c93593 编写于 作者: S sufeng6

fix webgl testcases

Signed-off-by: Nsufeng6 <sufeng6@huawei.com>
上级 e547bf76
......@@ -587,15 +587,16 @@ describe('webgl1Test_webgl3', function() {
//initContext();
console.info('jsWebGL getParameter test start ...' + JSON.stringify(gl));
//设置线宽:
gl.lineWidth(5);
// 获取线宽:
const lineWidthValue = gl.getParameter(gl.LINE_WIDTH);
console.info("lineWidthValue: " + lineWidthValue);
// 获取可用宽度的范围。返回一个Float32Array.
const lineWidthArray = gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE);
console.info("lineWidthArray: " + lineWidthArray);
expect(lineWidthValue).assertEqual(5);
//设置线宽:
const width = Math.max(...lineWidthArray);
gl.lineWidth(width);
// 获取线宽:
const lineWidthValue = gl.getParameter(gl.LINE_WIDTH);
console.info("width: " + width + "lineWidthValue: " + lineWidthValue);
expect(lineWidthValue).assertEqual(width);
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册