mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 12:02:20 +00:00
and more test
This commit is contained in:
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>
|
||||
Reference in new issue
Block a user