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:
David Parks 2020-08-25 21:33:15 +00:00
Родитель df6398ff5c
Коммит c7f79b6c75
1 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -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>