Bug 1150944 - Fix gfxPrefs unit test to not rely on skia-gl pref. r=mstange

This commit is contained in:
Matt Woodrow 2015-07-29 16:35:55 -04:00
parent c666419307
commit 3391470c4d

View File

@ -25,7 +25,7 @@ TEST(GfxPrefs, LiveValues) {
ASSERT_TRUE(gfxPrefs::SingletonExists());
// Live boolean, default false
ASSERT_FALSE(gfxPrefs::CanvasAzureAccelerated());
ASSERT_FALSE(gfxPrefs::LayersDumpTexture());
// Live int32_t, default 23456
ASSERT_TRUE(gfxPrefs::LayerScopePort() == 23456);
@ -66,11 +66,11 @@ TEST(GfxPrefs, Set) {
ASSERT_FALSE(gfxPrefs::LayersDump());
// Live boolean, default false
ASSERT_FALSE(gfxPrefs::CanvasAzureAccelerated());
gfxPrefs::SetCanvasAzureAccelerated(true);
ASSERT_TRUE(gfxPrefs::CanvasAzureAccelerated());
gfxPrefs::SetCanvasAzureAccelerated(false);
ASSERT_FALSE(gfxPrefs::CanvasAzureAccelerated());
ASSERT_FALSE(gfxPrefs::LayersDumpTexture());
gfxPrefs::SetLayersDumpTexture(true);
ASSERT_TRUE(gfxPrefs::LayersDumpTexture());
gfxPrefs::SetLayersDumpTexture(false);
ASSERT_FALSE(gfxPrefs::LayersDumpTexture());
// Once float, default -1
ASSERT_TRUE(gfxPrefs::APZMaxVelocity() == -1.0f);