mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 289272c280086dda4bce0d31f2ce0fc1e7a08fa8
This commit is contained in:
parent
6f93950bf2
commit
78cf1982a2
230 changed files with 1832 additions and 1867 deletions
|
@ -28,10 +28,10 @@
|
|||
|
||||
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(Object.getPrototypeOf(Image), Function.prototype, "Image's prototype 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");
|
||||
assert_equals(Object.getPrototypeOf(new Image()), HTMLImageElement.prototype, "new Image()'s prototype is HTMLImageElement.prototype ");
|
||||
assert_equals(Object.getPrototypeOf(Image.prototype), HTMLElement.prototype, "Image.prototype's prototype is HTMLElement.prototype");
|
||||
|
||||
const desc = Object.getOwnPropertyDescriptor(Image, "prototype");
|
||||
assert_false(desc.configurable, "Image.prototype is not configurable");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue