tests: Avoid redeclarations with let

Mozjs made this error fatal a while ago, so those tests were broken
by gjs' JS engine updates.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/38
This commit is contained in:
Florian Müllner
2018-02-06 23:21:39 +01:00
parent b7f083b1da
commit 5d1626aba1
2 changed files with 9 additions and 9 deletions

View File

@ -19,9 +19,9 @@ function test() {
let scroll = new St.ScrollView();
vbox.add(scroll, { expand: true });
let vbox = new St.BoxLayout({ vertical: true,
style: 'padding: 10px;'
+ 'spacing: 20px;' });
vbox = new St.BoxLayout({ vertical: true,
style: 'padding: 10px;'
+ 'spacing: 20px;' });
scroll.add_actor(vbox);
let tbox = null;