Remove JS magic for async upload reply

This commit is contained in:
2026-09-13 09:59:37 +02:00
parent 94fd2aa143
commit 252757eb21
3 changed files with 26 additions and 103 deletions
+9
View File
@@ -538,6 +538,15 @@ func TestFormPostRendersHTML(t *testing.T) {
if !strings.Contains(string(page), "Delete token") {
t.Error("the success page does not show the delete token")
}
// The script asks for this same page and writes it into the document it is
// running in, so a fragment would leave the browser with a half a page.
if !strings.HasPrefix(string(page), "<!doctype html>") ||
!strings.Contains(string(page), "</html>") {
t.Error("the success page is not a whole document")
}
if !strings.Contains(string(page), "static/app.js") {
t.Error("the success page does not load the script, so its copy buttons stay dead")
}
}
func TestBasePathMounting(t *testing.T) {