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..eec771161c8205d3c8746a257044637f5d07c866 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/dom/named-constructor-prototype-chain.html |
| @@ -0,0 +1,11 @@ |
| +<!DOCTYPE html> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<script> |
| +test(function(t) |
| +{ |
| + 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_not_equals(Image.prototype.__proto__, HTMLImageElement.prototype, "Image.prototype __proto__ is not HTMLImageElement prototype"); |
|
Yuki
2017/01/19 09:57:28
We know that Image.prototype.__proto__ must be HTM
sashab
2017/01/20 04:37:05
Done.
|
| +}, "NamedConstructor creates the correct object structure."); |
| +</script> |