Commit 770acbe7 authored by Russ Cox's avatar Russ Cox

codelab/wiki: fix build

TBR=adg
CC=golang-dev
https://golang.org/cl/4077045
parent e46e1928
#1/bin/bash
#!/bin/bash
./final.bin &
wiki_pid=$!
......@@ -13,11 +13,11 @@ trap cleanup INT
sleep 1
curl -s -o test_edit.out http://localhost:8080/edit/Test
cmp test_edit.out test_edit.good || cleanup 1
diff -u test_edit.out test_edit.good || cleanup 1
curl -s -o /dev/null -d body=some%20content http://localhost:8080/save/Test
cmp Test.txt test_Test.txt.good || cleanup 1
diff -u Test.txt test_Test.txt.good || cleanup 1
curl -s -o test_view.out http://localhost:8080/view/Test
cmp test_view.out test_view.good || cleanup 1
diff -u test_view.out test_view.good || cleanup 1
echo "Passed"
cleanup 0
......
<h1>Editing Test</h1>
<form action="/save/Test" method="POST">
<div><textarea name="Body" rows="20" cols="80"></textarea></div>
<div><textarea name="body" rows="20" cols="80"></textarea></div>
<div><input type="submit" value="Save"></div>
</form>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment