From 3a471524d564b2611d3cf373a72f861611e80258 Mon Sep 17 00:00:00 2001 From: Jakub Zurawski Date: Tue, 9 Feb 2016 13:48:22 +0100 Subject: [PATCH 1/2] Fixed fullscreen issue, while application is not 1080p --- .../tests/devices/broadcastsource/tizentvsourcetest.js | 6 +----- static/script/devices/broadcastsource/tizentvsource.js | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/static/script-tests/tests/devices/broadcastsource/tizentvsourcetest.js b/static/script-tests/tests/devices/broadcastsource/tizentvsourcetest.js index 4abfdf94..64b3525e 100644 --- a/static/script-tests/tests/devices/broadcastsource/tizentvsourcetest.js +++ b/static/script-tests/tests/devices/broadcastsource/tizentvsourcetest.js @@ -143,11 +143,7 @@ var device = application.getDevice(); var broadcastSource = device.createBroadcastSource(); - self.sandbox.stub(application, 'getLayout', function() { - return { - requiredScreenSize: { height: 1080, width: 1920 } - }; - }); + self.sandbox.stub(window, "screen", { height: 1080, width: 1920 }); broadcastSource.showCurrentChannel(); diff --git a/static/script/devices/broadcastsource/tizentvsource.js b/static/script/devices/broadcastsource/tizentvsource.js index c0d11519..0dc93b0a 100644 --- a/static/script/devices/broadcastsource/tizentvsource.js +++ b/static/script/devices/broadcastsource/tizentvsource.js @@ -252,8 +252,7 @@ require.def( }, _setBroadcastToFullScreen: function () { - var currentLayout = RuntimeContext.getCurrentApplication().getLayout().requiredScreenSize; - this.setPosition(0, 0, currentLayout.width, currentLayout.height); + this.setPosition(0, 0, window.screen.width, window.screen.height); }, _tuneToChannelByName: function (params) { From 203b3b5e89c372664cf2085d19fd05d66429b5bf Mon Sep 17 00:00:00 2001 From: Jakub Zurawski Date: Tue, 9 Feb 2016 14:49:26 +0100 Subject: [PATCH 2/2] Doublequotes replaced with singlequotes --- .../tests/devices/broadcastsource/tizentvsourcetest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/script-tests/tests/devices/broadcastsource/tizentvsourcetest.js b/static/script-tests/tests/devices/broadcastsource/tizentvsourcetest.js index 64b3525e..8424ed51 100644 --- a/static/script-tests/tests/devices/broadcastsource/tizentvsourcetest.js +++ b/static/script-tests/tests/devices/broadcastsource/tizentvsourcetest.js @@ -143,7 +143,7 @@ var device = application.getDevice(); var broadcastSource = device.createBroadcastSource(); - self.sandbox.stub(window, "screen", { height: 1080, width: 1920 }); + self.sandbox.stub(window, 'screen', { height: 1080, width: 1920 }); broadcastSource.showCurrentChannel();