|
|
@@ -148,8 +148,8 @@ describe( 'InlineEditorUI', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- it( 'sets placeholder from "placeholder" attribute of a passed element', () => {
|
|
|
- const element = document.createElement( 'div' );
|
|
|
+ it( 'sets placeholder from the "placeholder" attribute of a passed <textarea>', () => {
|
|
|
+ const element = document.createElement( 'textarea' );
|
|
|
|
|
|
element.setAttribute( 'placeholder', 'placeholder-text' );
|
|
|
|
|
|
@@ -166,8 +166,8 @@ describe( 'InlineEditorUI', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- it( 'uses editor.config.placeholder rather than "placeholder" attribute of a passed element', () => {
|
|
|
- const element = document.createElement( 'div' );
|
|
|
+ it( 'uses editor.config.placeholder rather than the "placeholder" attribute of a passed <textarea>', () => {
|
|
|
+ const element = document.createElement( 'textarea' );
|
|
|
|
|
|
element.setAttribute( 'placeholder', 'placeholder-text' );
|
|
|
|