Auto merge of #21523 - servo:webgl, r=avadacatavra,jdm

Some more drive-by WebGL fixes and cleanups

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21523)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-08-30 12:23:31 -04:00 committed by GitHub
commit 6f81ed49f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
164 changed files with 452 additions and 2780 deletions

View file

@ -344,11 +344,16 @@ class CGMethodCall(CGThing):
distinguishingIndex = method.distinguishingIndexForArgCount(argCount) distinguishingIndex = method.distinguishingIndexForArgCount(argCount)
# We can't handle unions at the distinguishing index. # We can't handle unions of non-object values at the distinguishing index.
for (returnType, args) in possibleSignatures: for (returnType, args) in possibleSignatures:
if args[distinguishingIndex].type.isUnion(): type = args[distinguishingIndex].type
raise TypeError("No support for unions as distinguishing " if type.isUnion():
"arguments yet: %s", if type.nullable():
type = type.inner
for type in type.flatMemberTypes:
if not (type.isObject() or type.isNonCallbackInterface()):
raise TypeError("No support for unions with non-object variants "
"as distinguishing arguments yet: %s",
args[distinguishingIndex].location) args[distinguishingIndex].location)
# Convert all our arguments up to the distinguishing index. # Convert all our arguments up to the distinguishing index.
@ -388,6 +393,7 @@ class CGMethodCall(CGThing):
interfacesSigs = [ interfacesSigs = [
s for s in possibleSignatures s for s in possibleSignatures
if (s[1][distinguishingIndex].type.isObject() or if (s[1][distinguishingIndex].type.isObject() or
s[1][distinguishingIndex].type.isUnion() or
s[1][distinguishingIndex].type.isNonCallbackInterface())] s[1][distinguishingIndex].type.isNonCallbackInterface())]
# There might be more than one of these; we need to check # There might be more than one of these; we need to check
# which ones we unwrap to. # which ones we unwrap to.
@ -2366,7 +2372,6 @@ def UnionTypes(descriptors, dictionaries, callbacks, typedefs, config):
'dom::bindings::conversions::ConversionBehavior', 'dom::bindings::conversions::ConversionBehavior',
'dom::bindings::conversions::StringificationBehavior', 'dom::bindings::conversions::StringificationBehavior',
'dom::bindings::conversions::root_from_handlevalue', 'dom::bindings::conversions::root_from_handlevalue',
'dom::bindings::error::throw_not_in_union',
'std::ptr::NonNull', 'std::ptr::NonNull',
'dom::bindings::mozmap::MozMap', 'dom::bindings::mozmap::MozMap',
'dom::bindings::root::DomRoot', 'dom::bindings::root::DomRoot',
@ -4450,8 +4455,8 @@ class CGUnionConversionStruct(CGThing):
other.append(booleanConversion[0]) other.append(booleanConversion[0])
conversions.append(CGList(other, "\n\n")) conversions.append(CGList(other, "\n\n"))
conversions.append(CGGeneric( conversions.append(CGGeneric(
"throw_not_in_union(cx, \"%s\");\n" "Ok(ConversionResult::Failure(\"argument could not be converted to any of: %s\".into()))" % ", ".join(names)
"Err(())" % ", ".join(names))) ))
method = CGWrapper( method = CGWrapper(
CGIndenter(CGList(conversions, "\n\n")), CGIndenter(CGList(conversions, "\n\n")),
pre="unsafe fn from_jsval(cx: *mut JSContext,\n" pre="unsafe fn from_jsval(cx: *mut JSContext,\n"

View file

@ -255,14 +255,6 @@ pub unsafe fn report_pending_exception(cx: *mut JSContext, dispatch_event: bool)
} }
} }
/// Throw an exception to signal that a `JSVal` can not be converted to any of
/// the types in an IDL union type.
pub unsafe fn throw_not_in_union(cx: *mut JSContext, names: &'static str) {
assert!(!JS_IsExceptionPending(cx));
let error = format!("argument could not be converted to any of: {}", names);
throw_type_error(cx, &error);
}
/// Throw an exception to signal that a `JSObject` can not be converted to a /// Throw an exception to signal that a `JSObject` can not be converted to a
/// given DOM type. /// given DOM type.
pub unsafe fn throw_invalid_this(cx: *mut JSContext, proto_id: u16) { pub unsafe fn throw_invalid_this(cx: *mut JSContext, proto_id: u16) {

View file

@ -240,14 +240,18 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
self.base.GenerateMipmap(target) self.base.GenerateMipmap(target)
} }
#[allow(unsafe_code)]
/// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5 /// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5
unsafe fn BufferData(&self, cx: *mut JSContext, target: u32, data: *mut JSObject, usage: u32) -> Fallible<()> { fn BufferData(
self.base.BufferData(cx, target, data, usage) &self,
target: u32,
data: Option<ArrayBufferViewOrArrayBuffer>,
usage: u32,
) {
self.base.BufferData(target, data, usage)
} }
/// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5 /// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5
fn BufferData_(&self, target: u32, size: i64, usage: u32) -> Fallible<()> { fn BufferData_(&self, target: u32, size: i64, usage: u32) {
self.base.BufferData_(target, size, usage) self.base.BufferData_(target, size, usage)
} }

View file

