Remove JS magic for async upload reply
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user