[filesapp] Add DevToolsBrowserTest NavigateToTestFile helper
Add NavigateToTestFile helper: used to navigate chrome/test/data files in-test with usage NavigateToTestFile("test.html"). CanCollectCodeCoverage uses content::ExecJs() to inject/run test JS on the test page. This causes the script to be eval()-ed by ExecJS helper JS code, which adds it to the JS coverage results. Ideally, that would not be case. Denote the test script by kEvalScript as a reminder that it's included in JS coverage results. Some upcoming tests will give examples of controlling a page in-test, that leaves no trace in the coverage results. Tbr: benreich Bug: 1113941 Change-Id: I8df81ded20bc2d67b12f8ee83d9674b48db47065 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2484040 Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#818800}
Showing
Please register or sign in to comment