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

Unified Diff: trunk/LayoutTests/http/tests/websocket/bufferedAmount-after-send.html

Issue 338243006: Revert 176298 "[WebSocket] bufferedAmount should not decrease in..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | trunk/LayoutTests/http/tests/websocket/bufferedAmount-after-send-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/LayoutTests/http/tests/websocket/bufferedAmount-after-send.html
===================================================================
--- trunk/LayoutTests/http/tests/websocket/bufferedAmount-after-send.html (revision 176310)
+++ trunk/LayoutTests/http/tests/websocket/bufferedAmount-after-send.html (working copy)
@@ -1,41 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="/js-test-resources/js-test.js"></script>
-</head>
-<body>
-<script type="text/javascript">
-description('WebSocket bufferedAmount after send');
-
-window.jsTestIsAsync = true;
-
-var ws = new WebSocket('ws://localhost:8880/echo');
-
-ws.onopen = function()
-{
- debug('onopen');
- ws.send('hello');
- shouldBe('ws.bufferedAmount', '5');
- ws.send(new ArrayBuffer(32));
- shouldBe('ws.bufferedAmount', '37');
- ws.send(new Blob(['abc', 'de']));
- shouldBe('ws.bufferedAmount', '42');
- ws.send('bye');
- shouldBe('ws.bufferedAmount', '45');
- // FIXME: This is a bit flaky but I don't know how to fix it.
- setTimeout(function() {
- shouldBe('ws.bufferedAmount', '0');
- ws.close();
- }, 50);
-};
-
-ws.onclose = function()
-{
- debug('onclose');
- shouldBe('ws.bufferedAmount', '0');
- finishJSTest();
-};
-
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | trunk/LayoutTests/http/tests/websocket/bufferedAmount-after-send-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698