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

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

Issue 2775003002: Assign names to VR UI elements for debugging and test. (Closed)
Patch Set: Restore use of UiElementUpdate when adding non-sprite UI elements. Created 3 years, 9 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/resources/vr_shell/vr_shell_ui.js » ('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 a538189806f07ea3550242f6b385602ca9d866a4..cfcc3d6ef9a4b708ded496bd5ebc3f302e18ac0b 100644
--- a/chrome/browser/android/vr_shell/ui_scene_unittest.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_unittest.cc
@@ -225,6 +225,7 @@ TEST(UiScene, AddUiElementFromDictionary) {
base::DictionaryValue dict;
dict.SetInteger("id", 10);
+ dict.SetString("name", "abc");
dict.SetInteger("parentId", 11);
dict.SetBoolean("visible", false);
dict.SetBoolean("hitTestable", false);
@@ -259,6 +260,7 @@ TEST(UiScene, AddUiElementFromDictionary) {
EXPECT_NE(element, nullptr);
EXPECT_EQ(element->id, 10);
+ EXPECT_EQ(element->name, "abc");
EXPECT_EQ(element->parent_id, 11);
EXPECT_EQ(element->visible, false);
EXPECT_EQ(element->hit_testable, false);
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('k') | chrome/browser/resources/vr_shell/vr_shell_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698