Summary

Harness status: OK

Found 5 tests

Details

ResultTest NameMessage
PassImage constructor works
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:14:5)
PassImage and HTMLImageElement share a prototype
Asserts run
Pass
assert_equals(object "[object HTMLImageElement]", object "[object HTMLImageElement]")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:18:5)
PassImage localName is img
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:22:5)
PassImage namespace URI is correct
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:26:5)
PassNamedConstructor creates the correct object structure.
Asserts run
Pass
assert_equals("Image", "Image", "Image name should be Image (not HTMLImageElement)")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:30:7)
Pass
assert_equals(function "function () { [native code] }", function "function () { [native code] }", "Image's prototype is Function.prototype")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:31:7)
Pass
assert_equals(object "[object HTMLImageElement]", object "[object HTMLImageElement]", "Image.prototype is same as HTMLImageElement.prototype")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:32:7)
Pass
assert_equals(object "[object HTMLImageElement]", object "[object HTMLImageElement]", "new Image()'s prototype is HTMLImageElement.prototype ")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:33:7)
Pass
assert_equals(object "[object HTMLElement]", object "[object HTMLElement]", "Image.prototype's prototype is HTMLElement.prototype")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:34:7)
Pass
assert_false(false, "Image.prototype is not configurable")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:37:7)
Pass
assert_false(false, "Image.prototype is not enumerable")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:38:7)
Pass
assert_false(false, "Image.prototype is not writable")
    at Test.<anonymous> ( /html/semantics/embedded-content/the-img-element/Image-constructor.html:39:7)