TinyMCE: Adjust textpattern tests for the changes in [37023].

See #33300.

git-svn-id: https://develop.svn.wordpress.org/trunk@37024 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-03-17 00:46:26 +00:00
parent 3014f291ae
commit 57646fb7ba
1 changed files with 1 additions and 33 deletions

View File

@ -279,40 +279,8 @@
}, assert.async() );
} );
QUnit.test( 'Inline: single.', function( assert ) {
type( '*test*', function() {
assert.equal( editor.getContent(), '<p><em>test</em></p>' );
assert.equal( editor.selection.getRng().startOffset, 1 );
}, assert.async() );
} );
QUnit.test( 'Inline: double.', function( assert ) {
type( '**test**', function() {
assert.equal( editor.getContent(), '<p><strong>test</strong></p>' );
assert.equal( editor.selection.getRng().startOffset, 1 );
}, assert.async() );
} );
QUnit.test( 'Inline: after typing.', function( assert ) {
editor.setContent( '<p>test test test</p>' );
editor.selection.setCursorLocation( editor.$( 'p' )[0].firstChild, 5 );
type( '**', function() {
editor.selection.setCursorLocation( editor.$( 'p' )[0].firstChild, 11 );
}, '**', function() {
assert.equal( editor.getContent(), '<p>test <strong>test</strong> test</p>' );
assert.equal( editor.selection.getRng().startOffset, 1 );
}, assert.async() );
} );
QUnit.test( 'Inline: no change.', function( assert ) {
type( 'test ******', function() {
assert.equal( editor.getContent(), '<p>test ******</p>' );
}, assert.async() );
} );
QUnit.test( 'Horizontal Rule', function( assert ) {
type( ' --- \n', function() {
type( '---\n', function() {
assert.equal( editor.getContent(), '<hr />\n<p>&nbsp;</p>' );
}, assert.async() );
} );