abc

Summary

Harness status: OK

Found 25 tests

Details

ResultTest NameMessage
PassHighlight initializes empty (if no ranges are provided) and with priority 0.
Asserts run
Pass
assert_equals(0, 0, "Highlight uses 0 as priority by default.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:13:5)
Pass
assert_equals(123, 123, "Highlight sets priority correctly.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:16:5)
Pass
assert_equals(0, 0, "Highlight starts empty")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:18:5)
PassHighlight add and has methods work as expected (using the following combination of ranges [[object Range], [object Range], [object Range]])
Asserts run
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:44:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:45:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:46:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:48:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:49:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:50:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after only adding 1 range")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:52:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after only adding same range twice")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:54:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:57:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:58:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:59:7)
Pass
assert_equals(2, 2, "Highlight.size is 2 after only adding two different ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:61:7)
PassHighlight delete method works as expected (using the following combination of ranges [[object Range], [object Range], [object Range]])
Asserts run
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that is not in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:66:7)
Pass
assert_true(true, "Highlight.delete returns true when trying to delete a range that is in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:67:7)
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that was in the highlight before but it's not there anymore")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:68:7)
Pass
assert_true(true, "Highlight.delete returns true when trying to delete a range that is in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:69:7)
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that was in the highlight before but it's not there anymore")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:70:7)
PassHighlight constructor behaves like a set when using equal ranges (using the following combination of ranges [[object Range], [object Range], [object Range]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the range used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:75:7)
Pass
assert_equals(1, 1, "Highlight behaves like a set when constructing it with two equal ranges.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:76:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with one of the ranges used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:79:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with the other range used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:80:7)
Pass
assert_equals(2, 2, "Highlight behaves like a set when constructing it with two pairs of equal ranges.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:81:7)
PassHighlight constructor works as expected when called with one range (using the following combination of ranges [[object Range], [object Range], [object Range]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:86:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after constructing it with one range")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:87:7)
PassHighlight constructor works as expected when called with two ranges (using the following combination of ranges [[object Range], [object Range], [object Range]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the first range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:92:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with the second range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:93:7)
Pass
assert_equals(2, 2, "Highlight.size is 2 after constructing it with two ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:94:7)
PassHighlight clear method works as expected (using the following combination of ranges [[object Range], [object Range], [object Range]])
Asserts run
Pass
assert_equals(2, 2, "Highlight has size 2 after constructing it with two ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:99:7)
Pass
assert_equals(0, 0, "Highlight becomes empty after executing clear()")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:101:7)
Pass
assert_equals(0, 0, "Highlight is still empty after executing clear() twice")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:103:7)
PassHighlight add and has methods work as expected (using the following combination of ranges [[object StaticRange], [object StaticRange], [object StaticRange]])
Asserts run
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:44:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:45:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:46:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:48:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:49:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:50:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after only adding 1 range")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:52:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after only adding same range twice")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:54:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:57:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:58:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:59:7)
Pass
assert_equals(2, 2, "Highlight.size is 2 after only adding two different ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:61:7)
PassHighlight delete method works as expected (using the following combination of ranges [[object StaticRange], [object StaticRange], [object StaticRange]])
Asserts run
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that is not in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:66:7)
Pass
assert_true(true, "Highlight.delete returns true when trying to delete a range that is in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:67:7)
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that was in the highlight before but it's not there anymore")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:68:7)
Pass
assert_true(true, "Highlight.delete returns true when trying to delete a range that is in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:69:7)
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that was in the highlight before but it's not there anymore")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:70:7)
PassHighlight constructor behaves like a set when using equal ranges (using the following combination of ranges [[object StaticRange], [object StaticRange], [object StaticRange]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the range used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:75:7)
Pass
assert_equals(1, 1, "Highlight behaves like a set when constructing it with two equal ranges.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:76:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with one of the ranges used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:79:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with the other range used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:80:7)
Pass
assert_equals(2, 2, "Highlight behaves like a set when constructing it with two pairs of equal ranges.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:81:7)
PassHighlight constructor works as expected when called with one range (using the following combination of ranges [[object StaticRange], [object StaticRange], [object StaticRange]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:86:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after constructing it with one range")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:87:7)
PassHighlight constructor works as expected when called with two ranges (using the following combination of ranges [[object StaticRange], [object StaticRange], [object StaticRange]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the first range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:92:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with the second range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:93:7)
Pass
assert_equals(2, 2, "Highlight.size is 2 after constructing it with two ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:94:7)
PassHighlight clear method works as expected (using the following combination of ranges [[object StaticRange], [object StaticRange], [object StaticRange]])
Asserts run
Pass
assert_equals(2, 2, "Highlight has size 2 after constructing it with two ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:99:7)
Pass
assert_equals(0, 0, "Highlight becomes empty after executing clear()")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:101:7)
Pass
assert_equals(0, 0, "Highlight is still empty after executing clear() twice")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:103:7)
PassHighlight add and has methods work as expected (using the following combination of ranges [[object Range], [object StaticRange], [object Range]])
Asserts run
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:44:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:45:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:46:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:48:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:49:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:50:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after only adding 1 range")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:52:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after only adding same range twice")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:54:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:57:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:58:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:59:7)
Pass
assert_equals(2, 2, "Highlight.size is 2 after only adding two different ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:61:7)
PassHighlight delete method works as expected (using the following combination of ranges [[object Range], [object StaticRange], [object Range]])
Asserts run
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that is not in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:66:7)
Pass
assert_true(true, "Highlight.delete returns true when trying to delete a range that is in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:67:7)
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that was in the highlight before but it's not there anymore")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:68:7)
Pass
assert_true(true, "Highlight.delete returns true when trying to delete a range that is in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:69:7)
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that was in the highlight before but it's not there anymore")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:70:7)
PassHighlight constructor behaves like a set when using equal ranges (using the following combination of ranges [[object Range], [object StaticRange], [object Range]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the range used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:75:7)
Pass
assert_equals(1, 1, "Highlight behaves like a set when constructing it with two equal ranges.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:76:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with one of the ranges used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:79:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with the other range used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:80:7)
Pass
assert_equals(2, 2, "Highlight behaves like a set when constructing it with two pairs of equal ranges.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:81:7)
PassHighlight constructor works as expected when called with one range (using the following combination of ranges [[object Range], [object StaticRange], [object Range]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:86:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after constructing it with one range")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:87:7)
PassHighlight constructor works as expected when called with two ranges (using the following combination of ranges [[object Range], [object StaticRange], [object Range]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the first range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:92:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with the second range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:93:7)
Pass
assert_equals(2, 2, "Highlight.size is 2 after constructing it with two ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:94:7)
PassHighlight clear method works as expected (using the following combination of ranges [[object Range], [object StaticRange], [object Range]])
Asserts run
Pass
assert_equals(2, 2, "Highlight has size 2 after constructing it with two ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:99:7)
Pass
assert_equals(0, 0, "Highlight becomes empty after executing clear()")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:101:7)
Pass
assert_equals(0, 0, "Highlight is still empty after executing clear() twice")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:103:7)
PassHighlight add and has methods work as expected (using the following combination of ranges [[object StaticRange], [object Range], [object StaticRange]])
Asserts run
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:44:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:45:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:46:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:48:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:49:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:50:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after only adding 1 range")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:52:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after only adding same range twice")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:54:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:57:7)
Pass
assert_true(true, "Highlight.has returns true when it contains the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:58:7)
Pass
assert_false(false, "Highlight.has returns false when it doesn't contain the range which is passed as the argument")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:59:7)
Pass
assert_equals(2, 2, "Highlight.size is 2 after only adding two different ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:61:7)
PassHighlight delete method works as expected (using the following combination of ranges [[object StaticRange], [object Range], [object StaticRange]])
Asserts run
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that is not in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:66:7)
Pass
assert_true(true, "Highlight.delete returns true when trying to delete a range that is in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:67:7)
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that was in the highlight before but it's not there anymore")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:68:7)
Pass
assert_true(true, "Highlight.delete returns true when trying to delete a range that is in the highlight")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:69:7)
Pass
assert_false(false, "Highlight.delete returns false when trying to delete a range that was in the highlight before but it's not there anymore")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:70:7)
PassHighlight constructor behaves like a set when using equal ranges (using the following combination of ranges [[object StaticRange], [object Range], [object StaticRange]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the range used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:75:7)
Pass
assert_equals(1, 1, "Highlight behaves like a set when constructing it with two equal ranges.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:76:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with one of the ranges used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:79:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with the other range used twice in the constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:80:7)
Pass
assert_equals(2, 2, "Highlight behaves like a set when constructing it with two pairs of equal ranges.")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:81:7)
PassHighlight constructor works as expected when called with one range (using the following combination of ranges [[object StaticRange], [object Range], [object StaticRange]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:86:7)
Pass
assert_equals(1, 1, "Highlight.size is 1 after constructing it with one range")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:87:7)
PassHighlight constructor works as expected when called with two ranges (using the following combination of ranges [[object StaticRange], [object Range], [object StaticRange]])
Asserts run
Pass
assert_true(true, "Highlight.has returns true when it is called with the first range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:92:7)
Pass
assert_true(true, "Highlight.has returns true when it is called with the second range used in its constructor")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:93:7)
Pass
assert_equals(2, 2, "Highlight.size is 2 after constructing it with two ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:94:7)
PassHighlight clear method works as expected (using the following combination of ranges [[object StaticRange], [object Range], [object StaticRange]])
Asserts run
Pass
assert_equals(2, 2, "Highlight has size 2 after constructing it with two ranges")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:99:7)
Pass
assert_equals(0, 0, "Highlight becomes empty after executing clear()")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:101:7)
Pass
assert_equals(0, 0, "Highlight is still empty after executing clear() twice")
    at Test.<anonymous> ( /css/css-highlight-api/Highlight-setlike.html:103:7)