Chromium Code Reviews| Index: chrome/test/remoting/http_server/hostpage.html |
| diff --git a/chrome/test/remoting/http_server/hostpage.html b/chrome/test/remoting/http_server/hostpage.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7a9cc63e2ebcb66ecc035142586204043edc7de1 |
| --- /dev/null |
| +++ b/chrome/test/remoting/http_server/hostpage.html |
| @@ -0,0 +1,34 @@ |
| +<html> |
| +<head> |
| + <title>Host Page</title> |
| + <link rel="stylesheet" href="//yui.yahooapis.com/pure/0.4.2/pure-min.css"> |
|
Jamie
2014/03/03 20:56:16
See above re: external URLs.
chaitali
2014/03/04 19:33:45
Done.
|
| + <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> |
| +</head> |
| +<body> |
| + <div class="splash"> |
|
anandc
2014/03/03 21:10:03
Indent by 2 spaces: http://google-styleguide.googl
chaitali
2014/03/04 19:33:45
Done.
|
| + <form class="pure-form pure-form-stacked"> |
| + <fieldset> |
| + <center><textarea id="testtext" rows="10" cols="50" ></textarea></center> |
|
weitao
2014/03/03 21:33:42
Since you rely on tabbing to select the input cont
chaitali
2014/03/04 19:33:45
Done.
|
| + </fieldset> |
| + </form> |
| + </div> |
| + <script> |
|
Jamie
2014/03/03 20:56:16
As with the client page, please pull out the JS in
chaitali
2014/03/04 19:33:45
Done.
|
| + $("#testtext").keypress(function(e) { |
| + if ( e.which == 13 ) { |
|
Jamie
2014/03/03 20:56:16
Nit: No space after '(' or before ')'.
anandc
2014/03/03 21:10:03
Comment indicating 13 == carriage return
chaitali
2014/03/04 19:33:45
Done.
chaitali
2014/03/04 19:33:45
Done.
|
| + var testTextVal = $("#testtext").val(); |
| + var request = $.ajax({ |
| + type: "POST", |
| + url: "/keytest/test", |
| + data: { text: testTextVal } |
| + }); |
| + request.done(function() { |
| + console.log("Sent XHR!"); |
|
Jamie
2014/03/03 20:56:16
Maybe remove these console logs, or replace them w
chaitali
2014/03/04 19:33:45
These are strictly for debugging if the test fails
|
| + }); |
| + request.fail(function(jqXHR, textStatus) { |
| + console.log("Request failed: " + textStatus); |
| + }); |
| + } |
| + }); |
| + </script> |
| +</body> |
| +</html> |