Update web-platform-tests to revision 289272c280086dda4bce0d31f2ce0fc1e7a08fa8

This commit is contained in:
WPT Sync Bot 2021-02-03 08:20:34 +00:00
parent 6f93950bf2
commit 78cf1982a2
230 changed files with 1832 additions and 1867 deletions

View file

@ -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");