提交 c1e89aa7 编写于 作者: K Kohsuke Kawaguchi

report URL in case of a failure

上级 fccc3498
...@@ -95,7 +95,7 @@ public class JellyTestSuiteBuilder { ...@@ -95,7 +95,7 @@ public class JellyTestSuiteBuilder {
if (requirePI) { if (requirePI) {
ProcessingInstruction pi = dom.processingInstruction("jelly"); ProcessingInstruction pi = dom.processingInstruction("jelly");
if (pi==null || !pi.getText().contains("escape-by-default")) if (pi==null || !pi.getText().contains("escape-by-default"))
throw new AssertionError("<?jelly escape-by-default='true'?> is missing"); throw new AssertionError("<?jelly escape-by-default='true'?> is missing in "+jelly);
} }
// TODO: what else can we check statically? use of taglibs? // TODO: what else can we check statically? use of taglibs?
...@@ -109,7 +109,7 @@ public class JellyTestSuiteBuilder { ...@@ -109,7 +109,7 @@ public class JellyTestSuiteBuilder {
if (!dom.selectNodes("//label[@for]").isEmpty()) if (!dom.selectNodes("//label[@for]").isEmpty())
throw new AssertionError("<label for=...> shouldn't be used because it doesn't work " + throw new AssertionError("<label for=...> shouldn't be used because it doesn't work " +
"when the configuration item is repeated. Use <label class=\"attach-previous\"> " + "when the configuration item is repeated. Use <label class=\"attach-previous\"> " +
"to have your label attach to the previous DOM node instead."); "to have your label attach to the previous DOM node instead.\nurl="+jelly);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册