Revision f9bf37fb19a7be5c0b4054a4e747f2f9353cf996 authored by Mike West on 14 October 2016, 07:25:41 UTC, committed by GitHub on 14 October 2016, 07:25:41 UTC
* Referrer Policy: Test image loads inside srcdoc frames. This patch teaches the 'img-tag'-style tests to load an image both in the top-level document, and inside a 'srcdoc' frame. The referrer should be the same in both places. Addresses w3c/web-platform-tests#2851. * fixup whitespace * fixup console.log
1 parent 4e45bce
bufferSubData.html
<!doctype html>
<title>bufferSubData</title>
<link rel=author href=mailto:Ms2ger@gmail.com title=Ms2ger>
<link rel=help href=https://www.khronos.org/registry/webgl/specs/latest/#5.14.5>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=common.js></script>
<div id=log></div>
<script>
test(function() {
var gl = getGl();
assert_equals(gl.getError(), WebGLRenderingContext.NO_ERROR);
var b = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, b);
var a = new Float32Array(1);
gl.bufferData(gl.ARRAY_BUFFER, a, gl.STATIC_DRAW);
var nan = 0 / 0;
gl.bufferSubData(gl.ARRAY_BUFFER, nan, a);
assert_equals(gl.getError(), WebGLRenderingContext.NO_ERROR);
});
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...