Commit 2b6aa94a authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

Use descendant combinator in copyBetweenWindows browser tests

Use a decendant combinator selector to query for the USB volume: it is
shorter and more idiomatic with other volume selector JS test code.

Test: browser_test --gtest_filter="*FilesApp*copyBetweenWindows*"
Bug: 836254,851888
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I70b9ecad9e57db6a2d0028ba329707c5574710e8
Reviewed-on: https://chromium-review.googlesource.com/1098908Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567077}
parent 96a2efcb
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
/** /**
* Query used to find USB removable volume. * Query used to find USB removable volume.
*/ */
var USB_VOLUME_QUERY = '#directory-tree > .tree-item > .tree-row > ' + const USB_VOLUME_QUERY = '#directory-tree [volume-type-icon="removable"]';
'.item-icon[volume-type-icon="removable"]';
/** /**
* Opens two window of given root paths. * Opens two window of given root paths.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment