Moving getElementByNameWithParent to common and simplifying.
1.getElementByNameWithParent is a generic function that's not used password_controller.js anymore, so common is the better place for it (it would also allow to test it). 2.isPassword argument is not needed anymore, so function is simpified. 3.Added a test for it. Bug: 782224 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: Ida9a6719f1533d36c4dd468100860046a0db809f Reviewed-on: https://chromium-review.googlesource.com/758402 Commit-Queue: Vadym Doroshenko <dvadym@chromium.org> Reviewed-by:Vaclav Brozek <vabr@chromium.org> Cr-Commit-Position: refs/heads/master@{#518597}
Showing
Please register or sign in to comment