mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #9065 - simartin:issue_6601_testcase, r=eefriedman
Issue #6601: Added testcase to ensure we don't regress Test case for https://github.com/servo/servo/issues/6601 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9065) <!-- Reviewable:end -->
This commit is contained in:
commit
1073cdb408
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
<!doctype html>
|
||||
<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/testharnessreport.js"></script>
|
||||
<script>
|
||||
|
@ -40,5 +40,10 @@ test(function() {
|
|||
var coordF64 = new Float64Array([ 1.0, 0.0 ]);
|
||||
gl.bufferData(gl.ARRAY_BUFFER, coordF64, gl.STATIC_DRAW);
|
||||
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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue