Bug 950416 - Set the background-blend-mode pref in test_background_blend_mode.html so it works whether or not it's already enabled, r=roc

This commit is contained in:
Horia Iosif Olaru 2014-01-10 03:29:39 +02:00
Родитель 8fa6f90652
Коммит 6a8e843654
1 изменённых файлов: 9 добавлений и 2 удалений

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

@ -19,7 +19,7 @@
var frame_container = document.getElementById("display");
var noframe_container = document.getElementById("content");
(function test_bug_841601() {
function test_bug_841601() {
// Test handling of background-blend-mode
var p = document.createElement("p");
var cs = getComputedStyle(p, "");
@ -44,7 +44,14 @@ var noframe_container = document.getElementById("content");
"set all blendmodes");
p.parentNode.removeChild(p);
})();
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv({ "set": [["layout.css.background-blend-mode.enabled", true]] },
test_bug_841601);
</script>
</pre>
</body>