Skip to content

Commit f00cbe8

Browse files
MAGETWO-70599: Product Edit Page Can't Load
- Fix CR comments.
1 parent 61741bc commit f00cbe8

File tree

2 files changed

+6
-92
lines changed

2 files changed

+6
-92
lines changed

app/code/Magento/Translation/Test/Unit/Model/Js/PreProcessorTest.php

Lines changed: 0 additions & 90 deletions
This file was deleted.

dev/tests/integration/testsuite/Magento/Translation/Model/Js/PreProcessorTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function testProcess(string $content, string $translation)
9494
public function contentForTranslateDataProvider()
9595
{
9696
return [
97-
'previousError' => [
97+
'i18n_js_file_error' => [
9898
'setTranslateProp = function (el, original) {
9999
var location = $(el).prop(\'tagName\').toLowerCase(),
100100
translated = $.mage.__(original),
@@ -132,11 +132,15 @@ public function contentForTranslateDataProvider()
132132
title: \$t(
133133
'Original value for Magento_Store module'
134134
);
135+
title: jQuery.mage.__(
136+
'Original value for Magento_Store module'
137+
);
135138
i18n
136139
,
137140
<<<i18n
138141
title: 'Translated value for Magento_Store module in en_AU',
139142
title: 'Translated value for Magento_Store module in en_AU';
143+
title: 'Translated value for Magento_Store module in en_AU';
140144
i18n
141145
],
142146
'checkTranslationWithReplace' => [
@@ -150,7 +154,7 @@ public function contentForTranslateDataProvider()
150154
'The maximum you may purchase is %1.'.replace('%1', params.maxAllowed);
151155
i18n
152156
],
153-
'checkAvoidingMatching' => [
157+
'checkAvoidingMatchingWithJsInString' => [
154158
<<<i18n
155159
\$t('Payment ' + this.getTitle() + ' can\'t be initialized')
156160
\$t(

0 commit comments

Comments
 (0)