@qooxdoo/framework
Version:
The JS Framework for Coders
56 lines (43 loc) • 1.51 kB
JavaScript
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2007-2008 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:
* Alexander Steitz (aback)
************************************************************************ */
qx.Class.define("qx.test.bom.Window",
{
extend : qx.dev.unit.TestCase,
members :
{
// Disabling tests for native window because every browser has a popup
// blocker enabled. As long as we do not have special setup test machines
// these tests will fail. Adding a try ... catch block won't helper either
// since we do not want to blur the test results
/*testOpen : function()
{
var win = qx.bom.Window.open("http://qooxdoo.org");
this.assertFalse(win.closed);
win.close();
},
testClose : function()
{
var win = qx.bom.Window.open("http://qooxdoo.org");
qx.bom.Window.close(win);
this.assertTrue(qx.bom.Window.isClosed(win));
},
testIsClosed : function()
{
var win = qx.bom.Window.open("http://qooxdoo.org");
this.assertFalse(qx.bom.Window.isClosed(win));
win.close();
var win2 = qx.bom.Window.open("http://qooxdoo.org");
win2.close();
this.assertTrue(qx.bom.Window.isClosed(win2));
}*/
}
});