mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1087560 - Fix tests. - r=kamidphish
This commit is contained in:
parent
a448ea8faf
commit
8e05002568
@ -4,11 +4,11 @@ support-files =
|
||||
webgl-mochitest/webgl-util.js
|
||||
|
||||
[webgl-mochitest/test_backbuffer_channels.html]
|
||||
[webgl-mochitest/test_hidden_alpha.html]
|
||||
[webgl-mochitest/test_depth_readpixels.html]
|
||||
[webgl-mochitest/test_draw.html]
|
||||
[webgl-mochitest/test_fb_param.html]
|
||||
[webgl-mochitest/test_fb_param_crash.html]
|
||||
[webgl-mochitest/test_hidden_alpha.html]
|
||||
[webgl-mochitest/test_highp_fs.html]
|
||||
[webgl-mochitest/test_no_arr_points.html]
|
||||
[webgl-mochitest/test_noprog_draw.html]
|
||||
|
@ -48,6 +48,11 @@ function todo(val, text) {
|
||||
: 'Test <font color=\\'blue\\' >todo</font>: ';
|
||||
debug(status + text);
|
||||
}
|
||||
|
||||
SimpleTest = {
|
||||
waitForExplicitFinish: function() {},
|
||||
finish: function() {},
|
||||
};
|
||||
</script>
|
||||
<div id='mochi-to-testcase-output'></div>
|
||||
\n'''
|
||||
|
@ -8,7 +8,7 @@
|
||||
<script>
|
||||
|
||||
function TestAttribs(attribs) {
|
||||
debug('Testing attribs: ' + JSON.stringify(attribs));
|
||||
ok(true, 'Testing attribs: ' + JSON.stringify(attribs));
|
||||
var canvas = document.createElement('canvas');
|
||||
var gl = canvas.getContext('experimental-webgl', attribs);
|
||||
ok(gl, 'No tested attribs should result in failure to create a context');
|
||||
|
@ -77,7 +77,7 @@ function Test(gl, prog) {
|
||||
|
||||
//////////////////
|
||||
|
||||
debug('clear(R,G,B,0)');
|
||||
ok(true, 'clear(R,G,B,0)');
|
||||
|
||||
Reset(gl);
|
||||
|
||||
@ -102,7 +102,7 @@ function Test(gl, prog) {
|
||||
|
||||
//////////////////
|
||||
|
||||
debug('mask(R,G,B,0), clear(R,G,B,1)');
|
||||
ok(true, 'mask(R,G,B,0), clear(R,G,B,1)');
|
||||
|
||||
Reset(gl);
|
||||
|
||||
@ -129,6 +129,7 @@ function Test(gl, prog) {
|
||||
'toDataURL should be unchanged after blending.');
|
||||
|
||||
ok(true, 'Test complete.');
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
(function(){
|
||||
@ -146,6 +147,7 @@ function Test(gl, prog) {
|
||||
ok(prog, 'Program should link.');
|
||||
prog.aPosCoord = gl.getAttribLocation(prog, 'aPosCoord');
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
setTimeout(function(){ Test(gl, prog); }, 500);
|
||||
})();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user