File tree 3 files changed +26
-17
lines changed
app/code/Magento/Newsletter/view/frontend/templates
dev/tests/js/JsTestDriver
lib/web/mage/adminhtml/wysiwyg/tiny_mce
3 files changed +26
-17
lines changed Original file line number Diff line number Diff line change 10
10
11
11
?>
12
12
<div class="block newsletter">
13
- <div class="title"><strong>Newsletter</strong></div>
13
+ <div class="title"><strong><?php /* @escapeNotVerified */ echo __ ( ' Newsletter ' ) ?> </strong></div>
14
14
<div class="content">
15
15
<form class="form subscribe"
16
16
novalidate
Original file line number Diff line number Diff line change 30
30
} else {
31
31
if (strtoupper (substr (PHP_OS , 0 , 3 )) === 'WIN ' ) {
32
32
$ browser = 'C:\Program Files (x86)\Mozilla Firefox\firefox.exe ' ;
33
+ } elseif (PHP_OS === 'Darwin ' ) {
34
+ $ browser = '/Applications/Firefox.app/Contents/MacOS/firefox ' ;
33
35
} else {
34
36
$ browser = exec ('which firefox ' );
35
37
}
139
141
kill -9 $LSOF
140
142
fi
141
143
142
- DISPLAY_NUM=99
143
- ps -ef | egrep "[X]vfb.*:$DISPLAY_NUM"
144
- if [ $? -eq 0 ] ; then
145
- pkill Xvfb
144
+ # Skip Xvfb setup for OS X since there browsers do not support headless display that way
145
+ if [ "$(uname)" != "Darwin" ]; then
146
+ DISPLAY_NUM=99
147
+ ps -ef | egrep "[X]vfb.*:$DISPLAY_NUM"
148
+ if [ $? -eq 0 ] ; then
149
+ pkill Xvfb
150
+ fi
151
+
152
+ XVFB=`which Xvfb`
153
+ if [ "$?" -eq 1 ];
154
+ then
155
+ echo "Xvfb not found."
156
+ exit 1
157
+ fi
158
+
159
+ $XVFB :$DISPLAY_NUM -nolisten inet6 -ac &
160
+ PID_XVFB="$!" # take the process ID
161
+ export DISPLAY=:$DISPLAY_NUM # set display to use that of the Xvfb
146
162
fi
147
-
148
- XVFB=`which Xvfb`
149
- if [ "$?" -eq 1 ];
150
- then
151
- echo "Xvfb not found."
152
- exit 1
153
- fi
154
-
155
- $XVFB :$DISPLAY_NUM -nolisten inet6 -ac &
156
- PID_XVFB="$!" # take the process ID
157
- export DISPLAY=:$DISPLAY_NUM # set display to use that of the Xvfb
163
+
158
164
USER=`whoami`
159
165
SUDO=`which sudo`
160
166
161
167
# run the tests
162
168
$SUDO -u $USER ' . $ command . '
163
169
164
- kill -9 $PID_XVFB # shut down Xvfb (firefox will shut down cleanly by JsTestDriver)
170
+ if [ "$(uname)" != "Darwin" ]; then
171
+ kill -9 $PID_XVFB # shut down Xvfb (firefox will shut down cleanly by JsTestDriver)
172
+ fi
165
173
echo "Done." ' ;
166
174
167
175
fwrite ($ fh , $ shellCommand . PHP_EOL );
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ define([
82
82
}
83
83
84
84
var settings = {
85
+ entity_encoding : 'raw' ,
85
86
mode : ( mode != undefined ? mode : 'none' ) ,
86
87
elements : this . id ,
87
88
theme : 'advanced' ,
You can’t perform that action at this time.
0 commit comments