|
|
@@ -98,8 +98,8 @@ describe( 'DecoupledEditorUI', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- 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' );
|
|
|
|
|
|
@@ -116,8 +116,8 @@ describe( 'DecoupledEditorUI', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- 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' );
|
|
|
|