proveExpectation(expected));
log.println("... done");
log.println("closing the empty writer doc");
notifyEvents.clear();
wHelper.closeDoc(xTextDoc);
shortWait();
expected = new String[] { "OnUnfocus", "OnFocus", "OnViewClosed", "OnUnload" };
assure("Wrong events fired when closing empty doc",
proveExpectation(expected));