Summary

Harness status: OK

Found 14 tests

Details

ResultTest NameMessage
Passshould return an empty map when there are no attributes
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:17:9)
Passshould return null when there is no toJSON method
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:22:9)
Passshould return null when there is a toJSON method but it does not have the [Default] extended attribute
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:27:9)
Passshould return null when there is a toJSON method but it does not have the [Default] extended attribute even if this extended attribute exists on inherited interfaces
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:35:9)
Passshould not include static attributes
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:40:9)
Passshould not include attributes which are not JSON types
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:45:9)
Passshould not include operations
Asserts run
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:50:9)
Passshould return a map whose key/value pair represent the identifier and IDL type of valid attributes
Asserts run
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:55:9)
Pass
assert_true(true)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:56:9)
Pass
assert_equals("DOMString", "DOMString")
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:57:9)
Passshould return a properly ordered map that contains IDL types of valid attributes for inherited interfaces
Asserts run
Pass
assert_array_equals(["b", "a"], ["b", "a"])
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:65:9)
Pass
assert_array_equals(["long", "DOMString"], ["long", "DOMString"])
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:66:9)
Passshould not include attributes of the current interface when the [Default] toJSON method in inherited
Asserts run
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:74:9)
Pass
assert_true(true)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:75:9)
Pass
assert_equals("long", "long")
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:76:9)
Pass
assert_array_equals(["b"], ["b"])
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:77:9)
Passattributes declared further away in the inheritance hierarchy should be masked by attributes declared closer
Asserts run
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:86:9)
Pass
assert_true(true)
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:87:9)
Pass
assert_equals("DOMString", "DOMString")
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:88:9)
Passshould return an ordered map that ignores attributes of inherited interfaces which do not declare a [Default] toJSON operation.
Asserts run
Pass
assert_array_equals(["a", "c"], ["a", "c"])
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:97:9)
Pass
assert_array_equals(["DOMString", "long"], ["DOMString", "long"])
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:98:9)
Passshould return a properly ordered map that accounts for mixed-in interfaces which declare a [Default] toJSON operation.
Asserts runNo asserts ran
PassD includes M: member names are unique
Asserts run
Pass
assert_true(true, "member toJSON is unique")
    at self.IdlArray.<anonymous> ( /resources/idlharness.js:889:21)
Pass
assert_true(true, "member m is unique")
    at self.IdlArray.<anonymous> ( /resources/idlharness.js:889:21)
Pass
assert_true(true, "member undefined is unique")
    at self.IdlArray.<anonymous> ( /resources/idlharness.js:894:17)
Pass
assert_array_equals(["d", "m"], ["d", "m"])
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:108:9)
Pass
assert_array_equals(["DOMString", "long"], ["DOMString", "long"])
    at Test.<anonymous> ( /resources/test/tests/unit/IdlInterface/default_to_json_operation.html:109:9)