UNPKG

simmerjs

Version:

A pure Javascript reverse CSS selector engine which calculates a DOM element's unique CSS selector on the current page.

202 lines (59 loc) 4.64 kB
<?xml version="1.0" encoding="UTF-8" ?> <testsuites errors="0" failures="0" tests="25"> <testsuite name="index" errors="0" failures="0" hostname="" id="" package="index" skipped="0" tests="25" time="34.38" timestamp="Mon, 26 Jun 2017 23:53:48 GMT"> <testcase name="can analyze an element with an ID" classname="index" time="2.234" assertions="2"> </testcase> <testcase name="can analyze an element with classes only (No ID)" classname="index" time="1.314" assertions="2"> </testcase> <testcase name="can analyze an element which is a child of an element with an ID" classname="index" time="1.322" assertions="2"> </testcase> <testcase name="can analyze anelement which has a class only (no IDs on it or its direct parent)" classname="index" time="1.327" assertions="2"> </testcase> <testcase name="can analyze an element with an invalid ID (isnt unique)" classname="index" time="1.327" assertions="2"> </testcase> <testcase name="can analyze an element with an invalid ID (isnt unique) at same level as other element with the same ID" classname="index" time="1.316" assertions="2"> </testcase> <testcase name="can analyze an element with identical siblings (neither unique ID nor class)" classname="index" time="1.370" assertions="2"> </testcase> <testcase name="can analyze an element with a parent which has identical siblings" classname="index" time="1.314" assertions="2"> </testcase> <testcase name="can analyze an image whose parent has an invalid ID" classname="index" time="1.344" assertions="2"> </testcase> <testcase name="can analyze an image with a non unique src attribute" classname="index" time="1.325" assertions="2"> </testcase> <testcase name="can analyze an image with a unique src attribute" classname="index" time="1.389" assertions="2"> </testcase> <testcase name="can analyze a child of a hierarchy with identical siblings and no unique IDs" classname="index" time="1.283" assertions="2"> </testcase> <testcase name="can analyze an anchor (link) with a unique href attribute" classname="index" time="1.346" assertions="2"> </testcase> <testcase name="can analyze a link with a non unique href attribute and a heirarchy which has no unique IDs" classname="index" time="1.332" assertions="2"> </testcase> <testcase name="can analyze an element with identical siblings, no IDs and sibling with the same class" classname="index" time="1.401" assertions="2"> </testcase> <testcase name="can analyze an element with identical siblings, no ID and same class as sibling but different class order" classname="index" time="1.388" assertions="2"> </testcase> <testcase name="can analyze an element with identical siblings, no ID and different classes completely" classname="index" time="1.342" assertions="2"> </testcase> <testcase name="cannot parse an element with an identical hierarchy whithin the Simmers default configured depth" classname="index" time="1.366" assertions="4"> </testcase> <testcase name="can analyze an element with a parent which has an invalid Tag name" classname="index" time="1.366" assertions="2"> </testcase> <testcase name="can analyze an element based only on child elements when specific enough at level 1" classname="index" time="1.292" assertions="3"> </testcase> <testcase name="can analyze an element based only on child elements when specific enough at level 2" classname="index" time="1.360" assertions="3"> </testcase> <testcase name="can analyze an element with a valid ID that ends with numbers in its ID" classname="index" time="1.382" assertions="3"> </testcase> <testcase name="can analyze an element with a valid ID that has numbers in the middle of its ID" classname="index" time="1.313" assertions="3"> </testcase> <testcase name="can analyze an element with an invalid ID (not unique)" classname="index" time="1.337" assertions="3"> </testcase> <testcase name="cant analyze an element which is longer than the selectorMaxLength chars" classname="index" time="1.295" assertions="2"> </testcase> </testsuite> </testsuites>