@ -154,6 +154,7 @@ impl WebGLBuffer {
impl Drop for WebGLBuffer { impl Drop for WebGLBuffer {
fn drop(&mut self) { fn drop(&mut self) {
self.delete(); self.mark_for_deletion();
assert!(self.is_deleted());
} }
} }

View file

@ -1165,16 +1165,18 @@ impl WebGLRenderingContext {
return return
); );
let array_buffer = handle_potential_webgl_error!(
self,
self.current_vao().element_array_buffer().get().ok_or(InvalidOperation),
return
);
if count > 0 && primcount > 0 { if count > 0 && primcount > 0 {
if let Some(array_buffer) = self.current_vao().element_array_buffer().get() {
// This operation cannot overflow in u64 and we know all those values are nonnegative. // This operation cannot overflow in u64 and we know all those values are nonnegative.
let val = offset as u64 + (count as u64 * type_size as u64); let val = offset as u64 + (count as u64 * type_size as u64);
if val > array_buffer.capacity() as u64 { if val > array_buffer.capacity() as u64 {
return self.webgl_error(InvalidOperation); return self.webgl_error(InvalidOperation);
} }
} else {
return self.webgl_error(InvalidOperation);
}
} }
// TODO(nox): Pass the correct number of vertices required. // TODO(nox): Pass the correct number of vertices required.
@ -1324,19 +1326,6 @@ impl Drop for WebGLRenderingContext {
} }
} }
#[allow(unsafe_code)]
unsafe fn fallible_array_buffer_view_to_vec(
cx: *mut JSContext,
abv: *mut JSObject,
) -> Result<Vec<u8>, Error> {
assert!(!abv.is_null());
typedarray!(in(cx) let array_buffer_view: ArrayBufferView = abv);
match array_buffer_view {
Ok(v) => Ok(v.to_vec()),
Err(_) => Err(Error::Type("Not an ArrayBufferView".to_owned())),
}
}
impl WebGLRenderingContextMethods for WebGLRenderingContext { impl WebGLRenderingContextMethods for WebGLRenderingContext {
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.1 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.1
fn Canvas(&self) -> DomRoot<HTMLCanvasElement> { fn Canvas(&self) -> DomRoot<HTMLCanvasElement> {
@ -1892,52 +1881,44 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
handle_potential_webgl_error!(self, texture.generate_mipmap()); handle_potential_webgl_error!(self, texture.generate_mipmap());
} }
#[allow(unsafe_code)]
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5
unsafe fn BufferData( fn BufferData(
&self, &self,
cx: *mut JSContext,
target: u32, target: u32,
data: *mut JSObject, data: Option<ArrayBufferViewOrArrayBuffer>,
usage: u32, usage: u32,
) -> ErrorResult { ) {
if data.is_null() { let data = match data {
return Ok(self.webgl_error(InvalidValue)); Some(ArrayBufferViewOrArrayBuffer::ArrayBuffer(data)) => data.to_vec(),
} Some(ArrayBufferViewOrArrayBuffer::ArrayBufferView(data)) => data.to_vec(),
None => return self.webgl_error(InvalidValue),
typedarray!(in(cx) let array_buffer: ArrayBuffer = data);
let data_vec = match array_buffer {
Ok(data) => data.to_vec(),
Err(_) => fallible_array_buffer_view_to_vec(cx, data)?,
}; };
let bound_buffer = handle_potential_webgl_error!(self, self.bound_buffer(target), return Ok(())); let bound_buffer = handle_potential_webgl_error!(self, self.bound_buffer(target), return);
let bound_buffer = match bound_buffer { let bound_buffer = match bound_buffer {
Some(bound_buffer) => bound_buffer, Some(bound_buffer) => bound_buffer,
None => return Ok(self.webgl_error(InvalidOperation)), None => return self.webgl_error(InvalidOperation),
}; };
handle_potential_webgl_error!(self, bound_buffer.buffer_data(target, data_vec, usage)); handle_potential_webgl_error!(self, bound_buffer.buffer_data(target, data, usage));
Ok(())
} }
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5
fn BufferData_(&self, target: u32, size: i64, usage: u32) -> ErrorResult { fn BufferData_(&self, target: u32, size: i64, usage: u32) {
let bound_buffer = handle_potential_webgl_error!(self, self.bound_buffer(target), return Ok(())); let bound_buffer = handle_potential_webgl_error!(self, self.bound_buffer(target), return);
let bound_buffer = match bound_buffer { let bound_buffer = match bound_buffer {
Some(bound_buffer) => bound_buffer, Some(bound_buffer) => bound_buffer,
None => return Ok(self.webgl_error(InvalidOperation)), None => return self.webgl_error(InvalidOperation),
}; };
if size < 0 { if size < 0 {
return Ok(self.webgl_error(InvalidValue)); return self.webgl_error(InvalidValue);
} }
// FIXME: Allocating a buffer based on user-requested size is // FIXME: Allocating a buffer based on user-requested size is
// not great, but we don't have a fallible allocation to try. // not great, but we don't have a fallible allocation to try.
let data = vec![0u8; size as usize]; let data = vec![0u8; size as usize];
handle_potential_webgl_error!(self, bound_buffer.buffer_data(target, data, usage)); handle_potential_webgl_error!(self, bound_buffer.buffer_data(target, data, usage));
Ok(())
} }
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5
@ -2757,7 +2738,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.5
fn IsBuffer(&self, buffer: Option<&WebGLBuffer>) -> bool { fn IsBuffer(&self, buffer: Option<&WebGLBuffer>) -> bool {
buffer.map_or(false, |buf| { buffer.map_or(false, |buf| {
self.validate_ownership(buf).is_ok() && buf.target().is_some() && !buf.is_marked_for_deletion() self.validate_ownership(buf).is_ok() && buf.target().is_some() && !buf.is_deleted()
}) })
} }
@ -3643,7 +3624,8 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v, Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v,
}; };
if values.len() < 1 { if values.len() < 1 {
return self.webgl_error(InvalidOperation); // https://github.com/KhronosGroup/WebGL/issues/2700
return self.webgl_error(InvalidValue);
} }
self.vertex_attrib(indx, values[0], 0f32, 0f32, 1f32); self.vertex_attrib(indx, values[0], 0f32, 0f32, 1f32);
} }
@ -3660,7 +3642,8 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v, Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v,
}; };
if values.len() < 2 { if values.len() < 2 {
return self.webgl_error(InvalidOperation); // https://github.com/KhronosGroup/WebGL/issues/2700
return self.webgl_error(InvalidValue);
} }
self.vertex_attrib(indx, values[0], values[1], 0f32, 1f32); self.vertex_attrib(indx, values[0], values[1], 0f32, 1f32);
} }
@ -3677,7 +3660,8 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v, Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v,
}; };
if values.len() < 3 { if values.len() < 3 {
return self.webgl_error(InvalidOperation); // https://github.com/KhronosGroup/WebGL/issues/2700
return self.webgl_error(InvalidValue);
} }
self.vertex_attrib(indx, values[0], values[1], values[2], 1f32); self.vertex_attrib(indx, values[0], values[1], values[2], 1f32);
} }
@ -3694,7 +3678,8 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v, Float32ArrayOrUnrestrictedFloatSequence::UnrestrictedFloatSequence(v) => v,
}; };
if values.len() < 4 { if values.len() < 4 {
return self.webgl_error(InvalidOperation); // https://github.com/KhronosGroup/WebGL/issues/2700
return self.webgl_error(InvalidValue);
} }
self.vertex_attrib(indx, values[0], values[1], values[2], values[3]); self.vertex_attrib(indx, values[0], values[1], values[2], values[3]);
} }

View file

