module('commands.preview');

/*trace 1021*/
test('插入代码后预览',function(){
//    var editor = te.obj[0];
//    var range = te.obj[1];
//    var body = editor.body;
//    var html = '<pre _syntax="javascript" style="overflow-x: auto; "><span style=" text-align: right;padding:2px 10px  0;border-right:5px solid #ccc;margin:-2px 10px 0 0;color:#000;">​1.&nbsp;&nbsp;</span><span style="color:#0000FF;">function</span>&nbsp;addSpace(linenum){<br><span style="text-align: right;padding:4px 10px  0;border-right:5px solid #ccc;margin:-5px 10px 0 0;color:#000;">2.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#0000FF;">if</span>(linenum&lt;10){<br><span style="text-align: right;padding:4px 10px  0;border-right:5px solid #ccc;margin:-5px 10px 0 0;color:#000;">3.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#0000FF;">return</span>&nbsp;<span style="color:#FF00FF;">"&amp;nbsp;&amp;nbsp;"</span>;<br><span style="text-align: right;padding:4px 10px  0;border-right:5px solid #ccc;margin:-5px 10px 0 0;color:#000;">4.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span style="color:#0000FF;">else</span>&nbsp;<span style="color:#0000FF;">if</span>(linenum&gt;=10&nbsp;&amp;&amp;&nbsp;linenum&lt;100){<br><span style="text-align: right;padding:4px 10px  0;border-right:5px solid #ccc;margin:-5px 10px 0 0;color:#000;">5.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#0000FF;">return</span>&nbsp;<span style="color:#FF00FF;">"&amp;nbsp;"</span>;<br><span style="text-align: right;padding:4px 10px  0;border-right:5px solid #ccc;margin:-5px 10px 0 0;color:#000;">6.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span style="color:#0000FF;">else</span>&nbsp;<span style="color:#0000FF;">if</span>(linenum&gt;=100&nbsp;&amp;&amp;&nbsp;linenum&lt;1000){<br><span style="text-align: right;padding:4px 10px  0;border-right:5px solid #ccc;margin:-5px 10px 0 0;color:#000;">7.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#0000FF;">return</span>&nbsp;<span style="color:#FF00FF;">""</span>;<br><span style="text-align: right;padding:4px 10px  0;border-right:5px solid #ccc;margin:-5px 10px 0 0;color:#000;">8.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br><span style="text-align: right;padding:4px 10px  0;border-right:5px solid #ccc;margin:-5px 10px 0 0;color:#000;">9.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;}</pre>';
//    editor.setContent(html);
//    editor.execCommand('preview');
//    equal(body.innerHTML,html,'预览不会对页面代码产生影响');
});