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

Unified Diff: ui/file_manager/gallery/js/test_util.js

Issue 1275323002: Gallery: replace paper-input of rename field with HTMLInputElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « ui/file_manager/gallery/js/gallery.js ('k') | ui/file_manager/integration_tests/remote_call.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/test_util.js
diff --git a/ui/file_manager/gallery/js/test_util.js b/ui/file_manager/gallery/js/test_util.js
index 6aaab65199561ee7c62224caa85540afd279953b..db0fb02b5741d142ba077f70c269355dc7df80e5 100644
--- a/ui/file_manager/gallery/js/test_util.js
+++ b/ui/file_manager/gallery/js/test_util.js
@@ -65,12 +65,10 @@ test.util.sync.changeValue = function(contentWindow, query, newValue) {
* @param {string} newName Name to be newly assigned.
*/
test.util.sync.changeName = function(contentWindow, newName) {
- var nameBox = contentWindow.document.querySelector(
- '.filename-spacer > paper-input');
- // For paper-input, we need to focus on input element inside the component.
- nameBox.inputElement.focus();
+ var nameBox = contentWindow.document.querySelector('.filename-spacer input');
+ nameBox.focus();
nameBox.value = newName;
- nameBox.inputElement.blur();
+ nameBox.blur();
};
// Register the test utils.
« no previous file with comments | « ui/file_manager/gallery/js/gallery.js ('k') | ui/file_manager/integration_tests/remote_call.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698