Last active
August 29, 2015 14:06
-
-
Save jhuska/48faa737f119ab6ecfeb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ArquillianResource | |
private AjaxHalter ajaxHalter; | |
@Test | |
public void testAjaxHalter() { | |
ajaxHalter.enable(); | |
xhr.click(); | |
AjaxHalter halter = ajaxHalter.getHandleBlocking(); | |
assertEquals("SEND", status.getText()); | |
halter.continueBefore(AjaxState.LOADING); | |
assertEquals("SEND OPENED HEADERS_RECEIVED", status.getText()); | |
halter.continueBefore(AjaxState.DONE); | |
assertEquals("SEND OPENED HEADERS_RECEIVED LOADING", status.getText()); | |
halter.complete(); | |
assertEquals("SEND OPENED HEADERS_RECEIVED LOADING DONE", status.getText()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment