mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -26,4 +26,12 @@
|
|||
assert_true((new Image()).namespaceURI === "http://www.w3.org/1999/xhtml");
|
||||
}, "Image namespace URI is correct");
|
||||
|
||||
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(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");
|
||||
}, "NamedConstructor creates the correct object structure.");
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue