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

added a test case

上级 e429b697
......@@ -134,9 +134,11 @@ public class HistoryWidget<O extends ModelObject,T> extends Widget {
trimmed = itr.hasNext(); // if we don't have enough items in the base list, setting this to false will optimize the next getRenderList() invocation.
return updateFirstTransientBuildKey(lst);
}
} else
} else {
// to prevent baseList's concrete type from getting picked up by <j:forEach> in view
return updateFirstTransientBuildKey(Iterators.wrap(baseList));
}
}
public boolean isTrimmed() {
return trimmed;
......
package hudson.widgets
import org.jvnet.hudson.test.HudsonTestCase
import org.jvnet.hudson.test.Bug
/**
*
*
* @author Kohsuke Kawaguchi
*/
class HistoryWidgetTest extends HudsonTestCase {
@Bug(15499)
void testMoreLink() {
def p = createFreeStyleProject();
for (x in 1..3) {
assertBuildStatusSuccess(p.scheduleBuild2(0))
}
def wc = createWebClient()
wc.javaScriptEnabled = false
wc.goTo("job/${p.name}/buildHistory/all");
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册