Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 | |
| 2 <!DOCTYPE html> | |
| 3 <script src="../../resources/testharness.js"></script> | |
| 4 <script src="../../resources/testharnessreport.js"></script> | |
| 5 <script> | |
| 6 test(function(t) | |
| 7 { | |
| 8 //assert_equals(Image.name, "Image", "Image name should be Image (not HTMLIm ageElement)"); | |
|
Yuki
2017/02/21 06:57:36
We want this test.
https://heycam.github.io/webid
| |
| 9 //assert_equals(Image.__proto__, HTMLElement, "Image __proto__ is HTMLElemen t"); | |
|
sashab
2017/02/21 06:37:29
Just to confirm -- we don't want these, correct?
Yuki
2017/02/21 06:57:36
https://heycam.github.io/webidl/#named-constructor
| |
| 10 assert_equals(Image.prototype, HTMLImageElement.prototype, "Image.prototype is same as HTMLImageElement.prototype"); | |
| 11 assert_equals(new Image().__proto__, HTMLImageElement.prototype, "Image __pr oto__ is HTMLImageElement prototype "); | |
| 12 assert_equals(Image.prototype.__proto__, HTMLElement.prototype, "Image.proto type __proto__ is HTMLElement prototype"); | |
| 13 }, "NamedConstructor creates the correct object structure."); | |
| 14 </script> | |
| OLD | NEW |