File tree 1 file changed +0
-13
lines changed
src/main/java/org/jvnet/hudson/test
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ private static class JellyCheck extends TestCase {
101
101
protected void runTest () throws Exception {
102
102
jct .createContext ().compileScript (jelly );
103
103
Document dom = new SAXReader ().read (jelly );
104
- checkLabelFor (dom );
105
104
if (requirePI ) {
106
105
ProcessingInstruction pi = dom .processingInstruction ("jelly" );
107
106
if (pi ==null || !pi .getText ().contains ("escape-by-default" ))
@@ -111,18 +110,6 @@ protected void runTest() throws Exception {
111
110
// TODO: what else can we check statically? use of taglibs?
112
111
}
113
112
114
- /**
115
- * Makes sure that <label for=...> is not used inside config.jelly nor global.jelly
116
- */
117
- private void checkLabelFor (Document dom ) {
118
- if (isConfigJelly () || isGlobalJelly ()) {
119
- if (!dom .selectNodes ("//label[@for]" ).isEmpty ())
120
- throw new AssertionError ("<label for=...> shouldn't be used because it doesn't work " +
121
- "when the configuration item is repeated. Use <label class=\" attach-previous\" > " +
122
- "to have your label attach to the previous DOM node instead.\n url=" +jelly );
123
- }
124
- }
125
-
126
113
private boolean isConfigJelly () {
127
114
return jelly .toString ().endsWith ("/config.jelly" );
128
115
}
You can’t perform that action at this time.
0 commit comments