[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.17-1283-gcf603cf
ap at apple.com
ap at apple.com
Tue Jan 5 23:43:53 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit 217fdca40254e183cb0a207b0fddf3bbf0fa8438
Author: ap at apple.com <ap at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Dec 7 22:35:17 2009 +0000
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=32244
Test sending and receiving small WebSocket messages of different lengths
* websocket/tests/frame-lengths-expected.txt: Added.
* websocket/tests/frame-lengths.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index c3afb6a..efd5012 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,13 @@
+2009-12-07 Alexey Proskuryakov <ap at apple.com>
+
+ Reviewed by Darin Adler.
+
+ https://bugs.webkit.org/show_bug.cgi?id=32244
+ Test sending and receiving small WebSocket messages of different lengths
+
+ * websocket/tests/frame-lengths-expected.txt: Added.
+ * websocket/tests/frame-lengths.html: Added.
+
2009-12-07 Nikolas Zimmermann <nzimmermann at rim.com>
Not reviewed. Add two tests generating new results to gtks collection of tests doing so.
diff --git a/LayoutTests/websocket/tests/frame-lengths-expected.txt b/LayoutTests/websocket/tests/frame-lengths-expected.txt
new file mode 100644
index 0000000..23ee459
--- /dev/null
+++ b/LayoutTests/websocket/tests/frame-lengths-expected.txt
@@ -0,0 +1,7 @@
+Test sending and receiving small messages of different lengths.
+
+Should say PASS:
+
+Running the test...
+PASS
+
diff --git a/LayoutTests/websocket/tests/frame-lengths.html b/LayoutTests/websocket/tests/frame-lengths.html
new file mode 100644
index 0000000..f5c71a0
--- /dev/null
+++ b/LayoutTests/websocket/tests/frame-lengths.html
@@ -0,0 +1,45 @@
+<p>Test sending and receiving small messages of different lengths.</p>
+<p>Should say PASS:</p>
+<pre id=log>Running the test...
+</pre>
+<script>
+var maxLength = 1025;
+
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+}
+
+function log(message)
+{
+ document.getElementById("log").innerHTML += message + "\n";
+}
+
+var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/echo");
+
+var lastString;
+var failed = false;
+ws.onopen = function() {
+ lastString = "";
+ ws.send(lastString);
+}
+
+ws.onmessage = function(msg) {
+ if (msg.data != lastString) {
+ log("FAIL - incorrect response. Expected '" + lastString + "', got '" + msg.data + "'.");
+ failed = true;
+ }
+
+ if (lastString.length == maxLength) {
+ if (!failed)
+ log("PASS");
+ ws.send("Goodbye");
+ ws.onmessage = null;
+ if (window.layoutTestController)
+ setTimeout("layoutTestController.notifyDone()", 0);
+ } else {
+ lastString += "*";
+ ws.send(lastString);
+ }
+}
+</script>
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list