-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fc42bd
commit ed2715c
Showing
10 changed files
with
130 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,5 @@ | |
КонецФункции | ||
|
||
Функция ВерсияПриложения() Экспорт | ||
Возврат "0.5.0"; | ||
Возврат "0.5.2"; | ||
КонецФункции |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
&Желудь | ||
&Прозвище("ПередОбработкойОтображения") | ||
Процедура ПриСозданииОбъекта() | ||
|
||
КонецПроцедуры | ||
|
||
Процедура Преобразовать(ТекстШаблона) Экспорт | ||
ТекстШаблона = СтрЗаменить(ТекстШаблона, "@до", "1"); | ||
КонецПроцедуры |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
&Желудь | ||
&Прозвище("ПослеОбработкиОтображения") | ||
Процедура ПриСозданииОбъекта() | ||
|
||
КонецПроцедуры | ||
|
||
Процедура Преобразовать(ТекстШаблона) Экспорт | ||
ТекстШаблона = СтрЗаменить(ТекстШаблона, "@после", "3"); | ||
КонецПроцедуры |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
&Желудь | ||
&Прозвище("ПослеОбработкиОтображения") | ||
Процедура ПриСозданииОбъекта() | ||
|
||
КонецПроцедуры | ||
|
||
Процедура Преобразовать(ТекстШаблона) Экспорт | ||
ТекстШаблона = СтрЗаменить(ТекстШаблона, "@конец", "!"); | ||
КонецПроцедуры |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#Использовать autumn | ||
#Использовать ".." | ||
#Использовать asserts | ||
|
||
&Тест | ||
Процедура ПроверкаОбработчиковШаблона() Экспорт | ||
|
||
// Дано | ||
ПодключитьСценарий("tests/mock/мокПередОбработкойОтображения.os", "мокПередОбработкойОтображения"); | ||
ПодключитьСценарий("tests/mock/мокПослеОбработкиОтображения.os", "мокПослеОбработкиОтображения"); | ||
ПодключитьСценарий("tests/mock/мокПослеОбработкиОтображения2.os", "мокПослеОбработкиОтображения2"); | ||
Поделка = Новый Поделка(); | ||
Поделка.ПросканироватьКаталог("tests/mock/"); | ||
Поделка.ЗапуститьПриложение(); | ||
ТекстШаблона = "@до{{Модель}}@после@конец"; | ||
Параметры = Новый Массив(); | ||
Параметры.Добавить(ТекстШаблона); | ||
Шаблон = Поделка.НайтиЖелудь("Шаблон", Параметры); | ||
|
||
// Когда | ||
Результат = Шаблон.СформироватьТекст("2"); | ||
|
||
//Тогда | ||
Ожидаем.Что(Результат).Равно("123!"); | ||
|
||
КонецПроцедуры |