2010-12-22 2 views
0

데몬과 q.py 리스너를 사용하여 내 Win7 개발 시스템에 Mobwrite을 설정했습니다. 클라이언트 테스트 스위트는 통과하지만 서버 테스트 스위트를 실행하면, 모든 응답 이러한 종류의 실패 :실시간 협업 편집 : windows7 x64에서 mobwrite

 
Question: 
U:user10259538167863824 
f:0:unittest10259538167863824 
R:0:Hello world 

Expected: 
u:user10259538167863824 
F:0:unittest10259538167863824 
D:0:=11 

Actual: 
u:user10259538167863824 
F:0:unittest10259538167863824 
D:0:=11 

Diff: 
u:user10259538167863824 
¶ 
F:0:unittest10259538167863824 
¶ 
D:0:=11¶ 

¶ 

¶ 

나는 그것이 줄 끝에 함께 할 수있는 뭔가가 가정입니다,하지만 난에 무엇을 모른다 해야 할 것. 누구든지 이것에 대해 밝힐 수 있습니까?

감사합니다.

PS : http://groups.google.com/group/mobwrite

내가 단위 테스트는 아마 엔딩 라인으로 인해 실패 동의 : 나는

답변

0

MobWrite 지원 그룹 파이썬 2.7을 실행하는거야 아마이 요구하는 가장 좋은 장소가 될 것입니다. MobWrite는 항상 라인 끝으로 \ n을 사용합니다. 단위 테스트 (XML 파일)가 ASCII를 사용하여 Windows 상자로 전송 된 경우 \ r \ n 행 끝으로 주입되었다는 것은 상당히 합리적입니다.

내일 다시 만들 수 있는지 확인해 보겠습니다. 그 동안 모든 유닛 테스트가 이와 같이 실패하면 MobWrite가 정상적으로 작동하고 테스트가 가짜라는 사실을 인정합니다. 개발을 계속하십시오!

+0

이 오류를 다시 만들 수 없습니다. 어떤 브라우저를 사용하고 있습니까? server.html, 228 줄에서 'diffString'을 'escape (diffString)'으로 변경하고 테스트를 다시 실행할 수 있습니까? 그러면 진행 상황을 정확히 식별하는 더 자세한 출력이 생성됩니다. –

0

그것은 크롬에서 CGI와 8.0.552.224/FF 3.6.12/IE 8.0.7600.16385

또한, 나는 실행 해요 q.py를 발생, mod_python을하지. 여기

결과 RAW 있습니다

%3CSPAN%20TITLE%3D%22i%3D0%22%3Eu%3Auser680700127966702%3C/SPAN%3E%3CINS%20STYLE%3D%22background%3A%23E6FFE6%3B%22%20TITLE%3D%22i%3D21%22%3E%0D%3C/INS%3E%3CSPAN%20TITLE%3D%22i%3D22%22%3E%26para%3B%3CBR%3EF%3A0%3Aunittest680700127966702%3C/SPAN%3E%3CINS%20STYLE%3D%22background%3A%23E6FFE6%3B%22%20TITLE%3D%22i%3D50%22%3E%0D%3C/INS%3E%3CSPAN%20TITLE%3D%22i%3D51%22%3E%26para%3B%3CBR%3ED%3A0%3A%3D11%3C/SPAN%3E%3CDEL%20STYLE%3D%22background%3A%23FFE6E6%3B%22%20TITLE%3D%22i%3D59%22%3E%26para%3B%3CBR%3E%3C/DEL%3E%3CINS%20STYLE%3D%22background%3A%23E6FFE6%3B%22%20TITLE%3D%22i%3D59%22%3E%0D%26para%3B%3CBR%3E%0D%3C/INS%3E%3CSPAN%20TITLE%3D%22i%3D62%22%3E%26para%3B%3CBR%3E%3C/SPAN%3E

... 그리고 쉽게 읽을 디코딩 :

 
<SPAN TITLE="i=0">u:user680700127966702</SPAN><INS STYLE="background:#E6FFE6;" TITLE="i=21"> 
</INS><SPAN TITLE="i=22">&para;<BR>F:0:unittest680700127966702</SPAN><INS STYLE="background:#E6FFE6;" TITLE="i=50"> 
</INS><SPAN TITLE="i=51">&para;<BR>D:0:=11</SPAN><DEL STYLE="background:#FFE6E6;" TITLE="i=59">&para;<BR></DEL><INS STYLE="background:#E6FFE6;" TITLE="i=59"> 
&para;<BR> 
</INS><SPAN TITLE="i=62">&para;<BR></SPAN> 

