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

Unified Diff: chrome/test/data/webui/profile_window_browsertest.js

Issue 1828143002: Profile path is sent instead of an index to focus a user pod (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo and nits Created 4 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/profiles/profile_window_browsertest.cc ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/profile_window_browsertest.js
diff --git a/chrome/test/data/webui/profile_window_browsertest.js b/chrome/test/data/webui/profile_window_browsertest.js
new file mode 100644
index 0000000000000000000000000000000000000000..910d9327a7d861ee334dffbb0dae2265a75247f6
--- /dev/null
+++ b/chrome/test/data/webui/profile_window_browsertest.js
@@ -0,0 +1,15 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function testNoPodFocused() {
+ expectEquals(null, document.querySelector('.pod.focused'),
+ "No pod should be focused.");
+}
+
+function testPodFocused(profilePath) {
+ var pods = document.querySelectorAll('.pod.focused');
+ assertEquals(1, pods.length, "Exactly one pod should be focused.");
+ expectEquals(profilePath, pods[0].user.profilePath,
+ "A wrong pod is focused.");
+}
« no previous file with comments | « chrome/browser/profiles/profile_window_browsertest.cc ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698