OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 <script> | |
5 test(function(t) | |
6 { | |
7 assert_equals(Image.name, "Image", "Image name should be Image (not HTMLImag eElement)"); | |
sashab
2017/01/20 04:37:05
This was failing - fixed by updating setClassName(
| |
8 assert_equals(Image.__proto__, HTMLElement, "Image __proto__ is HTMLElement" ); | |
sashab
2017/01/20 04:37:05
This test fails with the error:
FAIL NamedConstruc
| |
9 assert_equals(Image.prototype, HTMLImageElement.prototype, "Image.prototype is same as HTMLImageElement.prototype"); | |
10 assert_equals(new Image().__proto__, HTMLImageElement.prototype, "Image __pr oto__ is HTMLImageElement prototype "); | |
11 assert_equals(Image.prototype.__proto__, HTMLElement.prototype, "Image.proto type __proto__ is HTMLElement prototype"); | |
12 }, "NamedConstructor creates the correct object structure."); | |
13 </script> | |
OLD | NEW |