driver.floatTo(toolBar, where.x, where.y);
assertThatToolBarIsFloating(oldAncestor);
}
private void assertThatToolBarIsFloating(Window oldAncestor) {
Window newAncestor = toolBarAncestor();
assertThat(newAncestor).isNotSameAs(oldAncestor);
Point newAncestorLocation = locationOf(newAncestor);
Point oldAncestorLocation = locationOf(oldAncestor);
assertThat(newAncestorLocation.x).isGreaterThan(oldAncestorLocation.x);
assertThat(newAncestorLocation.y).isGreaterThan(oldAncestorLocation.y);