diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Remove the auto-submitting selects
Diffstat (limited to '')
-rwxr-xr-xtests/t0301-security.sh8
1 file changed, 4 insertions, 4 deletions
diff --git a/tests/t0301-security.sh b/tests/t0301-security.sh
index 8fce5f4..9a3af3c 100755
--- a/tests/t0301-security.sh
+++ b/tests/t0301-security.sh
@@ -118,12 +118,12 @@ test_expect_success 'non-markdown readme keeps its line structure' '
'
# A Content-Security-Policy without unsafe-inline stops an inline onchange
-# handler from ever running, so the option forms only mark their selects and
-# cgit.js wires the submit up from outside the page.
-test_expect_success 'diff option selects use the autosubmit marker' '
+# handler from ever running, so the option form submits through a plain
+# button and its selects carry no handlers at all.
+test_expect_success 'diff options submit through a button' '
sha=$(git -C repos/foo rev-parse HEAD) &&
cgit_query "url=foo/commit&id=$sha" >tmp &&
- grep "data-autosubmit" tmp &&
+ grep "type=.submit. value=.reload." tmp &&
! grep "onchange" tmp
'