Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: chrome/test/remoting/http_server/hostpage.html

Issue 180273015: Simple HTTP server for Chromoting End-to-End tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698