@ -124,8 +124,15 @@ impl WebGLVertexArrayObjectOES {
} }
let context = self.upcast::<WebGLObject>().context(); let context = self.upcast::<WebGLObject>().context();
let buffer = context.array_buffer().ok_or(WebGLError::InvalidOperation)?; let buffer = context.array_buffer();
buffer.increment_attached_counter(); match buffer {
Some(ref buffer) => buffer.increment_attached_counter(),
None if offset != 0 => {
// https://github.com/KhronosGroup/WebGL/pull/2228
return Err(WebGLError::InvalidOperation)
},
_ => {},
}
context.send_command(WebGLCommand::VertexAttribPointer( context.send_command(WebGLCommand::VertexAttribPointer(
index, index,
size, size,
@ -146,7 +153,7 @@ impl WebGLVertexArrayObjectOES {
normalized, normalized,
stride: stride as u8, stride: stride as u8,
offset: offset as u32, offset: offset as u32,
buffer: Some(Dom::from_ref(&*buffer)), buffer: buffer.map(|b| Dom::from_ref(&*b)),
divisor: data.divisor, divisor: data.divisor,
}; };

View file

@ -305,10 +305,7 @@ interface WebGL2RenderingContextBase
/* Buffer objects */ /* Buffer objects */
// WebGL1: // WebGL1:
// BUG: https://github.com/KhronosGroup/WebGL/issues/2216 // BUG: https://github.com/KhronosGroup/WebGL/issues/2216
// FIXME(xanewok): https://github.com/servo/servo/issues/20513 void bufferData(GLenum target, /*[AllowShared]*/ BufferSource? data, GLenum usage);
[Throws]
void bufferData(GLenum target, object? data, GLenum usage);
[Throws]
void bufferData(GLenum target, GLsizeiptr size, GLenum usage); void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
void bufferSubData(GLenum target, GLintptr dstByteOffset, /*[AllowShared]*/ BufferSource srcData); void bufferSubData(GLenum target, GLintptr dstByteOffset, /*[AllowShared]*/ BufferSource srcData);
// WebGL2: // WebGL2:

View file

@ -421,7 +421,8 @@ interface WebGLRenderingContextBase
const GLenum RGB5_A1 = 0x8057; const GLenum RGB5_A1 = 0x8057;
const GLenum RGB565 = 0x8D62; const GLenum RGB565 = 0x8D62;
const GLenum DEPTH_COMPONENT16 = 0x81A5; const GLenum DEPTH_COMPONENT16 = 0x81A5;
const GLenum STENCIL_INDEX = 0x1901; // https://github.com/KhronosGroup/WebGL/pull/2371
// const GLenum STENCIL_INDEX = 0x1901;
const GLenum STENCIL_INDEX8 = 0x8D48; const GLenum STENCIL_INDEX8 = 0x8D48;
const GLenum DEPTH_STENCIL = 0x84F9; const GLenum DEPTH_STENCIL = 0x84F9;
@ -687,10 +688,7 @@ interface WebGLRenderingContext
{ {
// BUG: https://github.com/KhronosGroup/WebGL/issues/2216 // BUG: https://github.com/KhronosGroup/WebGL/issues/2216
// FIXME(xanewok): https://github.com/servo/servo/issues/20513 void bufferData(GLenum target, /*[AllowShared]*/ BufferSource? data, GLenum usage);
[Throws]
void bufferData(GLenum target, object? data, GLenum usage);
[Throws]
void bufferData(GLenum target, GLsizeiptr size, GLenum usage); void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
void bufferSubData(GLenum target, GLintptr offset, /*[AllowShared]*/ BufferSource data); void bufferSubData(GLenum target, GLintptr offset, /*[AllowShared]*/ BufferSource data);

View file

@ -11927,16 +11927,6 @@
[ [
{} {}
] ]
],
"webgl/OWNERS": [
[
{}
]
],
"webgl/common.js": [
[
{}
]
] ]
}, },
"testharness": { "testharness": {
@ -20881,42 +20871,6 @@
"/_mozilla/mozilla/worklets/test_worklet.html", "/_mozilla/mozilla/worklets/test_worklet.html",
{} {}
] ]
],
"webgl/bufferSubData.html": [
[
"/_mozilla/webgl/bufferSubData.html",
{}
]
],
"webgl/compressedTexImage2D.html": [
[
"/_mozilla/webgl/compressedTexImage2D.html",
{}
]
],
"webgl/compressedTexSubImage2D.html": [
[
"/_mozilla/webgl/compressedTexSubImage2D.html",
{}
]
],
"webgl/texImage2D.html": [
[
"/_mozilla/webgl/texImage2D.html",
{}
]
],
"webgl/texSubImage2D.html": [
[
"/_mozilla/webgl/texSubImage2D.html",
{}
]
],
"webgl/uniformMatrixNfv.html": [
[
"/_mozilla/webgl/uniformMatrixNfv.html",
{}
]
] ]
} }
}, },
@ -33008,38 +32962,6 @@
"mozilla/worklets/throw_exception.js": [ "mozilla/worklets/throw_exception.js": [
"6ca4f80fc2728c00848bb4474b62fa3596ed2f18", "6ca4f80fc2728c00848bb4474b62fa3596ed2f18",
"support" "support"
],
"webgl/OWNERS": [
"7507064ad72f41047fe1db39c3cb95da7ffea252",
"support"
],
"webgl/bufferSubData.html": [
"a97df9062d6ea964e500059e155b29604edc21b6",
"testharness"
],
"webgl/common.js": [
"416c21ce9330d3f73576b6b5aa01dab06c5798ee",
"support"
],
"webgl/compressedTexImage2D.html": [
"b0a031add0be018f995e4463114d333a0d9eb85a",
"testharness"
],
"webgl/compressedTexSubImage2D.html": [
"539f9e17f8a811c5acb4f07cf6cbd17015726632",
"testharness"
],
"webgl/texImage2D.html": [
"2f769160dfdeaa3b0a73380e5540b30dfc971489",
"testharness"
],
"webgl/texSubImage2D.html": [
"294b30c7607edc38aed19a31e44c5237eee8b970",
"testharness"
],
"webgl/uniformMatrixNfv.html": [
"f75cbcb99724219224c63d0dc595b1c001298500",
"testharness"
] ]
}, },
"url_base": "/_mozilla/", "url_base": "/_mozilla/",

View file

@ -1 +0,0 @@
@emilio

View file

@ -1,26 +0,0 @@
<!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>

View file

@ -1,13 +0,0 @@
function getGl() {
var c = document.createElement("canvas");
var gl = c.getContext("experimental-webgl");
assert_true(!!gl, "Should be able to get a context.");
return gl;
}
function shouldGenerateGLError(cx, glError, fn) {
test(function() {
fn();
assert_equals(cx.getError(), glError);
}, "Calling " + fn + " should generate a " + glError + " error.");
}

View file

@ -1,30 +0,0 @@
<!doctype html>
<title>compressedTexImage2D</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.8>
<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 COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
var gl = getGl();
var tex = gl.createTexture();
gl.bindTexture(gl.TEXTURE_2D, tex);
shouldGenerateGLError(gl, gl.INVALID_ENUM, function() {
gl.compressedTexImage2D(gl.TEXTURE_2D, 0, COMPRESSED_RGB_S3TC_DXT1_EXT, 4, 4, 0, new Uint8Array(8));
});
shouldGenerateGLError(gl, gl.INVALID_ENUM, function() {
gl.compressedTexImage2D(gl.TEXTURE_2D, 0, COMPRESSED_RGB_S3TC_DXT1_EXT, 4, 4, 0, new Uint8Array(8), null);
});
test(function() {
assert_throws(new TypeError(), function() {
gl.compressedTexImage2D(gl.TEXTURE_2D, 0, COMPRESSED_RGB_S3TC_DXT1_EXT, 4, 4, 0);
});
}, "Should throw a TypeError when passing too few arguments.");
});
</script>

View file

@ -1,30 +0,0 @@
<!doctype html>
<title>compressedTexSubImage2D</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.8>
<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 COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
var gl = getGl();
var tex = gl.createTexture();
gl.bindTexture(gl.TEXTURE_2D, tex);
shouldGenerateGLError(gl, gl.INVALID_ENUM, function() {
gl.compressedTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 10, 10, COMPRESSED_RGB_S3TC_DXT1_EXT, new Uint8Array(8));
});
shouldGenerateGLError(gl, gl.INVALID_ENUM, function() {
gl.compressedTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 10, 10, COMPRESSED_RGB_S3TC_DXT1_EXT, new Uint8Array(8), null);
});
test(function() {
assert_throws(new TypeError(), function() {
gl.compressedTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, 10, 10, COMPRESSED_RGB_S3TC_DXT1_EXT);
});
}, "Should throw a TypeError when passing too few arguments.");
});
</script>

View file

@ -1,20 +0,0 @@
<!doctype html>
<title>texImage2D</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.8>
<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_throws(new TypeError(), function() {
gl.texImage2D(0, 0, 0, 0, 0, window);
});
assert_throws(new TypeError(), function() {
gl.texImage2D(0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
});
});
</script>

View file

@ -1,20 +0,0 @@
<!doctype html>
<title>texSubImage2D</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.8>
<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_throws(new TypeError(), function() {
gl.texSubImage2D(0, 0, 0, 0, 0, 0, window);
});
assert_throws(new TypeError(), function() {
gl.texSubImage2D(0, 0, 0, 0, 0, 0, { get width() { throw 7 }, get height() { throw 7 }, data: new Uint8ClampedArray(10) });
});
});
</script>

View file

