Measuring compatibility of viewers by leveraging user-provided element definitions
AssigneeEntit Software LLC
InventorsElad Levi, Avigad Mizrahi, Ran Bar Zik
Life of this patent
Estimating the term…
Abstract
Example embodiments relate to measuring compatibility of viewers. An example method may include accessing a document object model (DOM) generated by an anchor document viewer in response to rendering document code. The DOM may include multiple DOM elements that correspond to graphical elements displayable by the anchor document viewer. The method may include, for each of at least one of the multiple DOM elements, allowing a user to provide an element definition that indicates how important it is that the corresponding graphical element displays as it does in the anchor document viewer.
Claims14
A method for measuring compatibility of viewers, the method comprising:
- accessing a document object model (DOM) generated by an anchor document viewer in response to rendering document code, wherein the DOM includes multiple DOM elements that correspond to graphical elements displayable by the anchor document viewer;
- for each of at least one of the multiple DOM elements, allowing a user to provide an element definition that indicates how important it is that the corresponding graphical element displays as it does in the anchor document viewer,
- wherein allowing a user to provide an element definition comprises providing a graphical user interface (GUI) that allows the user to activate a menu related to the corresponding graphical element, wherein the menu allows the user to set or select an importance rating and multiple properties for the element definition of the corresponding graphical element;
- determining rendering differences, utilizing the importance rating and the multiple properties, between the anchor document viewer and a target document viewer, including comparing rendering of a DOM element in the anchor document viewer and a corresponding DOM element in the target document viewer to determine an element difference rating;
- determining a weight value to designate an importance level for the rendering differences;
- and
- calculating a viewer difference rating utilizing the element difference rating to determine how similarly the target document viewer renders in comparison to the anchor document viewer.
A non-transitory machine-readable storage medium encoded with instructions for measuring compatibility of viewers, the instructions executable by a processor of a system to cause the system to:
- access a first document object model (DOM) generated by an anchor document viewer and a second DOM generated by a target document viewer, each DOM generated in response to rendering document code, wherein for each of multiple graphical elements displayable by the document viewers, each DOM includes a corresponding DOM element;
- access element definitions that indicate how important particular differences are with respect to various DOM elements, wherein the element definitions include an importance rating and multiple properties for each of the various DOM elements, and the importance rating and multiple properties are received via a graphical user interface (GUI) allowing a user to set or select the importance rating and the multiple properties;
- determine rendering differences, utilizing the importance rating and the multiple properties, between the anchor document viewer and a target document viewer, including comparing rendering of a DOM element in the anchor document viewer and a corresponding DOM element in the target document viewer to determine an element difference rating;
- determine a weight value to designate an importance level for the rendering differences;
- and
- calculate a viewer difference rating that is a quantifiable measurement of how similarly the target document viewer renders the document code with respect to the anchor document viewer.
A system for measuring compatibility of viewers, the system comprising:
- a test creator to, concurrent with creating a test for a webpage or application, allow a user to provide element definitions for graphical elements that are displayable on user interface (UI) pages of the webpage or application, wherein each element definition indicates how important it is that the particular graphical element displays in a particular manner,
- wherein to allow a user to provide element definitions comprises providing a graphical user interface (GUI) that allows the user to activate a menu related to the particular graphical element, and the menu allows the user to set or select an importance rating and multiple properties for the element definition of the particular graphical element;
- and
- a test executor to:
- launch the webpage or application in an anchor viewer and a target viewer and execute the test with respect to each viewer,
- determine differences between how the anchor viewer and the target viewer display the graphical elements of the webpage or application based on the element definitions, wherein to determine the differences comprises determining, for each graphical element, an element difference rating based on the importance rating and multiple properties for the element definition of the graphical element,
- determine a weight value to designate an importance level for the rendering differences, and
- calculate a viewer difference rating based on the element difference ratings for the graphical elements, wherein the viewer difference rating is a quantifiable measurement of how important the differences are.
Dependencies are inferred from the claim text.