From 6a8e84365420e09d3c11d724d0f8b099db9bf768 Mon Sep 17 00:00:00 2001 From: Horia Iosif Olaru Date: Fri, 10 Jan 2014 03:29:39 +0200 Subject: [PATCH] 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 --- layout/style/test/test_background_blend_mode.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/layout/style/test/test_background_blend_mode.html b/layout/style/test/test_background_blend_mode.html index 4409f200bb53..443fe19409ce 100644 --- a/layout/style/test/test_background_blend_mode.html +++ b/layout/style/test/test_background_blend_mode.html @@ -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); +