blob: b3051c3fd3fa633c0c675b7d49f7ffe7a732c829 [file] [log] [blame]
Tests the interfaces of the highlight API, which include HighlightRangeGroup, HighlightMap, and extensions to the CSS namespace.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Testing Highlight:
PASS HighlightRangeGroup instanceof Function is true
PASS typeof HighlightRangeGroup is "function"
PASS new HighlightRangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2})) instanceof HighlightRangeGroup is true
PASS HighlightMap instanceof Function is true
PASS typeof HighlightMap is "function"
PASS new HighlightMap() instanceof HighlightMap is true
PASS new HighlightMap().set("foo-styling",new HighlightRangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2}))) is defined.
PASS CSS.highlights is defined.
PASS CSS.highlights.set("foo-styling",new HighlightRangeGroup(new StaticRange({startContainer: document.body, startOffset: 1, endContainer: document.body, endOffset: 2}))) is CSS.highlights
PASS successfullyParsed is true
TEST COMPLETE