//parentsUntil()
content = "<div id='mainDiv'><div id='subDiv1' class='subDiv'><div id='subSubDiv1'><p id='p1'>child1</p></div></div><div id='subDiv2' class='subDiv'><div id='subSubDiv2'><p id='p2'>child2</p></div></div></div>";
$(e).html(content);
- $("p",e).parentsUntil("#mainDiv").css(CSS.COLOR.with(RGBColor.RED));
+ $("p", e).parentsUntil("#mainDiv").css(CSS.COLOR.with(RGBColor.RED));
assertEquals("red", $("#subDiv1", e).css(CSS.COLOR, false));
assertEquals("red", $("#subSubDiv1", e).css(CSS.COLOR, false));
assertEquals("red", $("#subDiv2", e).css(CSS.COLOR, false));
content = "<div id='mainDiv'><div id='subDiv1' class='subDiv'><div id='subSubDiv1'><p id='p1'>child1</p></div></div><div id='subDiv2' class='subDiv'><div id='subSubDiv2'><p id='p2'>child2</p></div></div></div>";
$(e).html(content);
Element node = $("#mainDiv", e).get(0);
- $("p",e).parentsUntil(node).css(CSS.COLOR.with(RGBColor.RED));
+ $("p", e).parentsUntil(node).css(CSS.COLOR.with(RGBColor.RED));
assertEquals("red", $("#subDiv1", e).css(CSS.COLOR, false));
assertEquals("red", $("#subSubDiv1", e).css(CSS.COLOR, false));
assertEquals("red", $("#subDiv2", e).css(CSS.COLOR, false));