Index: third_party/WebKit/LayoutTests/external/wpt/html/semantics/embedded-content/the-img-element/Image-constructor.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/embedded-content/the-img-element/Image-constructor.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/embedded-content/the-img-element/Image-constructor.html |
index 1119f818f95ca90cc4890c8ac09a2922176d0955..aa838ec8774e2bcaac360bf8ed929e0facc7fa3e 100644 |
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/embedded-content/the-img-element/Image-constructor.html |
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/embedded-content/the-img-element/Image-constructor.html |
@@ -26,4 +26,12 @@ |
assert_true((new Image()).namespaceURI === "http://www.w3.org/1999/xhtml"); |
}, "Image namespace URI is correct"); |
+ test(function() { |
+ assert_equals(Image.name, "Image", "Image name should be Image (not HTMLImageElement)"); |
+ assert_equals(Image.__proto__, Function.prototype, "Image __proto__ is Function prototype"); |
+ assert_equals(Image.prototype, HTMLImageElement.prototype, "Image.prototype is same as HTMLImageElement.prototype"); |
+ assert_equals(new Image().__proto__, HTMLImageElement.prototype, "Image __proto__ is HTMLImageElement prototype "); |
+ assert_equals(Image.prototype.__proto__, HTMLElement.prototype, "Image.prototype __proto__ is HTMLElement prototype"); |
+ }, "NamedConstructor creates the correct object structure."); |
+ |
</script> |