mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1150944 - Fix gfxPrefs unit test to not rely on skia-gl pref. r=mstange
This commit is contained in:
parent
c666419307
commit
3391470c4d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user