提交 8be32ae7 编写于 作者: K Kohsuke Kawaguchi

and more test

上级 f7a64d00
......@@ -41,6 +41,10 @@ public class BehaviorTest extends HudsonTestCase {
// 'includeSelf' should only affect the first axis and not afterward
assertEquals(1,asInt(p.executeJavaScript("findElementsBySelector($('test2'),'.a .b',true).length")));
assertEquals(1,asInt(p.executeJavaScript("findElementsBySelector($('test2'),'.a .b',false).length")));
// tag.class. Should exclude itself anyway even if it's included
assertEquals(1,asInt(p.executeJavaScript("findElementsBySelector($('test3'),'P.a',true).length")));
assertEquals(1,asInt(p.executeJavaScript("findElementsBySelector($('test3'),'P.a',false).length")));
}
private int asInt(ScriptResult r) {
......
......@@ -38,6 +38,10 @@ THE SOFTWARE.
</div>
</div>
<div id="test3" class="a">
<p class="a" />
</div>
</l:main-panel>
</l:layout>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册