From 75dece4cbfb472c6591b79383079b77f8666622b Mon Sep 17 00:00:00 2001 From: tobiasoberrauch Date: Thu, 23 Apr 2015 15:21:23 +0200 Subject: [PATCH] [BUG #9080] Return undefined after test is skipped --- .../source/test/tests/bom/client/Pdfjs.js | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/framework/source/test/tests/bom/client/Pdfjs.js b/framework/source/test/tests/bom/client/Pdfjs.js index 6495955411..e42a9211bf 100644 --- a/framework/source/test/tests/bom/client/Pdfjs.js +++ b/framework/source/test/tests/bom/client/Pdfjs.js @@ -25,14 +25,17 @@ */ describe("bom.client.Pdfjs", function() { - if (qx.core.Environment.get("browser.name") === "firefox") { - it("is PDF.js available", function (done) { - qx.core.Environment.getAsync("plugin.pdfjs", function (result) { - setTimeout(function () { - assert.isTrue(result); - done(); - }, 0); - }, this); - }); - } + it("is PDF.js available", function(done) { + if (qx.core.Environment.get("browser.name") !== "firefox") { + this.test.skipped = true; + done(); + return; + } + qx.core.Environment.getAsync("plugin.pdfjs", function(result) { + setTimeout(function() { + assert.isTrue(result); + done(); + }, 0); + }, this); + }); });