Browse Source

changed haxe.remoting.NekoSocketConnection to SyncSocketConnection

Franco Ponticelli 17 years ago
parent
commit
fa15a1764e
3 changed files with 6 additions and 16 deletions
  1. 1 1
      tests/unit/Test.hx
  2. 2 5
      tests/unit/TestRemoting.hx
  3. 3 10
      tests/unit/unit.hxml

+ 1 - 1
tests/unit/Test.hx

@@ -174,7 +174,7 @@ class Test #if swf_mark implements mt.Protect #end {
 			new TestSerialize(),
 			new TestMisc(),
 			new TestResource(),
-//			new TestRemoting(),
+			new TestRemoting(),
 		];
 		var current = null;
 		try {

+ 2 - 5
tests/unit/TestRemoting.hx

@@ -132,11 +132,8 @@ class TestRemoting extends Test {
 	}
 
 	function doTestSocket( s : Socket ) {
-		#if neko
-		var scnx = haxe.remoting.NekoSocketConnection.create(s,new haxe.remoting.Context());
-		doTestConnection(scnx);
-		#elseif php
-		var scnx = haxe.remoting.PhpSocketConnection.create(s,new haxe.remoting.Context());
+		#if (neko || php)
+		var scnx = haxe.remoting.SyncSocketConnection.create(s,new haxe.remoting.Context());
 		doTestConnection(scnx);
 		#else
 		var scnx = haxe.remoting.SocketConnection.create(s,new haxe.remoting.Context());

+ 3 - 10
tests/unit/unit.hxml

@@ -8,7 +8,8 @@
 
 --next
 # Flash9
--swf9 unit9.swf
+-swf unit9.swf
+-swf-version 9
 -main unit.Test
 -debug
 -cp ..
@@ -25,7 +26,7 @@ unit.Test
 
 --next
 # Php
--php out
+-php php
 -main unit.Test
 -cp ..
 -resource res1.txt
@@ -45,11 +46,3 @@ unit.Test
 -neko remoting.n
 -main unit.RemotingServer
 -cp ..
-
---next
-# PHP
--php php
--main unit.Test
--cp ..
--resource res1.txt
--resource res2.bin