Files app: propagate IN_TEST to dialogs too
Files app dialogs (file picker / save as) aren't opened by background page, thus they didn't get the IN_TEST state forwarded to them. This CL changes Files app background to attach IN_TEST to the dialog during dialog registration. This happens before the UI initialization. This fixes the issue where test functions can't use test-only attributes to select elements in the page, for example when trying to use |navigateWithDirectoryTree| which relies on |full-path-for-testing| attribute. Bug: 903669 Change-Id: I8ad19965cddbc6bd6779c9c6f2710872b830754c Reviewed-on: https://chromium-review.googlesource.com/c/1334992Reviewed-by:Noel Gordon <noel@chromium.org> Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#607935}
Showing
Please register or sign in to comment