diff --git a/tests/Layout/tests/buttons_1_bangle1.js b/tests/Layout/tests/buttons_1_bangle1.js index fb6fb29fa..481f09df3 100644 --- a/tests/Layout/tests/buttons_1_bangle1.js +++ b/tests/Layout/tests/buttons_1_bangle1.js @@ -1,6 +1,7 @@ var BTN2 = 1, BTN3=2; process.env = process.env;process.env.HWVERSION=1; g = Graphics.createArrayBuffer(240,240,4); +Bangle.appRect = {x:0,y:0,w:240,h:240,x2:239,y2:239}; var layout = new Layout({ type: "v", c: [ {type:"txt", font:"6x8", label:"A test"}, diff --git a/tests/Layout/tests/buttons_3_bangle1.js b/tests/Layout/tests/buttons_3_bangle1.js index c8346f449..2d5fbea9d 100644 --- a/tests/Layout/tests/buttons_3_bangle1.js +++ b/tests/Layout/tests/buttons_3_bangle1.js @@ -1,6 +1,7 @@ var BTN2 = 1, BTN3=2; process.env = process.env;process.env.HWVERSION=1; g = Graphics.createArrayBuffer(240,240,4); +Bangle.appRect = {x:0,y:0,w:240,h:240,x2:239,y2:239}; var layout = new Layout({ type: "v", c: [ {type:"txt", font:"6x8", label:"A test"}, diff --git a/tests/Layout/tests/buttons_osd_bangle1.js b/tests/Layout/tests/buttons_osd_bangle1.js index 108cb62b0..55656ef33 100644 --- a/tests/Layout/tests/buttons_osd_bangle1.js +++ b/tests/Layout/tests/buttons_osd_bangle1.js @@ -1,6 +1,7 @@ var BTN2 = 1, BTN3=2; process.env = process.env;process.env.HWVERSION=1; g = Graphics.createArrayBuffer(240,240,4); +Bangle.appRect = {x:0,y:0,w:240,h:240,x2:239,y2:239}; /* When displaying OSD buttons on Bangle.js 1 we should turn the side buttons into 'soft' buttons and then use the physical diff --git a/tests/Layout/tests/padding.bmp b/tests/Layout/tests/padding.bmp index 84ae4dc1b..506bb014e 100644 Binary files a/tests/Layout/tests/padding.bmp and b/tests/Layout/tests/padding.bmp differ diff --git a/tests/Layout/tests/padding_with_fill.bmp b/tests/Layout/tests/padding_with_fill.bmp index 9f82ed09f..92eccace2 100644 Binary files a/tests/Layout/tests/padding_with_fill.bmp and b/tests/Layout/tests/padding_with_fill.bmp differ