... 그리고 여기에 테스트 스위트

 
INFO:mobwrite:Read 0 settings from ./lib/mobwrite_config.txt 
INFO:mobwrite:Listening on port 3017... 
INFO:mobwrite:Running cleanup task. 
INFO:mobwrite:Connection accepted from 127.0.0.1 
WARNING:mobwrite:Truncated data: ' 
' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
WARNING:mobwrite:Rollback from shadow 1 to backup shadow 0 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
WARNING:mobwrite:Rollback from shadow 1 to backup shadow 0 
INFO:mobwrite:Got 1b raw text: '' 
INFO:mobwrite:Sent '-1 +Hello world' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '+Hello world' delta: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '-1' delta: '' 
WARNING:mobwrite:Delta failure, expected 0 length: '' 
INFO:mobwrite:Sent empty raw text: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Got '-5 +Goodbye  =6' delta: '' 
INFO:mobwrite:Sent '=13' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Got '-5 +Goodbye  =5' delta: '' 
WARNING:mobwrite:Delta failure, expected 11 length: '' 
INFO:mobwrite:Sent 11b raw text: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Idle out: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '=11' delta: '' 
WARNING:mobwrite:Delta failure, expected 0 length: '' 
INFO:mobwrite:Sent empty raw text: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '=11' delta: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Idle out: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '=11' delta: '' 
WARNING:mobwrite:Delta failure, expected 0 length: '' 
INFO:mobwrite:Sent empty raw text: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '=11' delta: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 51b raw text: '' 
INFO:mobwrite:Got '-1' delta: '' 
WARNING:mobwrite:Delta failure, expected 51 length: '' 
INFO:mobwrite:Sent 51b raw text: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 0b raw text: '' 
INFO:mobwrite:Got '+A-Z a-z 0-9 - _ . ! ~ * ' () ;/? : @ & = + $ , #' delta: '' 
INFO:mobwrite:Sent '-1 +A-Z a-z 0-9 - _ . ! ~ * ' () ;/? : @ & = + $ , #' delta: '' 
INFO:mobwrite:Got '-1' delta: '' 
WARNING:mobwrite:Delta failure, expected 7 length: '' 
INFO:mobwrite:Sent 13b raw text: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 0b raw text: '' 
INFO:mobwrite:Got '+a%00b%25c%0Ad' delta: '' 
INFO:mobwrite:Got 1b raw text: '' 
INFO:mobwrite:Sent '-1 +a%00b%25c%0Ad' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 3b raw text: '' 
INFO:mobwrite:Got '-1' delta: '' 
WARNING:mobwrite:Delta failure, expected 3 length: '' 
INFO:mobwrite:Sent 11b raw text: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 0b raw text: '' 
INFO:mobwrite:Got '+a%E3%81%86b' delta: '' 
INFO:mobwrite:Got 1b raw text: '' 
INFO:mobwrite:Sent '-1 +a%E3%81%86b' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 3b raw text: '' 
INFO:mobwrite:Sent '=1 -1  +%0A =1' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 2b raw text: '' 
INFO:mobwrite:Got '=1 +%0D%0A =1' delta: '' 
INFO:mobwrite:Sent '=1 -1  =2' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Got '-5 +Goodbye  =6' delta: '' 
INFO:mobwrite:Sent '=13' delta: '' 
WARNING:mobwrite:Rollback from shadow 1 to backup shadow 0 
INFO:mobwrite:Got '=11' delta: '' 
INFO:mobwrite:Sent '-5 +Goodbye  =6' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Got '-5 +Goodbye  =6' delta: '' 
INFO:mobwrite:Sent '=13' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '=9 -2  +m' delta: '' 
INFO:mobwrite:Sent '-5 +Goodbye  =5' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Got '-5 +Goodbye  =6' delta: '' 
INFO:mobwrite:Sent '=13' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '-5 +My  =6' delta: '' 
INFO:mobwrite:Sent '-2 +Goodbye  =6' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 2b raw text: '' 
INFO:mobwrite:Sent '=2' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 2b raw text: '' 
INFO:mobwrite:Got '+a =2' delta: '' 
INFO:mobwrite:Sent '=3' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '=2 +d' delta: '' 
INFO:mobwrite:Sent '+a =3' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 2b raw text: '' 
INFO:mobwrite:Sent '=2' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 2b raw text: '' 
INFO:mobwrite:Got '+1 =2' delta: '' 
INFO:mobwrite:Sent '=3' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '=2 +4' delta: '' 
INFO:mobwrite:Sent '=3' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Expired buffer: 'testbuffer1_3' 
INFO:mobwrite:Executing buffer: testbuffer1_3 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Expired buffer: 'testbuffer3_3' 
INFO:mobwrite:Executing buffer: testbuffer3_3 
INFO:mobwrite:Expired buffer: 'testbuffer4_3' 
INFO:mobwrite:Executing buffer: testbuffer4_3 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
ERROR:mobwrite:Invalid buffer: 'testbuffer5 0 0' 
ERROR:mobwrite:Invalid buffer: 'testbuffer6 0 1' 
ERROR:mobwrite:Invalid buffer: 'testbuffer7 1 2' 
INFO:mobwrite:Executing buffer: testbuffer8_1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '-5 +Goodbye  =6' delta: '' 
INFO:mobwrite:Sent '=13' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
WARNING:mobwrite:Rollback from shadow 2 to backup shadow 1 
INFO:mobwrite:Got '-5 +Goodbye  =6' delta: '' 
WARNING:mobwrite:Repeated delta: 0 ' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 11b raw text: '' 
INFO:mobwrite:Sent '=11' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got 13b raw text: '' 
INFO:mobwrite:Sent '=13' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
INFO:mobwrite:Got '=11' delta: '' 
INFO:mobwrite:Sent '-5 +Goodbye  =6' delta: '' 
INFO:mobwrite:Connection accepted from 127.0.0.1 
WARNING:mobwrite:Rollback from shadow 2 to backup shadow 1 
INFO:mobwrite:Got '=11' delta: '' 
WARNING:mobwrite:Repeated delta: 0 ' 
INFO:mobwrite:Sent '-5 +Goodbye  =6' delta: '' 
의 서버 출력
+0

또한 단위 테스트가 실패하는 것만이 아닙니다 ... mobbles가 텍스트 영역에 연결될 때 작동하지 않습니다. – collabwriter