// Window.alert("Got message as string: " + event.getBody());
assertFalse("!isMessageNumber()", event.isMessageNumber());
assertFalse("!isMessageString()", event.isMessageString());
assertTrue("isMessageObject()", event.isMessageObject());
assertFalse("!isMessageBoolean()", event.isMessageBoolean());
JsArrayNumber result = event.getBodyArrayNumber();
assertEquals("length of array", 4, result.length());
assertEquals("array[0]", 1.1, result.get(0));
assertEquals("array[1]", 2.2, result.get(1));
assertEquals("array[2]", 3.3, result.get(2));
assertEquals("array[3]", 4.4, result.get(3));
finishTest();
}
});
wp.sendMessage("arrayNumber", workerID);
}