diff options
author | bptato <nincsnevem662@gmail.com> | 2024-12-30 18:32:30 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-12-30 18:32:30 +0100 |
commit | 799a5783864c9312d1ef5e6d039d08010d766b95 (patch) | |
tree | 6ec06dc20c149d62c26c75c1423d8688df90d177 /test/js | |
parent | 1f37f1047a6c8a9731ae3990f7053bd1afdb0cdc (diff) | |
download | chawan-799a5783864c9312d1ef5e6d039d08010d766b95.tar.gz |
script: improve defineConsts
Well, I guess this works for now, but something is still wrong. In Gecko, document.__proto__ === Document.__proto__, but in Chawan, it isn't.
Diffstat (limited to 'test/js')
-rw-r--r-- | test/js/document.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/js/document.html b/test/js/document.html index 10ecf17d..8f15ab81 100644 --- a/test/js/document.html +++ b/test/js/document.html @@ -11,6 +11,8 @@ assertEquals(document.toString, document.getElementById("toString")); document.toString.remove(); document.testtest = "hi"; +assertEquals(document.ELEMENT_NODE, 1); +assertEquals(Document.ELEMENT_NODE, 1); assertEquals(Object.getOwnPropertyNames(document).toString(), "testtest,location,img2,img3,asdf"); /* * Note: the spec says Document == HTMLDocument, but in other browsers |