From b194834f2b8bfa0b86755c6864b355e166151d40 Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Sat, 25 Jul 2026 14:40:27 +0300 Subject: [PATCH] =?UTF-8?q?test:=20=D1=81=D0=BD=D1=8D=D0=BF=D1=88=D0=BE?= =?UTF-8?q?=D1=82=D1=8B=20=D0=B4=D0=BB=D1=8F=20roundtrip-crlf-preserve=20(?= =?UTF-8?q?cf-edit,=20meta-edit,=20subsystem-edit)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Кейсы проверяли только БАЙТОВЫЙ стиль файла (expect.preserves: BOM/CRLF/ encoding/finalNewline/noCR13) и что валидатор не ругнулся. Что в CRLF-файл записан КОРРЕКТНЫЙ XML, не проверял никто: снэпшота не было, а compareSnapshot при отсутствии эталона молча возвращает pass. Снэпшот ортогонален preserves — сравнивается нормализованное содержимое (структура), preserves остаётся на байтовых характеристиках. Дублирования нет. Регресс 12/12, 20/20, 6/6 — ps1 и py. 1С-сертификация 3/3. Co-Authored-By: Claude Opus 5 (1M context) --- .../roundtrip-crlf-preserve/Configuration.xml | 251 +++++++++++++++++ .../Ext/ClientApplicationInterface.xml | 18 ++ .../Languages/Русский.xml | 16 ++ .../Catalogs/КрлфСпр.xml | 176 ++++++++++++ .../Catalogs/КрлфСпр/Ext/ObjectModule.bsl | 0 .../roundtrip-crlf-preserve/Configuration.xml | 252 +++++++++++++++++ .../Ext/ClientApplicationInterface.xml | 18 ++ .../Languages/Русский.xml | 16 ++ .../CommonModules/Второй.xml | 23 ++ .../CommonModules/Второй/Ext/Module.bsl | 0 .../CommonModules/М.xml | 23 ++ .../CommonModules/М/Ext/Module.bsl | 0 .../roundtrip-crlf-preserve/Configuration.xml | 254 ++++++++++++++++++ .../Ext/ClientApplicationInterface.xml | 18 ++ .../Languages/Русский.xml | 16 ++ .../Subsystems/КрлфПС.xml | 25 ++ 16 files changed, 1106 insertions(+) create mode 100644 tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml create mode 100644 tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml create mode 100644 tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml create mode 100644 tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Catalogs/КрлфСпр.xml create mode 100644 tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Catalogs/КрлфСпр/Ext/ObjectModule.bsl create mode 100644 tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml create mode 100644 tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml create mode 100644 tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml create mode 100644 tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/Второй.xml create mode 100644 tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/Второй/Ext/Module.bsl create mode 100644 tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/М.xml create mode 100644 tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/М/Ext/Module.bsl create mode 100644 tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml create mode 100644 tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml create mode 100644 tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml create mode 100644 tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Subsystems/КрлфПС.xml diff --git a/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml b/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml new file mode 100644 index 00000000..5514c74f --- /dev/null +++ b/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml @@ -0,0 +1,251 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + UUID-012 + UUID-013 + + + UUID-014 + UUID-015 + + + + КрлфКонф + + + ru + КрлфКонф + + + + + Version8_3_27 + ManagedApplication + + PlatformApplication + + Russian + + + 1.0.0.2 + + false + false + false + + + + + + + + + + + + + + + + + + + + + + Biometrics + true + + + Location + false + + + BackgroundLocation + false + + + BluetoothPrinters + false + + + WiFiPrinters + false + + + Contacts + false + + + Calendars + false + + + PushNotifications + false + + + LocalNotifications + false + + + InAppPurchases + false + + + PersonalComputerFileExchange + false + + + Ads + false + + + NumberDialing + false + + + CallProcessing + false + + + CallLog + false + + + AutoSendSMS + false + + + ReceiveSMS + false + + + SMSLog + false + + + Camera + false + + + Microphone + false + + + MusicLibrary + false + + + PictureAndVideoLibraries + false + + + AudioPlaybackAndVibration + false + + + BackgroundAudioPlaybackAndVibration + false + + + InstallPackages + false + + + OSBackup + true + + + ApplicationUsageStatistics + false + + + BarcodeScanning + false + + + BackgroundAudioRecording + false + + + AllFilesAccess + false + + + Videoconferences + false + + + NFC + false + + + DocumentScanning + false + + + SpeechToText + false + + + Geofences + false + + + IncomingShareRequests + false + + + AllIncomingShareRequestsTypesProcessing + false + + + + + + Normal + + + Language.Русский + + + + + + Managed + NotAutoFree + DontUse + DontUse + TaxiEnableVersion8_2 + DontUse + Version8_3_27 + + + + Русский + + + \ No newline at end of file diff --git a/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml b/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml new file mode 100644 index 00000000..3c1161b2 --- /dev/null +++ b/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml @@ -0,0 +1,18 @@ + + + + + UUID-002 + + + + + UUID-004 + + + + + + + + \ No newline at end of file diff --git a/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml b/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml new file mode 100644 index 00000000..37c60d78 --- /dev/null +++ b/tests/skills/cases/cf-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml @@ -0,0 +1,16 @@ + + + + + Русский + + + ru + Русский + + + + ru + + + \ No newline at end of file diff --git a/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Catalogs/КрлфСпр.xml b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Catalogs/КрлфСпр.xml new file mode 100644 index 00000000..1cf0e39b --- /dev/null +++ b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Catalogs/КрлфСпр.xml @@ -0,0 +1,176 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + + КрлфСпр + + + ru + КРЛФ спр + + + + false + HierarchyFoldersAndItems + false + 2 + true + true + + ToItems + 9 + 25 + String + Variable + WholeCatalog + false + true + AsDescription + + Auto + InDialog + false + BothWays + + Catalog.КрлфСпр.StandardAttribute.Description + Catalog.КрлфСпр.StandardAttribute.Code + + Begin + DontUse + Directly + + + + + + + + + + + false + + + Managed + Use + + + + + + Use + Auto + DontUse + false + false + + + + + База + + + ru + База + + + + + xs:string + + 10 + Variable + + + false + + + + false + + false + false + + + false + + DontCheck + Items + + + Auto + Auto + + + Auto + ForItem + DontIndex + Use + Use + + + + + Новый + + + ru + Новый + + + + + xs:boolean + + false + + + + false + + false + false + + + false + false + DontCheck + Items + + + Auto + Auto + + + Auto + ForItem + DontIndex + Use + Use + + + + + diff --git a/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Catalogs/КрлфСпр/Ext/ObjectModule.bsl b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Catalogs/КрлфСпр/Ext/ObjectModule.bsl new file mode 100644 index 00000000..e69de29b diff --git a/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml new file mode 100644 index 00000000..431235cf --- /dev/null +++ b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml @@ -0,0 +1,252 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + UUID-012 + UUID-013 + + + UUID-014 + UUID-015 + + + + КонфM + + + ru + КонфM + + + + + Version8_3_27 + ManagedApplication + + PlatformApplication + + Russian + + + + + false + false + false + + + + + + + + + + + + + + + + + + + + + + Biometrics + true + + + Location + false + + + BackgroundLocation + false + + + BluetoothPrinters + false + + + WiFiPrinters + false + + + Contacts + false + + + Calendars + false + + + PushNotifications + false + + + LocalNotifications + false + + + InAppPurchases + false + + + PersonalComputerFileExchange + false + + + Ads + false + + + NumberDialing + false + + + CallProcessing + false + + + CallLog + false + + + AutoSendSMS + false + + + ReceiveSMS + false + + + SMSLog + false + + + Camera + false + + + Microphone + false + + + MusicLibrary + false + + + PictureAndVideoLibraries + false + + + AudioPlaybackAndVibration + false + + + BackgroundAudioPlaybackAndVibration + false + + + InstallPackages + false + + + OSBackup + true + + + ApplicationUsageStatistics + false + + + BarcodeScanning + false + + + BackgroundAudioRecording + false + + + AllFilesAccess + false + + + Videoconferences + false + + + NFC + false + + + DocumentScanning + false + + + SpeechToText + false + + + Geofences + false + + + IncomingShareRequests + false + + + AllIncomingShareRequestsTypesProcessing + false + + + + + + Normal + + + Language.Русский + + + + + + Managed + NotAutoFree + DontUse + DontUse + TaxiEnableVersion8_2 + DontUse + Version8_3_27 + + + + Русский + КрлфСпр + + + \ No newline at end of file diff --git a/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml new file mode 100644 index 00000000..3c1161b2 --- /dev/null +++ b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml @@ -0,0 +1,18 @@ + + + + + UUID-002 + + + + + UUID-004 + + + + + + + + \ No newline at end of file diff --git a/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml new file mode 100644 index 00000000..37c60d78 --- /dev/null +++ b/tests/skills/cases/meta-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml @@ -0,0 +1,16 @@ + + + + + Русский + + + ru + Русский + + + + ru + + + \ No newline at end of file diff --git a/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/Второй.xml b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/Второй.xml new file mode 100644 index 00000000..75f092c0 --- /dev/null +++ b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/Второй.xml @@ -0,0 +1,23 @@ + + + + + Второй + + + ru + Второй + + + + false + false + false + false + false + false + false + DontUse + + + diff --git a/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/Второй/Ext/Module.bsl b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/Второй/Ext/Module.bsl new file mode 100644 index 00000000..e69de29b diff --git a/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/М.xml b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/М.xml new file mode 100644 index 00000000..9f82c07f --- /dev/null +++ b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/М.xml @@ -0,0 +1,23 @@ + + + + + М + + + ru + М + + + + false + false + false + false + false + false + false + DontUse + + + diff --git a/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/М/Ext/Module.bsl b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/CommonModules/М/Ext/Module.bsl new file mode 100644 index 00000000..e69de29b diff --git a/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml new file mode 100644 index 00000000..8d77fef8 --- /dev/null +++ b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Configuration.xml @@ -0,0 +1,254 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + UUID-012 + UUID-013 + + + UUID-014 + UUID-015 + + + + КонфS + + + ru + КонфS + + + + + Version8_3_27 + ManagedApplication + + PlatformApplication + + Russian + + + + + false + false + false + + + + + + + + + + + + + + + + + + + + + + Biometrics + true + + + Location + false + + + BackgroundLocation + false + + + BluetoothPrinters + false + + + WiFiPrinters + false + + + Contacts + false + + + Calendars + false + + + PushNotifications + false + + + LocalNotifications + false + + + InAppPurchases + false + + + PersonalComputerFileExchange + false + + + Ads + false + + + NumberDialing + false + + + CallProcessing + false + + + CallLog + false + + + AutoSendSMS + false + + + ReceiveSMS + false + + + SMSLog + false + + + Camera + false + + + Microphone + false + + + MusicLibrary + false + + + PictureAndVideoLibraries + false + + + AudioPlaybackAndVibration + false + + + BackgroundAudioPlaybackAndVibration + false + + + InstallPackages + false + + + OSBackup + true + + + ApplicationUsageStatistics + false + + + BarcodeScanning + false + + + BackgroundAudioRecording + false + + + AllFilesAccess + false + + + Videoconferences + false + + + NFC + false + + + DocumentScanning + false + + + SpeechToText + false + + + Geofences + false + + + IncomingShareRequests + false + + + AllIncomingShareRequestsTypesProcessing + false + + + + + + Normal + + + Language.Русский + + + + + + Managed + NotAutoFree + DontUse + DontUse + TaxiEnableVersion8_2 + DontUse + Version8_3_27 + + + + Русский + М + Второй + КрлфПС + + + \ No newline at end of file diff --git a/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml new file mode 100644 index 00000000..3c1161b2 --- /dev/null +++ b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Ext/ClientApplicationInterface.xml @@ -0,0 +1,18 @@ + + + + + UUID-002 + + + + + UUID-004 + + + + + + + + \ No newline at end of file diff --git a/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml new file mode 100644 index 00000000..37c60d78 --- /dev/null +++ b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Languages/Русский.xml @@ -0,0 +1,16 @@ + + + + + Русский + + + ru + Русский + + + + ru + + + \ No newline at end of file diff --git a/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Subsystems/КрлфПС.xml b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Subsystems/КрлфПС.xml new file mode 100644 index 00000000..2a669dbd --- /dev/null +++ b/tests/skills/cases/subsystem-edit/snapshots/roundtrip-crlf-preserve/Subsystems/КрлфПС.xml @@ -0,0 +1,25 @@ + + + + + КрлфПС + + + ru + КРЛФ ПС + + + + true + true + false + + + + CommonModule.М + CommonModule.Второй + + + + +