mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Issue #6601: Added testcase to ensure we don't regress.
This commit is contained in:
parent
f77c792886
commit
8d08f1156f
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>bufferData and bufferSubData input array type check (issue #6791)</title>
|
<title>bufferData and bufferSubData input array type check (issue #6791, #6601)</title>
|
||||||
<script src="/resources/testharness.js"></script>
|
<script src="/resources/testharness.js"></script>
|
||||||
<script src="/resources/testharnessreport.js"></script>
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -40,5 +40,10 @@ test(function() {
|
||||||
var coordF64 = new Float64Array([ 1.0, 0.0 ]);
|
var coordF64 = new Float64Array([ 1.0, 0.0 ]);
|
||||||
gl.bufferData(gl.ARRAY_BUFFER, coordF64, gl.STATIC_DRAW);
|
gl.bufferData(gl.ARRAY_BUFFER, coordF64, gl.STATIC_DRAW);
|
||||||
gl.bufferSubData(gl.ARRAY_BUFFER, 1, coordF64);
|
gl.bufferSubData(gl.ARRAY_BUFFER, 1, coordF64);
|
||||||
|
|
||||||
|
// Test case for issue #6601
|
||||||
|
var buffer = new ArrayBuffer(8);
|
||||||
|
var dv = new DataView(buffer);
|
||||||
|
gl.bufferData(0, dv, 0);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue