Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Commit

Permalink
[BUG #9080] Return undefined after test is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasoberrauch committed Apr 23, 2015
1 parent 7794840 commit 75dece4
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions framework/source/test/tests/bom/client/Pdfjs.js
Expand Up @@ -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);
});
});

0 comments on commit 75dece4

Please sign in to comment.