Use 'var' instead of implicit globals for JS tests using TEST_F
TEST_F('FooTest', ...) requires 'FooTest' to be a variable on the global object. Instead of using implicit globals, use 'var' and explicitly suppress the presubmit eslint check that bans 'var'. Note that accessibility tests are also declared with 'var' because the AccessibilityTest base class uses TEST_F internally. Bug: none Change-Id: Id299de761a47506664e6d4650b5c5a079531f8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1638738 Commit-Queue: James Cook <jamescook@chromium.org> Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#665281}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment