and more test

This commit is contained in:
Kohsuke Kawaguchi committed 2011-03-11 18:04:22 -08:00
1 parent f7a64d00d4
commit 8be32ae788
2 files changed
+8

No files matched your search

@@ -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>