UNPKG

@qooxdoo/framework

Version:

The JS Framework for Coders

38 lines (28 loc) 1 kB
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2007-2012 1&1 Internet AG, Germany, http://www.1und1.de License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for details. Authors: * Christopher Zuendorf (czuendorf) ************************************************************************ */ qx.Class.define("qx.test.bom.client.OperatingSystem", { extend: qx.dev.unit.TestCase, members: { testUsageOfGetName() { var osName = qx.bom.client.OperatingSystem.getName(); this.assertString(osName); this.assertNotEquals("", osName); }, testUsageOfGetVersion() { if (qx.bom.client.OperatingSystem.getName() !== "linux") { var osVersion = qx.bom.client.OperatingSystem.getVersion(); this.assertString(osVersion); this.assertNotEquals("", osVersion); } } } });