2010-12-22 253 views
0

我已經使用了守護進程和q.py監聽我的Win7開發機器上設置Mobwrite。客戶端測試套件通過,但是當我運行服務器測試套件,一切都將失敗,這種迴應:實時協同編輯:mobwrite上的windows7 64位

 
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:我運行的Python 2.7

回答

0

的MobWrite支持小組很可能會問這個的最佳場所: http://groups.google.com/group/mobwrite

我同意單元測試很可能失敗由於線路的結局。 MobWrite總是使用\ n作爲其行結尾。如果單元測試(一個XML文件)使用ASCII傳輸到一個Windows盒子,那麼聽起來很合理的是它們會被注入\ r \ n行尾。

我去看看我能重新明天這個。同時,如果所有的單元測試都「失敗」,那麼我會接受MobWrite運行正常,測試只是假的。繼續發展!

+0

我無法重新創建此錯誤。你正在使用哪種瀏覽器?在server.html的第228行中,是否可以將'diffString'更改爲'escape(diffString)'並重新運行測試?這將產生更詳細的輸出,應該確切地說明發生了什麼。 – 2010-12-27 11:35:13

0

它在Chrome中發生8.0.552.224/FF 3.6.12/IE 8.0.7600.16385

與CGI另外,我跑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

另外,它不僅僅是單元測試失敗......當我將它連接到textarea時,mobwrite不工作 – collabwriter 2011-01-01 02:45:32

相關問題