From f848106fca720aa6af3a0a3407b905960d77a38f Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Sun, 3 Jul 2016 11:58:25 +0200 Subject: [PATCH] added test for ws/wss schemes --- Foundation/testsuite/src/URITest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Foundation/testsuite/src/URITest.cpp b/Foundation/testsuite/src/URITest.cpp index e7753f7e2..47d674ac0 100644 --- a/Foundation/testsuite/src/URITest.cpp +++ b/Foundation/testsuite/src/URITest.cpp @@ -437,6 +437,13 @@ void URITest::testParse() assert (uri.getFragment().empty()); assert (uri.isRelative()); + uri = "ws://www.appinf.com/ws"; + assert (uri.getScheme() == "ws"); + assert (uri.getPort() == 80); + + uri = "wss://www.appinf.com/ws"; + assert (uri.getScheme() == "wss"); + assert (uri.getPort() == 443); }