Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6219)

Unified Diff: chrome/browser/android/vr_shell/ui_scene_unittest.cc

Issue 2433253002: Add passive and FOV-locked properties to UI elements. (Closed)
Patch Set: Address nits. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_scene_unittest.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene_unittest.cc b/chrome/browser/android/vr_shell/ui_scene_unittest.cc
index 123626f93a51dd019fe389f63f43384cb8a027f5..35e92bb7e827d5d2c165276d642cb193575f3ec8 100644
--- a/chrome/browser/android/vr_shell/ui_scene_unittest.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_unittest.cc
@@ -191,6 +191,8 @@ TEST(UiScene, AddUiElementFromDictionary) {
dict.SetInteger("id", 10);
dict.SetInteger("parentId", 11);
dict.SetBoolean("visible", false);
+ dict.SetBoolean("hitTestable", false);
+ dict.SetBoolean("lockToFov", true);
std::unique_ptr<base::DictionaryValue> copy_rect(new base::DictionaryValue);
copy_rect->SetInteger("x", 100);
@@ -233,6 +235,8 @@ TEST(UiScene, AddUiElementFromDictionary) {
EXPECT_EQ(element->id, 10);
EXPECT_EQ(element->parent_id, 11);
EXPECT_EQ(element->visible, false);
+ EXPECT_EQ(element->hit_testable, false);
+ EXPECT_EQ(element->lock_to_fov, true);
EXPECT_EQ(element->copy_rect.x, 100);
EXPECT_EQ(element->copy_rect.y, 101);
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698