##Toast Notifications
{
"title" : "The title",
"alert" :"HELLO!",
"duration" : "short|long",
"launch" : {
"type": "toast",
adb devices -l |
# switch Graphene to use remote reusable session | |
phantomjs --webdriver=4444 --remote-debugger-port=8888 --remote-debugger-autorun=true | |
# open browser at http://localhost:8888 |
ws: open | |
ws1: init | |
WebSocket.send {"msgType":"add","id":"81082ff9-a3b5-421e-87fa-109c893c871b","clientId":"client1","content":"Do or do not, there is no try."} | |
ws2: init | |
WebSocket.send {"msgType":"add","id":"81082ff9-a3b5-421e-87fa-109c893c871b","clientId":"client2"} | |
ws2: sent |
(function( send ) { | |
WebSocket.prototype.send = function( data ) { | |
console.debug( 'WebSocket.send', data ); | |
return send.call( this, data ); | |
} | |
})( WebSocket.prototype.send ); |
##Toast Notifications
{
"title" : "The title",
"alert" :"HELLO!",
"duration" : "short|long",
"launch" : {
"type": "toast",
curl -u 19614a6d-94a4-4788-a0bb-9d559f841b58:221610d0-4668-4379-9db7-29a086c98793 -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"deviceToken":"BSPA91bGDWDdl-xW3EmSs2bH7Qlo5AOfbCJtmyOukYxVHq8KKUqpPLBLUjettGYoN2nahBbAe3GgmxKPcZnqEIFFxHw3_brKOSmeXjZQuEVehSJTUdJuXUCmR3XweZ2MM_455fYMcvkUse1DIp1wjxnik2uHYSNl87wrJzLddoC7tPp-gch3eJAf","alias":"bob","categories":["lead"],"deviceType" : "iPhone", "operatingSystem" : "iOS", "osVersion" : "6.1.2"}' http://localhost:8080/ag-push/rest/registry/device |
{ | |
"status": 401 // this doesn't have to be repeated, since it is in HTTP header | |
"message": "Something failed", // a client-facing meaningful/descriptive message | |
"exception": "SomeException", // this is helpful to nail down error message | |
"code": 10034 // this is helpful to point user to particular configuration section, etc. | |
"more_info": "http://www.." // where client can get more information |
warp-rest/impl/impl-cxf/src/main/java/org/jboss/arquillian/extension/rest/warp/impl/cxf/interceptor/CxfContextBuilder.java | |
303: RestContextImpl restContext = (RestContextImpl) servletRequest.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE); | |
308: servletRequest.setAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE, restContext); | |
warp-rest/impl/impl-base/src/test/java/org/jboss/arquillian/extension/rest/warp/impl/provider/RestContextProviderTestCase.java | |
78: when(servletRequest.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE)).thenReturn(restContext); | |
141: when(servletRequest.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE)).thenReturn(null); | |
warp-rest/impl/impl-base/src/main/java/org/jboss/arquillian/extension/rest/warp/impl/provider/RestContextProvider.java | |
62: RestContext restContext = (RestContext) request.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE); |
window.Graphene = window.Graphene || {}; | |
window.Graphene.Page = window.Graphene.Page || {}; | |
window.Graphene.Page.XHRHalter = (function() { | |
var STATE_CONSTRUCT = -3, | |
STATE_OPEN = -2, | |
STATE_SEND = -1, | |
STATE_UNITIALIZED = 0, |
Results : | |
Tests run: 29, Failures: 0, Errors: 0, Skipped: 0 |