}
public void testParseQueryStringPersistent() {
postMessageMethod = new PostMessageCallback() {
public void postMessage(JavaScriptObject message) {
DataBag messageBag = message.cast();
assertEquals("type", 103, messageBag.getIntProperty("type"));
JavaScriptObject options = messageBag.getJSObjectProperty("options");
assertNotNull("options", options);
DataBag optionsBag = options.cast();
assertEquals("reload url", "http://foo.com?foo=good&SpeedTracer=xhr(http://hiddenmonitor.com),header(header:monitor),timeout(10)&speed=ludicrous",
optionsBag.getStringProperty("reload"));
}
};
doInjectedTest(new Method() {
public void execute() {
nativeParseQueryString("http://foo.com?foo=good&SpeedTracer=xhr(http://hiddenmonitor.com),header(header:monitor),monitor,blah,timeout(10)&speed=ludicrous",