Skip to content

Commit

Permalink
Issue #6601: Added testcase to ensure we don't regress.
Browse files Browse the repository at this point in the history
  • Loading branch information
simartin committed Dec 24, 2015
1 parent f77c792 commit 8d08f11
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/wpt/mozilla/tests/mozilla/webgl/bufferData.html
@@ -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>
Expand Down Expand Up @@ -40,5 +40,10 @@
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>

0 comments on commit 8d08f11

Please sign in to comment.