@ -1,33 +0,0 @@
<!doctype html>
<title>uniformMatrix*fv</title>
<link rel=author href=mailto:Ms2ger@gmail.com title=Ms2ger>
<link rel=help href=https://www.khronos.org/registry/webgl/specs/latest/#WebGLRenderingContext>
<link rel=help href=http://dev.w3.org/2006/webapi/WebIDL/#es-boolean>
<link rel=help href=http://es5.github.com/#x9.2>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=common.js></script>
<div id=log></div>
<script id="vshader" type="x-shader/x-vertex">
uniform mat2 m2;
uniform mat3 m3;
uniform mat4 m4;
</script>
<script>
var floatArray = function(n) {
var a = [];
for (var i = 0; i < n; ++i) {
a.push(1);
}
return a;
};
[2, 3, 4].forEach(function(n) {
test(function() {
var gl = getGl();
var f = "uniformMatrix" + n + "fv";
var loc = gl.getUniformLocation(gl.createProgram(), "m" + n);
gl[f](loc, { valueOf: function() { throw "Error"; } }, floatArray(n));
}, "Should not throw for " + n);
});
</script>

View file

@ -10571,9 +10571,7 @@
"conformance/canvas/rapid-resizing.html": [ "conformance/canvas/rapid-resizing.html": [
[ [
"/_webgl/conformance/canvas/rapid-resizing.html", "/_webgl/conformance/canvas/rapid-resizing.html",
{ {}
"timeout": "long"
}
] ]
], ],
"conformance/canvas/render-after-resize-test.html": [ "conformance/canvas/render-after-resize-test.html": [
@ -10621,17 +10619,13 @@
"conformance/context/context-creation-and-destruction.html": [ "conformance/context/context-creation-and-destruction.html": [
[ [
"/_webgl/conformance/context/context-creation-and-destruction.html", "/_webgl/conformance/context/context-creation-and-destruction.html",
{ {}
"timeout": "long"
}
] ]
], ],
"conformance/context/context-creation.html": [ "conformance/context/context-creation.html": [
[ [
"/_webgl/conformance/context/context-creation.html", "/_webgl/conformance/context/context-creation.html",
{ {}
"timeout": "long"
}
] ]
], ],
"conformance/context/context-eviction-with-garbage-collection.html": [ "conformance/context/context-eviction-with-garbage-collection.html": [
@ -27576,7 +27570,7 @@
"testharness" "testharness"
], ],
"conformance/canvas/rapid-resizing.html": [ "conformance/canvas/rapid-resizing.html": [
"9991e9beec6e5880a4f939d314acc7a76dd31527", "f423e17f563da0751d96604adc64bbc0537a52bc",
"testharness" "testharness"
], ],
"conformance/canvas/render-after-resize-test.html": [ "conformance/canvas/render-after-resize-test.html": [
@ -27612,11 +27606,11 @@
"testharness" "testharness"
], ],
"conformance/context/context-creation-and-destruction.html": [ "conformance/context/context-creation-and-destruction.html": [
"3ad7a02d79cfbae4b9d7b6f6ee16cdc5d1a829dd", "a3912fcf7eaaf2992ec4a82de0c7262d929b035d",
"testharness" "testharness"
], ],
"conformance/context/context-creation.html": [ "conformance/context/context-creation.html": [
"237258cc9d956acf6b821967c8010db22804e6df", "d8685e48fcb8e5f74132501fa31e00163212be54",
"testharness" "testharness"
], ],
"conformance/context/context-eviction-with-garbage-collection.html": [ "conformance/context/context-eviction-with-garbage-collection.html": [
@ -46420,7 +46414,7 @@
"support" "support"
], ],
"js/js-test-pre.js": [ "js/js-test-pre.js": [
"f2c8167240a232d1a5480a9b7635cc250062bbdb", "294bd4c5a21ccfa8b1ec4369a960304c4b2cf0f6",
"support" "support"
], ],
"js/pnglib.js": [ "js/pnglib.js": [
@ -46636,7 +46630,7 @@
"support" "support"
], ],
"js/webgl-test-utils.js": [ "js/webgl-test-utils.js": [
"5ab8b2cfd0794f3c15d7afad0fe98b0f75cff38b", "0ef194eacc296f083fe86a03cdbdb5f72317b516",
"support" "support"
], ],
"py/lint/LICENSE": [ "py/lint/LICENSE": [

View file

@ -1,6 +1,5 @@
[gl-vertex-attrib-render.html] [gl-vertex-attrib-render.html]
bug: https://github.com/servo/servo/issues/21132 bug: https://github.com/servo/servo/issues/21132
type: testharness
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] [WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL expected: FAIL

View file

@ -1,25 +0,0 @@
[gl-vertex-attrib.html]
[WebGL test #979: getError expected: INVALID_VALUE. Was INVALID_OPERATION : ]
expected: FAIL
[WebGL test #978: getError expected: INVALID_VALUE. Was INVALID_OPERATION : ]
expected: FAIL
[WebGL test #976: getError expected: INVALID_VALUE. Was INVALID_OPERATION : ]
expected: FAIL
[WebGL test #980: getError expected: INVALID_VALUE. Was INVALID_OPERATION : ]
expected: FAIL
[WebGL test #975: getError expected: INVALID_VALUE. Was INVALID_OPERATION : ]
expected: FAIL
[WebGL test #977: getError expected: INVALID_VALUE. Was INVALID_OPERATION : ]
expected: FAIL
[WebGL test #982: getError expected: INVALID_VALUE. Was INVALID_OPERATION : ]
expected: FAIL
[WebGL test #981: getError expected: INVALID_VALUE. Was INVALID_OPERATION : ]
expected: FAIL

View file

@ -1,4 +0,0 @@
[gl-vertexattribpointer.html]
[WebGL test #3: getError expected: NO_ERROR. Was INVALID_OPERATION : vertexAttribPointer should succeed if no buffer is bound and `offset` is zero.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[buffer-data-and-buffer-sub-data.html]
expected: ERROR
[WebGL test #27: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL

View file

@ -1,6 +1,5 @@
[buffer-data-array-buffer-delete.html] [buffer-data-array-buffer-delete.html]
bug: https://github.com/servo/servo/issues/21132 bug: https://github.com/servo/servo/issues/21132
type: testharness
expected: ERROR expected: ERROR
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] [WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL expected: FAIL
@ -8,6 +7,3 @@
[WebGL test #1: gl should be non-null. Was null] [WebGL test #1: gl should be non-null. Was null]
expected: FAIL expected: FAIL
[Overall test]
expected: NOTRUN

View file

@ -1,6 +1,3 @@
[canvas-test.html] [canvas-test.html]
type: testharness
expected: ERROR expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,6 +1,3 @@
[draw-static-webgl-to-multiple-canvas-test.html] [draw-static-webgl-to-multiple-canvas-test.html]
type: testharness
expected: ERROR expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,6 +1,3 @@
[draw-webgl-to-canvas-test.html] [draw-webgl-to-canvas-test.html]
type: testharness
expected: ERROR expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,3 +1,2 @@
[drawingbuffer-static-canvas-test.html] [drawingbuffer-static-canvas-test.html]
type: testharness
expected: CRASH expected: CRASH

View file

@ -1,3 +1,2 @@
[drawingbuffer-test.html] [drawingbuffer-test.html]
type: testharness
expected: CRASH expected: CRASH

View file

@ -1,11 +1,3 @@
[rapid-resizing.html] [rapid-resizing.html]
expected: TIMEOUT disabled: https://github.com/servo/servo/issues/21132
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL
[Overall test]
expected: NOTRUN
[WebGL test #1: context does not exist]
expected: FAIL

View file

@ -1,6 +1,2 @@
[to-data-url-test.html] [to-data-url-test.html]
type: testharness
expected: ERROR expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,7 +0,0 @@
[constants-and-properties.html]
[WebGL test #2: Also found the following extra properties:]
expected: FAIL
[WebGL test #3: STENCIL_INDEX]
expected: FAIL

View file

@ -1,7 +1,3 @@
[context-attribute-preserve-drawing-buffer.html] [context-attribute-preserve-drawing-buffer.html]
bug: https://github.com/servo/servo/issues/21132 bug: https://github.com/servo/servo/issues/21132
type: testharness
expected: ERROR expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,6 +1,5 @@
[context-attributes-alpha-depth-stencil-antialias.html] [context-attributes-alpha-depth-stencil-antialias.html]
bug: https://github.com/servo/servo/issues/21285 bug: https://github.com/servo/servo/issues/21285
type: testharness
[WebGL test #96: redChannels[0\] != 255 && redChannels[0\] != 0 should be true. Was false.] [WebGL test #96: redChannels[0\] != 255 && redChannels[0\] != 0 should be true. Was false.]
expected: FAIL expected: FAIL

View file

@ -1,5 +0,0 @@
[context-creation-and-destruction.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[context-creation.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,6 +1,5 @@
[context-lost.html] [context-lost.html]
bug: https://github.com/servo/servo/issues/15266 bug: https://github.com/servo/servo/issues/15266
type: testharness
[WebGL test #0: gl.isContextLost() should be false. Threw exception TypeError: gl.isContextLost is not a function] [WebGL test #0: gl.isContextLost() should be false. Threw exception TypeError: gl.isContextLost is not a function]
expected: FAIL expected: FAIL

View file

@ -1,6 +1,5 @@
[premultiplyalpha-test.html] [premultiplyalpha-test.html]
bug: https://github.com/servo/servo/issues/21132 bug: https://github.com/servo/servo/issues/21132
type: testharness
expected: ERROR expected: ERROR
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] [WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL expected: FAIL
@ -11,6 +10,3 @@
[WebGL test #2: gl.getContextAttributes().preserveDrawingBuffer should be true. Threw exception TypeError: gl is null] [WebGL test #2: gl.getContextAttributes().preserveDrawingBuffer should be true. Threw exception TypeError: gl is null]
expected: FAIL expected: FAIL
[Overall test]
expected: NOTRUN

View file

@ -1,5 +1,50 @@
[oes-texture-float-with-canvas.html] [oes-texture-float-with-canvas.html]
expected: TIMEOUT expected: ERROR
[Overall test] [WebGL test #31: shouldBe 127,0,0,127\nat (0, 16) expected: 127,0,0,127 was 255,0,0,255]
expected: NOTRUN expected: FAIL
[WebGL test #19: shouldBe 127,0,0,127\nat (0, 0) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #12: shouldBe 0,127,0,127\nat (0, 0) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #15: shouldBe 0,127,0,127\nat (0, 16) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #14: shouldBe 127,0,0,127\nat (0, 0) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #40: shouldBe 0,127,0,127\nat (0, 16) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #34: shouldBe 127,0,0,127\nat (0, 0) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #20: shouldBe 0,127,0,127\nat (0, 16) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #39: shouldBe 127,0,0,127\nat (0, 0) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #11: shouldBe 127,0,0,127\nat (0, 16) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #17: shouldBe 127,0,0,127\nat (0, 16) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #35: shouldBe 0,127,0,127\nat (0, 16) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #37: shouldBe 127,0,0,127\nat (0, 16) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #32: shouldBe 0,127,0,127\nat (0, 0) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #38: shouldBe 0,127,0,127\nat (0, 0) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #18: shouldBe 0,127,0,127\nat (0, 0) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL

View file

@ -1,3 +1,2 @@
[oes-texture-float-with-video.html] [oes-texture-float-with-video.html]
type: testharness
disabled: flaky disabled: flaky

View file

@ -1,5 +1,50 @@
[oes-texture-half-float-with-canvas.html] [oes-texture-half-float-with-canvas.html]
expected: TIMEOUT expected: ERROR
[Overall test] [WebGL test #31: shouldBe 127,0,0,127\nat (0, 16) expected: 127,0,0,127 was 255,0,0,255]
expected: NOTRUN expected: FAIL
[WebGL test #19: shouldBe 127,0,0,127\nat (0, 0) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #12: shouldBe 0,127,0,127\nat (0, 0) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #15: shouldBe 0,127,0,127\nat (0, 16) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #14: shouldBe 127,0,0,127\nat (0, 0) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #40: shouldBe 0,127,0,127\nat (0, 16) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #34: shouldBe 127,0,0,127\nat (0, 0) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #20: shouldBe 0,127,0,127\nat (0, 16) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #39: shouldBe 127,0,0,127\nat (0, 0) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #11: shouldBe 127,0,0,127\nat (0, 16) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #17: shouldBe 127,0,0,127\nat (0, 16) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #35: shouldBe 0,127,0,127\nat (0, 16) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #37: shouldBe 127,0,0,127\nat (0, 16) expected: 127,0,0,127 was 255,0,0,255]
expected: FAIL
[WebGL test #32: shouldBe 0,127,0,127\nat (0, 0) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #38: shouldBe 0,127,0,127\nat (0, 0) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL
[WebGL test #18: shouldBe 0,127,0,127\nat (0, 0) expected: 0,127,0,127 was 0,255,0,255]
expected: FAIL

View file

@ -1,3 +1,2 @@
[oes-texture-half-float-with-video.html] [oes-texture-half-float-with-video.html]
type: testharness
disabled: flaky disabled: flaky

View file

@ -1,2 +1,4 @@
[oes-texture-half-float.html] [oes-texture-half-float.html]
expected: CRASH [WebGL test #72: RGBA/HALF_FLOAT_OES is color renderable but EXT_color_buffer_half_float not exposed]
expected: FAIL

View file

@ -1,25 +0,0 @@
[oes-vertex-array-object.html]
[WebGL test #74: References from unbound VAOs keep Color buffer alive]
expected: FAIL
[WebGL test #65: References from unbound VAOs keep Color buffer alive]
expected: FAIL
[WebGL test #68: References from unbound VAOs keep Color buffer alive]
expected: FAIL
[WebGL test #73: References from unbound VAOs keep Position buffer alive.]
expected: FAIL
[WebGL test #71: References from unbound VAOs keep Color buffer alive]
expected: FAIL
[WebGL test #70: References from unbound VAOs keep Position buffer alive.]
expected: FAIL
[WebGL test #64: References from unbound VAOs keep Position buffer alive.]
expected: FAIL
[WebGL test #67: References from unbound VAOs keep Position buffer alive.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[webgl-compressed-texture-size-limit.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,4 +1,5 @@
[fragcolor-fragdata-invariant.html] [fragcolor-fragdata-invariant.html]
bug: https://github.com/servo/servo/issues/20601
[WebGL test #0: [unexpected fragment shader compile status\] (expected: true) Declaring both gl_FragColor and gl_FragData invariant should succeed.] [WebGL test #0: [unexpected fragment shader compile status\] (expected: true) Declaring both gl_FragColor and gl_FragData invariant should succeed.]
expected: FAIL expected: FAIL

View file

@ -1,6 +1,5 @@
[shader-with-define-line-continuation.frag.html] [shader-with-define-line-continuation.frag.html]
bug: https://github.com/servo/servo/issues/20601 bug: https://github.com/servo/servo/issues/20601
type: testharness
[WebGL test #0: [unexpected link status\] fragment shader that uses line continuation macro should fail] [WebGL test #0: [unexpected link status\] fragment shader that uses line continuation macro should fail]
expected: FAIL expected: FAIL

View file

@ -1,6 +1,5 @@
[shader-with-global-variable-precision-mismatch.html] [shader-with-global-variable-precision-mismatch.html]
bug: https://github.com/servo/servo/issues/20601 bug: https://github.com/servo/servo/issues/20601
type: testharness
[WebGL test #0: [unexpected link status\] mismatching precision for uniforms causes link error (as expected)] [WebGL test #0: [unexpected link status\] mismatching precision for uniforms causes link error (as expected)]
expected: FAIL expected: FAIL

View file

@ -1,6 +1,5 @@
[shaders-with-uniform-structs.html] [shaders-with-uniform-structs.html]
bug: https://github.com/servo/servo/issues/20601 bug: https://github.com/servo/servo/issues/20601
type: testharness
[WebGL test #5: [unexpected link status\] Structures must have the same type definitions (including precision) to be considered the same type.] [WebGL test #5: [unexpected link status\] Structures must have the same type definitions (including precision) to be considered the same type.]
expected: FAIL expected: FAIL

View file

@ -1,6 +1,5 @@
[shaders-with-varyings.html] [shaders-with-varyings.html]
bug: https://github.com/servo/servo/issues/20601 bug: https://github.com/servo/servo/issues/20601
type: testharness
[WebGL test #3: [unexpected link status\] vertex shader with unused varying and fragment shader with used varying must succeed] [WebGL test #3: [unexpected link status\] vertex shader with unused varying and fragment shader with used varying must succeed]
expected: FAIL expected: FAIL

View file

@ -1,2 +0,0 @@
[expando-loss.html]
expected: CRASH

View file

@ -1,21 +0,0 @@
[type-conversion-test.html]
bug: https://github.com/servo/servo/issues/20513
type: testharness
[WebGL test #340: context.bufferData(context.ARRAY_BUFFER, argument, context.STATIC_DRAW) should be undefined. Threw exception TypeError: Not an ArrayBufferView]
expected: FAIL
[WebGL test #407: context.bufferData(context.ARRAY_BUFFER, argument, context.STATIC_DRAW) should be undefined. Threw exception TypeError: Not an ArrayBufferView]
expected: FAIL
[WebGL test #474: context.bufferData(context.ARRAY_BUFFER, argument, context.STATIC_DRAW) should be undefined. Threw exception TypeError: Not an ArrayBufferView]
expected: FAIL
[WebGL test #541: context.bufferData(context.ARRAY_BUFFER, argument, context.STATIC_DRAW) should be undefined. Threw exception TypeError: Not an ArrayBufferView]
expected: FAIL
[WebGL test #608: context.bufferData(context.ARRAY_BUFFER, argument, context.STATIC_DRAW) should be undefined. Threw exception TypeError: Not an ArrayBufferView]
expected: FAIL
[WebGL test #675: context.bufferData(context.ARRAY_BUFFER, argument, context.STATIC_DRAW) should be undefined. Threw exception TypeError: Not an ArrayBufferView]
expected: FAIL

View file

@ -1,3 +1,2 @@
[uninitialized-test.html] [uninitialized-test.html]
type: testharness
disabled: https://github.com/servo/servo/issues/13710 disabled: https://github.com/servo/servo/issues/13710

View file

@ -1,5 +1,5 @@
[methods.html] [methods.html]
type: testharness bug: https://github.com/servo/servo/issues/15266
[WebGL test #0: testOES20Methods] [WebGL test #0: testOES20Methods]
expected: FAIL expected: FAIL

View file

@ -1,3 +1,2 @@
[quickCheckAPI-S_V.html] [quickCheckAPI-S_V.html]
type: testharness disabled: https://github.com/servo/servo/issues/10656
expected: CRASH

View file

@ -1,4 +1,5 @@
[readPixelsBadArgs.html] [readPixelsBadArgs.html]
bug: https://github.com/servo/servo/issues/21522
[WebGL test #1: testReadPixelsSOPIMG] [WebGL test #1: testReadPixelsSOPIMG]
expected: FAIL expected: FAIL

View file

@ -1,4 +1,5 @@
[texImage2DHTML.html] [texImage2DHTML.html]
bug: https://github.com/servo/servo/issues/21522
[WebGL test #1: testTexImage2DNonSOP] [WebGL test #1: testTexImage2DNonSOP]
expected: FAIL expected: FAIL

View file

@ -1,4 +1,5 @@
[texSubImage2DHTML.html] [texSubImage2DHTML.html]
bug: https://github.com/servo/servo/issues/21522
[WebGL test #1: testTexImage2DNonSOP] [WebGL test #1: testTexImage2DNonSOP]
expected: FAIL expected: FAIL

View file

@ -1,4 +0,0 @@
[vertexAttribPointerBadArgs.html]
[WebGL test #0: testVertexAttribPointerVBO]
expected: FAIL

View file

@ -1,5 +1,4 @@
[read-pixels-pack-alignment.html] [read-pixels-pack-alignment.html]
type: testharness
[WebGL test #17: pixel should be 255,102,0,255. Was 0,0,0,0.] [WebGL test #17: pixel should be 255,102,0,255. Was 0,0,0,0.]
expected: FAIL expected: FAIL

View file

@ -1,4 +1,3 @@
[read-pixels-test.html] [read-pixels-test.html]
type: testharness
expected: TIMEOUT
bug: https://github.com/servo/servo/issues/14380 bug: https://github.com/servo/servo/issues/14380
expected: TIMEOUT

View file

@ -1,3 +1,2 @@
[depth-renderbuffer-initialization.html] [depth-renderbuffer-initialization.html]
type: testharness
disabled: https://github.com/servo/servo/issues/13710 disabled: https://github.com/servo/servo/issues/13710

View file

@ -1,6 +1,5 @@
[feedback-loop.html] [feedback-loop.html]
bug: https://github.com/servo/servo/issues/21288 bug: https://github.com/servo/servo/issues/21288
type: testharness
[WebGL test #3: getError expected: INVALID_OPERATION. Was NO_ERROR : after draw with invalid feedback loop] [WebGL test #3: getError expected: INVALID_OPERATION. Was NO_ERROR : after draw with invalid feedback loop]
expected: FAIL expected: FAIL

View file

@ -1,5 +1,4 @@
[framebuffer-object-attachment.html] [framebuffer-object-attachment.html]
type: testharness
expected: CRASH expected: CRASH
[WebGL test #1: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).] [WebGL test #1: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL expected: FAIL

View file

@ -1,9 +1,5 @@
[framebuffer-state-restoration.html] [framebuffer-state-restoration.html]
type: testharness
expected: ERROR expected: ERROR
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] [WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL expected: FAIL
[Overall test]
expected: NOTRUN

View file

@ -1,3 +1,2 @@
[renderbuffer-initialization.html] [renderbuffer-initialization.html]
type: testharness
disabled: https://github.com/servo/servo/issues/13710 disabled: https://github.com/servo/servo/issues/13710

View file

@ -1,3 +1,2 @@
[stencil-renderbuffer-initialization.html] [stencil-renderbuffer-initialization.html]
type: testharness
disabled: https://github.com/servo/servo/issues/13710 disabled: https://github.com/servo/servo/issues/13710

View file

@ -1,4 +0,0 @@
[draw-elements-out-of-bounds.html]
[WebGL test #0: getError expected: INVALID_OPERATION. Was NO_ERROR : after evaluating: gl.drawElements(gl.TRIANGLES, 0, gl.UNSIGNED_BYTE, 0)]
expected: FAIL

View file

@ -1,6 +1,2 @@
[framebuffer-switch.html] [framebuffer-switch.html]
type: testharness
expected: ERROR expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,6 +1,2 @@
[framebuffer-texture-switch.html] [framebuffer-texture-switch.html]
type: testharness
expected: ERROR expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,10 +1,6 @@
[multisample-corruption.html] [multisample-corruption.html]
bug: https://github.com/servo/servo/issues/21132 bug: https://github.com/servo/servo/issues/21132
type: testharness
expected: ERROR expected: ERROR
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] [WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL expected: FAIL
[Overall test]
expected: NOTRUN

View file

@ -3,6 +3,3 @@
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] [WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL expected: FAIL
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[tex-2d-alpha-alpha-unsigned_byte.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,11 +1,98 @@
[tex-2d-luminance-luminance-unsigned_byte.html] [tex-2d-luminance-luminance-unsigned_byte.html]
expected: TIMEOUT expected: ERROR
[WebGL test #1: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255] [WebGL test #1: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL expected: FAIL
[Overall test]
expected: NOTRUN
[WebGL test #0: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255] [WebGL test #0: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL expected: FAIL
[WebGL test #21: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #4: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #9: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 89,89,89,255]
expected: FAIL
[WebGL test #28: shouldBe 127,127,127,255\nat (0, 16) expected: 127,127,127,255 was 26,26,26,255]
expected: FAIL
[WebGL test #7: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #12: shouldBe 127,127,127,255\nat (0, 16) expected: 127,127,127,255 was 26,26,26,255]
expected: FAIL
[WebGL test #29: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 89,89,89,255]
expected: FAIL
[WebGL test #13: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 89,89,89,255]
expected: FAIL
[WebGL test #22: shouldBe 255,255,255,255\nat (0, 0) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #20: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #30: shouldBe 127,127,127,255\nat (0, 0) expected: 127,127,127,255 was 26,26,26,255]
expected: FAIL
[WebGL test #27: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 89,89,89,255]
expected: FAIL
[WebGL test #15: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 89,89,89,255]
expected: FAIL
[WebGL test #3: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #17: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #14: shouldBe 127,127,127,255\nat (0, 0) expected: 127,127,127,255 was 26,26,26,255]
expected: FAIL
[WebGL test #5: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #24: shouldBe 127,127,127,255\nat (0, 16) expected: 127,127,127,255 was 26,26,26,255]
expected: FAIL
[WebGL test #31: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 89,89,89,255]
expected: FAIL
[WebGL test #25: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 89,89,89,255]
expected: FAIL
[WebGL test #8: shouldBe 127,127,127,255\nat (0, 16) expected: 127,127,127,255 was 26,26,26,255]
expected: FAIL
[WebGL test #2: shouldBe 255,255,255,255\nat (0, 0) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #10: shouldBe 127,127,127,255\nat (0, 0) expected: 127,127,127,255 was 26,26,26,255]
expected: FAIL
[WebGL test #18: shouldBe 255,255,255,255\nat (0, 0) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #6: shouldBe 255,255,255,255\nat (0, 0) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #23: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #19: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #16: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #26: shouldBe 127,127,127,255\nat (0, 0) expected: 127,127,127,255 was 26,26,26,255]
expected: FAIL
[WebGL test #11: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 89,89,89,255]
expected: FAIL

View file

@ -1,11 +1,98 @@
[tex-2d-luminance_alpha-luminance_alpha-unsigned_byte.html] [tex-2d-luminance_alpha-luminance_alpha-unsigned_byte.html]
expected: TIMEOUT expected: ERROR
[WebGL test #1: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255] [WebGL test #1: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL expected: FAIL
[Overall test]
expected: NOTRUN
[WebGL test #0: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255] [WebGL test #0: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL expected: FAIL
[WebGL test #31: shouldBe 0,0,0,127\nat (0, 16) expected: 0,0,0,127 was 89,89,89,128]
expected: FAIL
[WebGL test #21: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #8: shouldBe 127,127,127,127\nat (0, 16) expected: 127,127,127,127 was 26,26,26,128]
expected: FAIL
[WebGL test #15: shouldBe 0,0,0,127\nat (0, 16) expected: 0,0,0,127 was 89,89,89,128]
expected: FAIL
[WebGL test #4: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #9: shouldBe 0,0,0,127\nat (0, 0) expected: 0,0,0,127 was 89,89,89,128]
expected: FAIL
[WebGL test #7: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #20: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #30: shouldBe 127,127,127,127\nat (0, 0) expected: 127,127,127,127 was 26,26,26,128]
expected: FAIL
[WebGL test #22: shouldBe 255,255,255,255\nat (0, 0) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #10: shouldBe 127,127,127,127\nat (0, 0) expected: 127,127,127,127 was 26,26,26,128]
expected: FAIL
[WebGL test #5: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #13: shouldBe 0,0,0,127\nat (0, 0) expected: 0,0,0,127 was 89,89,89,128]
expected: FAIL
[WebGL test #3: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #17: shouldBe 0,0,0,255\nat (0, 0) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #11: shouldBe 0,0,0,127\nat (0, 16) expected: 0,0,0,127 was 89,89,89,128]
expected: FAIL
[WebGL test #14: shouldBe 127,127,127,127\nat (0, 0) expected: 127,127,127,127 was 26,26,26,128]
expected: FAIL
[WebGL test #25: shouldBe 0,0,0,127\nat (0, 0) expected: 0,0,0,127 was 89,89,89,128]
expected: FAIL
[WebGL test #24: shouldBe 127,127,127,127\nat (0, 16) expected: 127,127,127,127 was 26,26,26,128]
expected: FAIL
[WebGL test #28: shouldBe 127,127,127,127\nat (0, 16) expected: 127,127,127,127 was 26,26,26,128]
expected: FAIL
[WebGL test #12: shouldBe 127,127,127,127\nat (0, 16) expected: 127,127,127,127 was 26,26,26,128]
expected: FAIL
[WebGL test #27: shouldBe 0,0,0,127\nat (0, 16) expected: 0,0,0,127 was 89,89,89,128]
expected: FAIL
[WebGL test #26: shouldBe 127,127,127,127\nat (0, 0) expected: 127,127,127,127 was 26,26,26,128]
expected: FAIL
[WebGL test #2: shouldBe 255,255,255,255\nat (0, 0) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #29: shouldBe 0,0,0,127\nat (0, 0) expected: 0,0,0,127 was 89,89,89,128]
expected: FAIL
[WebGL test #18: shouldBe 255,255,255,255\nat (0, 0) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #6: shouldBe 255,255,255,255\nat (0, 0) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL
[WebGL test #23: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #19: shouldBe 0,0,0,255\nat (0, 16) expected: 0,0,0,255 was 182,182,182,255]
expected: FAIL
[WebGL test #16: shouldBe 255,255,255,255\nat (0, 16) expected: 255,255,255,255 was 54,54,54,255]
expected: FAIL

View file

@ -1,5 +1,2 @@
[tex-2d-rgb-rgb-unsigned_byte.html] [tex-2d-rgb-rgb-unsigned_byte.html]
expected: TIMEOUT expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,5 +1,2 @@
[tex-2d-rgb-rgb-unsigned_short_5_6_5.html] [tex-2d-rgb-rgb-unsigned_short_5_6_5.html]
expected: TIMEOUT expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,5 +1,2 @@
[tex-2d-rgba-rgba-unsigned_byte.html] [tex-2d-rgba-rgba-unsigned_byte.html]
expected: TIMEOUT expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,5 +1,2 @@
[tex-2d-rgba-rgba-unsigned_short_4_4_4_4.html] [tex-2d-rgba-rgba-unsigned_short_4_4_4_4.html]
expected: TIMEOUT expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,5 +1,2 @@
[tex-2d-rgba-rgba-unsigned_short_5_5_5_1.html] [tex-2d-rgba-rgba-unsigned_short_5_5_5_1.html]
expected: TIMEOUT expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,29 +0,0 @@
[copy-tex-image-2d-formats.html]
type: testharness
[WebGL test #16: Creating framebuffer from ALPHA texture succeeded even though it is not a renderable format]
expected: FAIL
[WebGL test #17: Creating framebuffer from LUMINANCE texture succeeded even though it is not a renderable format]
expected: FAIL
[WebGL test #18: Creating framebuffer from LUMINANCE_ALPHA texture succeeded even though it is not a renderable format]
expected: FAIL
[WebGL test #19: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D ALPHA from RGB]
expected: FAIL
[WebGL test #23: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D LUMINANCE_ALPHA from RGB]
expected: FAIL
[WebGL test #27: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D RGBA from RGB]
expected: FAIL
[WebGL test #44: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D ALPHA from RGB]
expected: FAIL
[WebGL test #48: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D LUMINANCE_ALPHA from RGB]
expected: FAIL
[WebGL test #52: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D RGBA from RGB]
expected: FAIL

View file

@ -1,578 +0,0 @@
[copy-tex-image-and-sub-image-2d.html]
type: testharness
[WebGL test #85: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #90: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #94: at (0, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #95: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #99: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #100: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #104: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #105: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #109: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #110: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #114: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #119: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #133: at (1, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #135: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #138: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #140: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #142: at (0, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #143: at (1, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #144: at (0, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #145: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #147: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #148: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #149: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #150: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #152: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #153: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #154: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #155: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #157: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #158: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #159: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #160: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #162: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #164: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #165: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #167: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #169: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #170: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #174: at (0, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #175: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #179: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #180: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #183: at (1, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #184: at (0, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #185: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #188: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #189: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #190: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #192: at (0, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #193: at (1, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #194: at (0, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #195: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #197: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #198: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #199: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #200: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #202: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #203: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #204: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #205: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #207: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #208: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #209: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #210: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #212: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #213: at (1, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #214: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #215: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #217: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #218: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #219: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #220: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #222: at (0, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #223: at (1, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #224: at (0, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #225: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #227: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #228: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #229: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #230: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #232: at (0, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #233: at (1, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #234: at (0, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #235: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #237: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #238: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #239: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #240: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #242: at (0, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #243: at (1, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #244: at (0, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #245: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #247: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #248: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #249: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #250: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #336: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #341: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #345: at (0, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #346: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #350: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #351: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #355: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #356: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #360: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #361: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #365: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #370: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #384: at (1, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #386: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #389: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #391: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #393: at (0, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #394: at (1, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #395: at (0, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #396: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #398: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #399: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #400: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #401: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #403: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #404: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #405: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #406: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #408: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #409: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #410: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #411: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #413: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #415: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #416: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #418: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #420: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #421: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #425: at (0, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #426: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #430: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #431: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #434: at (1, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #435: at (0, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #436: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #439: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #440: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #441: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #443: at (0, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #444: at (1, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #445: at (0, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #446: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #448: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #449: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #450: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #451: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #453: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #454: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #455: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #456: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #458: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #459: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #460: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #461: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #463: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #464: at (1, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #465: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #466: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #468: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #469: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #470: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #471: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #473: at (0, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #474: at (1, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #475: at (0, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #476: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #478: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #479: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #480: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #481: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #483: at (0, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #484: at (1, 0) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #485: at (0, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #486: at (1, 1) expected: 0,0,0,0 was 0,0,255,255]
expected: FAIL
[WebGL test #488: at (0, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #489: at (1, 0) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #490: at (0, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #491: at (1, 1) expected: 0,0,0,0 was 128,128,128,128]
expected: FAIL
[WebGL test #493: at (0, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #494: at (1, 0) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #495: at (0, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #496: at (1, 1) expected: 0,0,0,0 was 255,0,0,255]
expected: FAIL
[WebGL test #498: at (0, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #499: at (1, 0) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #500: at (0, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL
[WebGL test #501: at (1, 1) expected: 0,0,0,0 was 0,255,0,255]
expected: FAIL

View file

@ -1,9 +0,0 @@
[gl-pixelstorei.html]
type: testharness
expected: ERROR
[WebGL test #0: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
expected: FAIL
[WebGL pixelStorei Test]
expected: FAIL

View file

@ -3,6 +3,3 @@
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas] [WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
expected: FAIL expected: FAIL
[Overall test]
expected: NOTRUN

View file

@ -1,4 +1,5 @@
[texture-copying-feedback-loops.html] [texture-copying-feedback-loops.html]
bug: https://github.com/servo/servo/issues/21288
[WebGL test #3: getError expected: INVALID_OPERATION. Was NO_ERROR : after copyTexImage2D to same texture same level, invalid feedback loop] [WebGL test #3: getError expected: INVALID_OPERATION. Was NO_ERROR : after copyTexImage2D to same texture same level, invalid feedback loop]
expected: FAIL expected: FAIL

View file

@ -1,5 +1,3 @@
[texture-corner-case-videos.html] [texture-corner-case-videos.html]
expected: TIMEOUT disabled: https://github.com/servo/servo/issues/6711
[Overall test]
expected: NOTRUN

View file

@ -1,5 +1,3 @@
[texture-npot-video.html] [texture-npot-video.html]
expected: TIMEOUT disabled: https://github.com/servo/servo/issues/6711
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[texture-size-limit.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,14 +0,0 @@
[origin-clean-conformance.html]
type: testharness
[WebGL test #2: texImage2D with cross-origin image should throw exception.]
expected: FAIL
[WebGL test #3: texSubImage2D with cross-origin image should throw exception.]
expected: FAIL
[WebGL test #7: texImage2D with NON origin clean canvas should throw exception.]
expected: FAIL
[WebGL test #8: texSubImage2D with NON origin clean canvas should throw exception.]
expected: FAIL

View file

@ -0,0 +1 @@
disabled: SVG support is not implemented yet

View file

@ -1,5 +0,0 @@
[tex-2d-alpha-alpha-unsigned_byte.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[tex-2d-luminance-luminance-unsigned_byte.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[tex-2d-luminance_alpha-luminance_alpha-unsigned_byte.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[tex-2d-rgb-rgb-unsigned_byte.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[tex-2d-rgb-rgb-unsigned_short_5_6_5.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[tex-2d-rgba-rgba-unsigned_byte.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[tex-2d-rgba-rgba-unsigned_short_4_4_4_4.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,5 +0,0 @@
[tex-2d-rgba-rgba-unsigned_short_5_5_5_1.html]
expected: TIMEOUT
[Overall test]
expected: NOTRUN

View file

@ -1,6 +0,0 @@
[tex-image-and-sub-image-2d-with-canvas-rgb565.html]
type: testharness
expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,6 +0,0 @@
[tex-image-and-sub-image-2d-with-canvas-rgba4444.html]
type: testharness
expected: ERROR
[Overall test]
expected: NOTRUN

View file

@ -1,6 +0,0 @@
[tex-image-and-sub-image-2d-with-canvas-rgba5551.html]
type: testharness
expected: ERROR
[Overall test]
expected: NOTRUN

Some files were not shown because too many files have changed in this diff Show more