1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <title>#11178 - Error thrown in htmlDataProcessor test</title> |
---|
5 | <meta name="cktester-tags" content="editor,unit"> |
---|
6 | <script src="../../../cktester/cktester.js"></script> |
---|
7 | <script> |
---|
8 | |
---|
9 | CKTESTER.editor = |
---|
10 | { |
---|
11 | config : { |
---|
12 | enterMode : CKEDITOR.ENTER_BR |
---|
13 | //enterMode : CKEDITOR.ENTER_DIV // CKEDITOR.ENTER_DIV also causes the issue. |
---|
14 | } |
---|
15 | }; |
---|
16 | |
---|
17 | CKTESTER.test( |
---|
18 | { |
---|
19 | 'test selection exception with setData()': function() { |
---|
20 | // Focusing editor will cause the exception. |
---|
21 | this.editor.focus(); |
---|
22 | |
---|
23 | this.editor.setData( '<p>hello world</p>', function() { |
---|
24 | resume( function() { |
---|
25 | assert.isTrue( true ); |
---|
26 | } ); |
---|
27 | } ); |
---|
28 | |
---|
29 | wait(); |
---|
30 | } |
---|
31 | }); |
---|
32 | </script> |
---|
33 | </head> |
---|
34 | <body> |
---|
35 | </body> |
---|
36 | </html> |
---|