Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/dom/named-constructor-prototype-chain.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/named-constructor-prototype-chain.html b/third_party/WebKit/LayoutTests/fast/dom/named-constructor-prototype-chain.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5f1e1534700582cc616140414840fc3c27801f6a |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/dom/named-constructor-prototype-chain.html |
| @@ -0,0 +1,14 @@ |
| + |
|
tkent
2017/03/02 06:32:30
Please do not add new test to fast/dom/.
Is Layou
|
| +<!DOCTYPE html> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<script> |
| +test(function(t) |
| +{ |
| + 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> |