/*
* Copyright 2012 Red Hat, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
@test
@bug 7043963
@summary Tests that the screen location of windows is
updated properly after a maximize.
@author Denis Lila
@library ../../regtesthelpers
@build Util
@run main MutterMaximizeTest
*/
@SuppressWarnings("serial")
return;
}
//Display the window.
}
try {
robotThread.start();
} finally {
}
}
while (t.isAlive()) {
try {
t.join();
} catch (InterruptedException e) {
}
}
}
long dT = 0;
try {
if (toSleep > 0) {
}
// if this ends without an interrupted exception,
// that's good enough.
break;
} catch (InterruptedException e) {
}
}
}
}
}
}
}
}
}
// f must be visible
public void run() {
// wait for the location to be set.
sleepFor(2000);
// double click should maximize the frame
doubleClick(r);
// wait for location again.
sleepFor(2000);
throw new RuntimeException("Bad location after maximize. Window location has not moved");
}
}
});
return robot;
}
}