Add a correct case for words in sentence (#19485)
* Add a correct case for words in sentence * Change line 23
This commit is contained in:
committed by
Gregory Gubarev
parent
202e90f5db
commit
48539366ca
@@ -8,7 +8,7 @@ localeTitle: Добавить кнопку отправки в форму
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
<section id="description"> Давайте добавим кнопку <code>submit</code> в вашу форму. Нажатие этой кнопки отправит данные из вашей формы в URL-адрес, указанный вами с помощью атрибута <code>action</code> формы. Вот пример кнопки отправки: <code><button type="submit">this button submits the form</button></code> </section>
|
<section id="description"> Давайте добавим кнопку <code>submit</code> в вашу форму. Нажатие этой кнопки отправит данные из вашей формы по URL-адресу, указанному вами с помощью атрибута формы <code>action</code> . Вот пример кнопки отправки: <code><button type="submit">this button submits the form</button></code> </section>
|
||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
<section id="instructions"> Добавьте кнопку в качестве последнего элемента вашего элемента <code>form</code> с типом <code>submit</code> и «Отправить» в качестве текста. </section>
|
<section id="instructions"> Добавьте кнопку в качестве последнего элемента вашего элемента <code>form</code> с типом <code>submit</code> и «Отправить» в качестве текста. </section>
|
||||||
@@ -20,7 +20,7 @@ localeTitle: Добавить кнопку отправки в форму
|
|||||||
tests:
|
tests:
|
||||||
- text: У вашей формы должна быть кнопка внутри.
|
- text: У вашей формы должна быть кнопка внутри.
|
||||||
testString: 'assert($("form").children("button").length > 0, "Your form should have a button inside it.");'
|
testString: 'assert($("form").children("button").length > 0, "Your form should have a button inside it.");'
|
||||||
- text: 'Кнопка отправки должна иметь <code>type</code> атрибута, установленный для <code>submit</code> .'
|
- text: 'Кнопка отправки должна иметь <code>type</code> атрибута, установленный на <code>submit</code> .'
|
||||||
testString: 'assert($("button").attr("type") === "submit", "Your submit button should have the attribute <code>type</code> set to <code>submit</code>.");'
|
testString: 'assert($("button").attr("type") === "submit", "Your submit button should have the attribute <code>type</code> set to <code>submit</code>.");'
|
||||||
- text: Кнопка отправки должна содержать только текст «Отправить».
|
- text: Кнопка отправки должна содержать только текст «Отправить».
|
||||||
testString: 'assert($("button").text().match(/^\s*submit\s*$/gi), "Your submit button should only have the text "Submit".");'
|
testString: 'assert($("button").text().match(/^\s*submit\s*$/gi), "Your submit button should only have the text "Submit".");'
|
||||||
|
Reference in New Issue
Block a user