Skip to content

Commit a4a215e

Browse files
committed
Add utf8-test
1 parent b3dd1db commit a4a215e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/io/socket/AbstractTestSocketIO.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,15 @@ public void reconnectInvalidated() throws Exception {
377377
}
378378
}
379379

380+
@Test(timeout = TIMEOUT)
381+
public void sendUtf8() throws Exception {
382+
doConnect();
383+
socket.emit("fooo", "\uD83C\uDF84");
384+
socket.emit("fooo", "🎄");
385+
assertEquals("on", takeEvent());
386+
doClose();
387+
}
388+
380389
// END TESTS
381390

382391
/**
@@ -513,5 +522,4 @@ public int getPort() {
513522
public int getProxyPort() {
514523
return getPort() + (proxy == null ? 0 : 1);
515524
}
516-
517525
}

0 commit comments

Comments
 (0)