4 <meta charset='utf-
8'
/>
6 WebGL Conformance Test Suite Single Test Wrapper
8 <link rel='stylesheet' type='text/css' href='iframe-passthrough.css'
/>
11 <iframe id='test-frame'
></iframe>
15 var frameElem
= document
.getElementById('test-frame');
17 ////////////////////////////////////////////////////////////////////////
19 window
.webglTestHarness
= {
20 reportResults(pathname
, success
, message
) {
22 parent
.ok(success
, message
);
24 console
.log('ok(' + success
+ ', \'' + message
+ '\')');
28 notifyFinished(testPath
) {
29 console
.error('webglTestHarness.notifyFinished');
31 parent
.SimpleTest
.finish();
33 console
.log('SimpleTest.finish()');
39 parent
.SimpleTest
.waitForExplicitFinish();
40 parent
.SimpleTest
.requestFlakyTimeout('untriaged');
43 let timeoutLengthMultiplier
;
44 if (navigator
.appVersion
.includes('Android')) {
45 // From layout/tools/reftest/reftest.js:
46 var version
= SpecialPowers
.Services
.sysinfo
.getProperty('version');
47 var kAndroidVersion2_3
= 9;
48 if (version
== kAndroidVersion2_3
) {
49 timeoutLengthMultiplier
= 2.0;
51 } else if (SpecialPowers
.Services
.sysinfo
.getProperty('isMinGW')) {
52 timeoutLengthMultiplier
= 2.0;
54 if (timeoutLengthMultiplier
) {
55 parent
.SimpleTest
.requestLongerTimeout(timeoutLengthMultiplier
);
58 console
.error('Warning: No SpecialPowers.');
62 ////////////////////////////////////////////////////////////////////////
65 var testPath
= location
.search
.substr(1);
66 console
.log('testPath: ' + testPath
);
67 frameElem
.src
= testPath
;
70 SpecialPowers
.pushPrefEnv({"set": [
71 ['media.rvfc.enabled', true],
72 ['webgl.force-enabled', true],
73 ['webgl.enable-draft-extensions', true],