From 57646fb7ba6bbce1863fcf8cde6c20782fb7b69c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 17 Mar 2016 00:46:26 +0000 Subject: [PATCH] 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 --- .../tinymce/plugins/wptextpattern/plugin.js | 34 +------------------ 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js b/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js index aa929ff96e..b04d6b486b 100644 --- a/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js +++ b/tests/qunit/wp-includes/js/tinymce/plugins/wptextpattern/plugin.js @@ -279,40 +279,8 @@ }, assert.async() ); } ); - QUnit.test( 'Inline: single.', function( assert ) { - type( '*test*', function() { - assert.equal( editor.getContent(), '

test

' ); - assert.equal( editor.selection.getRng().startOffset, 1 ); - }, assert.async() ); - } ); - - QUnit.test( 'Inline: double.', function( assert ) { - type( '**test**', function() { - assert.equal( editor.getContent(), '

test

' ); - assert.equal( editor.selection.getRng().startOffset, 1 ); - }, assert.async() ); - } ); - - QUnit.test( 'Inline: after typing.', function( assert ) { - editor.setContent( '

test test test

' ); - editor.selection.setCursorLocation( editor.$( 'p' )[0].firstChild, 5 ); - - type( '**', function() { - editor.selection.setCursorLocation( editor.$( 'p' )[0].firstChild, 11 ); - }, '**', function() { - assert.equal( editor.getContent(), '

test test test

' ); - assert.equal( editor.selection.getRng().startOffset, 1 ); - }, assert.async() ); - } ); - - QUnit.test( 'Inline: no change.', function( assert ) { - type( 'test ******', function() { - assert.equal( editor.getContent(), '

test ******

' ); - }, assert.async() ); - } ); - QUnit.test( 'Horizontal Rule', function( assert ) { - type( ' --- \n', function() { + type( '---\n', function() { assert.equal( editor.getContent(), '
\n

 

' ); }, assert.async() ); } );