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:
parent
02b02c2950
commit
efc7049120
17
test/js/assert/image.new.html
Normal file
17
test/js/assert/image.new.html
Normal 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>
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user