mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[js] test case for new Document
This commit is contained in:
parent
211f69c801
commit
4e13f17d82
16
test/js/assert/document.new.html
Normal file
16
test/js/assert/document.new.html
Normal file
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<script>
|
||||
function myFunction() {
|
||||
var doc = new Document;
|
||||
console.assert(doc.nodeType === 9, 'new doc');
|
||||
}
|
||||
|
||||
console.error('document.new.html');
|
||||
myFunction();
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -25,6 +25,7 @@ took = [
|
||||
'document.images.html',
|
||||
'document.links.html',
|
||||
'document.location.href.html',
|
||||
'document.new.html',
|
||||
'document.querySelectorAll.html',
|
||||
'document.querySelector.html',
|
||||
'domparser.html',
|
||||
|
Loading…
x
Reference in New Issue
Block a user