Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 function testNoPodFocuesd() { | |
|
Dan Beam
2016/03/30 17:53:29
Focused
lwchkg
2016/03/31 14:48:16
Done.
| |
| 6 expectEquals(null, document.querySelector('.pod.focused'), | |
| 7 "No pod should be focused."); | |
| 8 } | |
| 9 | |
| 10 function testPodFocuesd(profile_path) { | |
|
Dan Beam
2016/03/30 17:53:28
jsVarsLikeThis (i.e. profile_path -> profilePath)
Dan Beam
2016/03/30 17:53:29
Focused
lwchkg
2016/03/31 14:48:16
Done.
lwchkg
2016/03/31 14:48:16
Done.
| |
| 11 var pods = document.querySelectorAll('.pod.focused'); | |
| 12 assertEquals(1, pods.length, "Exactly one pod should be focused."); | |
| 13 expectEquals(profile_path, pods[0].user.profilePath, | |
| 14 "A wrong pod is focused."); | |
| 15 } | |
| OLD | NEW |