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",
"?foo=good&SpeedTracer=xhr(http://hiddenmonitor.com),header(header:monitor),monitor,blah,timeout(10)");
assertTrue("callback invoked", postMessageCallbackInvoked);
}