Avoid hard-coded value in test setup and teardown.
Merge pull request #15712 from zuhao/refactor_actionview_javascript_helper_test

Avoid hard-coded value in test setup and teardown.