root = loadAndInfer(ConditionWireFalse.class);
}
public void testInference() throws JaxenException {
Frame page = assertHasFrame(root, "container");
InputTextField source = assertHasInputTextField(page, "source");
InputTextField target = assertHasInputTextField(page, "target");
SyncWire wire = assertHasSyncWire(page, source, target);
Function cond = assertHasFunction(page, "Always False");
// [inferred]
// we should have Event 'edit' in source
Event srcEdit = source.getOnChange();
Operation srcOp = assertHasOperation(source, "update");
Event targetEdit = target.getOnChange();
Operation targetOp = assertHasOperation(target, "update");
assertNotSame(srcEdit, targetEdit);
assertNotSame(srcOp, targetOp);
// there should be a run wire between these two