tests: Replace "for each" construct
It is no longer supported by recent mozjs versions, so replace it with a regular for loop to unbreak the tests. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/38
This commit is contained in:
@ -48,7 +48,7 @@ function test() {
|
||||
function iconRow(icons, box_style) {
|
||||
let hb = new St.BoxLayout({ vertical: false, style: box_style });
|
||||
|
||||
for each (let iconName in icons) {
|
||||
for (let iconName of icons) {
|
||||
hb.add(new St.Icon({ icon_name: iconName,
|
||||
icon_size: 48 }));
|
||||
}
|
||||
|
Reference in New Issue
Block a user