зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1659523: Wait for SpecialPowers to set pref before running WebGL tests r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D87356
This commit is contained in:
Родитель
df6398ff5c
Коммит
c7f79b6c75
|
@ -56,18 +56,20 @@ if (parent) {
|
|||
} catch (e) {
|
||||
console.log('Warning: No SpecialPowers.');
|
||||
}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function runTest() {
|
||||
var testPath = location.search.substr(1);
|
||||
console.log('testPath: ' + testPath);
|
||||
frameElem.src = testPath;
|
||||
}
|
||||
|
||||
SpecialPowers.pushPrefEnv({"set": [
|
||||
['webgl.force-enabled', true],
|
||||
['webgl.enable-draft-extensions', true],
|
||||
]});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var testPath = location.search.substr(1);
|
||||
console.log('testPath: ' + testPath);
|
||||
frameElem.src = testPath;
|
||||
]}, runTest);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
Загрузка…
Ссылка в новой задаче