Hi,

While debugging https://issues.apache.org/jira/browse/WICKET-5499 I
stumbled upon
 org.apache.wicket.markup.html.internal.EnclosureTest#testRender10

Maybe I miss something but this confuses me with its behavior.
There is a page with the following markup:

<html xmlns:wicket>
<body>
  <wicket:enclosure child="input">
    <input wicket:id="input" type="checkbox" value="salami"/>
    <span wicket:id="label">label</span>
  </wicket:enclosure>
</body>
</html>


and Java code:

public EnclosurePage_10()
{
 add(new CheckBox("input"));
add(new Label("label"));
}

The test changes the visibility of the CheckBox and/or the Label and
verifies the response markup.
No matter what combination of visibility these components have the final
result is always the same - the enclosure and its children are always
rendered.

Am I missing something or the test got broken at some point after running
with -Dwicket.replace.expected.results=true ?


Martin Grigorov
Wicket Training and Consulting

Reply via email to