use of org.eclipse.wst.css.core.internal.provisional.document.ICSSSelector in project webtools.sourceediting by eclipse.
the class CSSSelectorTest method testSelector09.
public void testSelector09() {
ICSSSelectorList list = createSelectorList("*#myid");
checkSelectorList(list, "*#myid", 1, 0);
ICSSSelector selector;
ICSSSelectorItem item;
selector = list.getSelector(0);
checkSelector(selector, "*#myid", 1, 10000, 0);
item = selector.getItem(0);
checkSimpleSelector(item, "*", true, 0, 0, 1, 0);
checkSimpleSelectorIDs(item, new String[] { "myid" });
}
use of org.eclipse.wst.css.core.internal.provisional.document.ICSSSelector in project webtools.sourceediting by eclipse.
the class CSSSelectorTest method testSelector31.
public void testSelector31() {
ICSSSelectorList list = createSelectorList("P.123.456");
checkSelectorList(list, "P.123.456", 1, 2);
ICSSSelector selector;
ICSSSelectorItem item;
selector = list.getSelector(0);
checkSelector(selector, "P.123.456", 1, 201, 2);
item = selector.getItem(0);
checkSimpleSelector(item, "P", false, 0, 2, 0, 0);
checkSimpleSelectorClasses(item, new String[] { "123", "456" });
}
use of org.eclipse.wst.css.core.internal.provisional.document.ICSSSelector in project webtools.sourceediting by eclipse.
the class CSSSelectorTest method testSelector35.
public void testSelector35() {
ICSSSelectorList list = createSelectorList("H2.123#46");
checkSelectorList(list, "H2.123#46", 1, 1);
ICSSSelector selector;
ICSSSelectorItem item;
selector = list.getSelector(0);
checkSelector(selector, "H2.123#46", 1, 10101, 1);
item = selector.getItem(0);
checkSimpleSelector(item, "H2", false, 0, 1, 1, 0);
checkSimpleSelectorClasses(item, new String[] { "123" });
checkSimpleSelectorIDs(item, new String[] { "46" });
}
use of org.eclipse.wst.css.core.internal.provisional.document.ICSSSelector in project webtools.sourceediting by eclipse.
the class CSSSelectorTest method testSelector11.
public void testSelector11() {
ICSSSelectorList list = createSelectorList("H1#z98y");
checkSelectorList(list, "H1#z98y", 1, 0);
ICSSSelector selector;
ICSSSelectorItem item;
selector = list.getSelector(0);
checkSelector(selector, "H1#z98y", 1, 10001, 0);
item = selector.getItem(0);
checkSimpleSelector(item, "H1", false, 0, 0, 1, 0);
checkSimpleSelectorIDs(item, new String[] { "z98y" });
}
use of org.eclipse.wst.css.core.internal.provisional.document.ICSSSelector in project webtools.sourceediting by eclipse.
the class CSSSelectorTest method testSelector26.
public void testSelector26() {
ICSSSelectorList list = createSelectorList("A:focus:hover");
checkSelectorList(list, "A:focus:hover", 1, 0);
ICSSSelector selector;
ICSSSelectorItem item;
selector = list.getSelector(0);
checkSelector(selector, "A:focus:hover", 1, 201, 0);
item = selector.getItem(0);
checkSimpleSelector(item, "A", false, 0, 0, 0, 2);
checkSimpleSelectorPseudoNames(item, new String[] { "focus", "hover" });
}
Aggregations