1
0
mirror of https://github.com/actix/examples synced 2025-02-22 17:23:18 +01:00

Fix yarte test (#229)

The behavior has been changed from c4999d81ed
This commit is contained in:
Yuki Okushi 2020-01-12 19:57:39 +09:00 committed by GitHub
parent 49308b70e5
commit 5cbaa75e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,13 +51,13 @@ mod test {
Bytes::from_static( Bytes::from_static(
"<!DOCTYPE html>\ "<!DOCTYPE html>\
<html>\ <html>\
<head><meta charset=\"utf-8\" /><title>Actix web</title></head><body>\ <head><meta charset=\"utf-8\"><title>Actix web</title></head><body>\
<h1 id=\"welcome\" class=\"welcome\">Welcome!</h1><div>\ <h1 id=\"welcome\" class=\"welcome\">Welcome!</h1><div>\
<h3>What is your name?</h3>\ <h3>What is your name?</h3>\
<form>\ <form>\
Name: <input type=\"text\" name=\"name\" />\ Name: <input type=\"text\" name=\"name\">\
<br/>Last name: <input type=\"text\" name=\"lastname\" />\ <br>Last name: <input type=\"text\" name=\"lastname\">\
<br/><p><input type=\"submit\"></p></form>\ <br><p><input type=\"submit\"></p></form>\
</div>\ </div>\
</body></html>" </body></html>"
.as_ref() .as_ref()
@ -80,7 +80,7 @@ mod test {
Bytes::from_static( Bytes::from_static(
"<!DOCTYPE html>\ "<!DOCTYPE html>\
<html>\ <html>\
<head><meta charset=\"utf-8\" /><title>Actix web</title></head>\ <head><meta charset=\"utf-8\"><title>Actix web</title></head>\
<body>\ <body>\
<h1>Hi, foo bar!</h1><p id=\"hi\" class=\"welcome\">Welcome</p>\ <h1>Hi, foo bar!</h1><p id=\"hi\" class=\"welcome\">Welcome</p>\
</body></html>" </body></html>"
@ -113,13 +113,13 @@ mod test {
Bytes::from_static( Bytes::from_static(
"<!DOCTYPE html>\ "<!DOCTYPE html>\
<html>\ <html>\
<head><meta charset=\"utf-8\" /><title>Actix web</title></head><body>\ <head><meta charset=\"utf-8\"><title>Actix web</title></head><body>\
<h1 id=\"welcome\" class=\"welcome\">Welcome!</h1><div>\ <h1 id=\"welcome\" class=\"welcome\">Welcome!</h1><div>\
<h3>What is your name?</h3>\ <h3>What is your name?</h3>\
<form>\ <form>\
Name: <input type=\"text\" name=\"name\" />\ Name: <input type=\"text\" name=\"name\">\
<br/>Last name: <input type=\"text\" name=\"lastname\" />\ <br>Last name: <input type=\"text\" name=\"lastname\">\
<br/><p><input type=\"submit\"></p></form>\ <br><p><input type=\"submit\"></p></form>\
</div>\ </div>\
</body></html>" </body></html>"
.as_ref() .as_ref()