// In the case that the test fails (i.e. the child frame doesn't get the injected object,
// the call to testController.setStringValue in the child frame's onload handler will
// not be made.
getActivity().getWebView().loadData(
"<html><head></head><body>" +
"<iframe id=\"childFrame\" onload=\"testController.setStringValue('PASS');\" />" +
"</body></html>", "text/html", null);
assertEquals("PASS", mTestController.waitForStringValue());