1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[js] test case new Image

This commit is contained in:
Witold Filipczyk 2024-11-15 18:49:56 +01:00
parent 02b02c2950
commit efc7049120
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<body>
<script>
function myFunction() {
var image = new Image;
console.assert(image.nodeType === 1, 'Image type 1');
console.assert(image.tagName === 'IMG', 'IMG');
}
console.error('image.new.html');
myFunction();
console.exit();
</script>
</body>
</html>

View File

@ -82,6 +82,7 @@ took = [
'fragment.getElementsByTagName.html',
'fragment.hasChildNodes.html',
'fragment.new.html',
'image.new.html',
'keyboardEvent.html',
'navigator.appCodeName.html',
'node.nodeType.html',