mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[assertions] console.exit() has no params
This commit is contained in:
parent
fd3502ede8
commit
05f97fa385
@ -4,5 +4,5 @@ var url = new URL('https://www.example.com/cats');
|
||||
console.assert(url.pathname === '/cats', url.pathname);
|
||||
console.assert(url.protocol === 'https:', url.protocol);
|
||||
console.assert(url.hostname === 'www.example.com', url.hostname);
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
@ -2,5 +2,5 @@
|
||||
console.error("console.assert.html");
|
||||
console.assert(0 % 2 === 0, "O is not even");
|
||||
console.assert(1 % 2 === 0, "1 is not even");
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
@ -8,5 +8,5 @@ e.preventDefault();
|
||||
console.assert(e.defaultPrevented, 'defaultPrevented true');
|
||||
console.assert(e.type === 'message', 'message');
|
||||
console.assert(e.detail.name === 'cat', 'cat');
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
@ -17,7 +17,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("doctype.publicId.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -17,7 +17,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("doctype.systemId.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -22,7 +22,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.anchors.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -13,7 +13,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.baseURI.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -25,7 +25,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.body.childNodes');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -22,7 +22,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.body.children');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
|
||||
</script>
|
||||
|
||||
|
@ -17,7 +17,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.body.id.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -18,7 +18,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.characterSet');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -18,7 +18,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.doctype.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -17,7 +17,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.documentElement.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -13,7 +13,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.documentURI.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -16,7 +16,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.domain.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -19,7 +19,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.getElementsByClassName.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -19,7 +19,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.getElementsByName.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -19,7 +19,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.getElementsByTagName.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -18,7 +18,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.head.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -19,7 +19,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.images.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -31,7 +31,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.links.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -17,7 +17,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.querySelector.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -15,7 +15,7 @@ function myFunction() {
|
||||
|
||||
console.error('document.querySelectorAll.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -23,7 +23,7 @@ function myFunction() {
|
||||
}
|
||||
console.error('element.appendChild.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -19,7 +19,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.attributes.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -22,7 +22,7 @@ function ch()
|
||||
|
||||
console.error('element.checked.html');
|
||||
ch();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
<button onclick="ch();">CLICK</button>
|
||||
|
@ -16,7 +16,7 @@ function bb()
|
||||
console.error('element.childElementCount.html');
|
||||
aa();
|
||||
bb();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">blabla child element count</button>
|
||||
<button onclick="return bb()">empty child element count</button>
|
||||
|
@ -21,7 +21,7 @@ function bb()
|
||||
console.error('element.className.html');
|
||||
aa();
|
||||
bb();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">Click me!</button>
|
||||
<button onclick="return bb()">Set className to abc</button>
|
||||
|
@ -22,7 +22,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.cloneNode.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -18,7 +18,7 @@ console.assert(closes2 != null, 'not null');
|
||||
closes2 = element.closest("p.test");
|
||||
console.assert(closes2 === null, 'NULL');
|
||||
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -32,7 +32,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.contains.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -24,7 +24,7 @@ function bb()
|
||||
console.error('element.dir.html');
|
||||
aa();
|
||||
bb();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">Click me!</button>
|
||||
<button onclick="return bb()">blabla.dir = ltr</button>
|
||||
|
@ -6,7 +6,7 @@
|
||||
function ff(ev)
|
||||
{
|
||||
console.assert(ev.type === 'message', ev.type);
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
}
|
||||
|
||||
var e = new Event('message', { cancelable: true });
|
||||
|
@ -14,7 +14,7 @@ function aa()
|
||||
|
||||
console.error('element.firstChild.html');
|
||||
aa();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">Click me!</button>
|
||||
</body>
|
||||
|
@ -14,7 +14,7 @@ function aa()
|
||||
|
||||
console.error('element.firstElementChild');
|
||||
aa();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">blabla firstElementChild outerHTML</button>
|
||||
</body>
|
||||
|
@ -22,7 +22,7 @@ function bb()
|
||||
console.error('element.getAttribute.html');
|
||||
aa();
|
||||
bb();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">blabla rel nofollow</button>
|
||||
<button onclick="return bb()">ble href null</button>
|
||||
|
@ -21,7 +21,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.getAttributeNode.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -19,7 +19,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.getElementByTagName.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -22,7 +22,7 @@ function bb()
|
||||
console.error('element.hasAttribute.html');
|
||||
aa();
|
||||
bb();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">blabla rel true</button>
|
||||
<button onclick="return bb()">ble href false</button>
|
||||
|
@ -15,7 +15,7 @@ function aa()
|
||||
|
||||
console.error('element.hasAttributes.html');
|
||||
aa();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">blabla has attributes</button>
|
||||
</body>
|
||||
|
@ -25,7 +25,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.hasChildNodes.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -8,7 +8,7 @@ console.error('element.id.html');
|
||||
console.assert(document.getElementById('blabla').innerHTML === 'AAAAA', 'AAAAA');
|
||||
document.getElementsByTagName("A")[0].id = 'test';
|
||||
console.assert(document.getElementById('test').innerHTML === 'inner', 'inner');
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -25,7 +25,7 @@ function bb()
|
||||
console.error('element.innerHTML.html');
|
||||
aa();
|
||||
bb();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">Click me!</button>
|
||||
<button onclick="return bb()">innerText test</button>
|
||||
|
@ -26,7 +26,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.insertBefore.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -30,7 +30,7 @@ function testFunction(x, y, expected) {
|
||||
console.error('element.isEqualNode.html');
|
||||
testFunction('myList1', 'myList2', false);
|
||||
testFunction('myList1', 'myList3', true);
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -24,7 +24,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.isSameNode.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -22,7 +22,7 @@ function bb()
|
||||
console.error('element.lang.html');
|
||||
testaa('en');
|
||||
bb();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">Click me!</button>
|
||||
<button onclick="return bb()">Set lang to pl</button>
|
||||
|
@ -13,7 +13,7 @@ function aa()
|
||||
|
||||
console.error('element.lastChild.html');
|
||||
aa();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">Click me!</button>
|
||||
</body>
|
||||
|
@ -14,7 +14,7 @@ function aa()
|
||||
|
||||
console.error('element.lastElementChild.html');
|
||||
aa();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
<button onclick="return aa()">blabla lastElementChild outerHTML</button>
|
||||
</body>
|
||||
|
@ -28,6 +28,6 @@ console.error('element.matches.html');
|
||||
// });
|
||||
// console.assert(counter === 3, 'Three');
|
||||
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
|
||||
</script>
|
||||
|
@ -20,7 +20,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.namedItem.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -25,7 +25,7 @@ function myFunction() {
|
||||
|
||||
console.error("element.nextElementSibling.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -25,7 +25,7 @@ function myFunction() {
|
||||
|
||||
console.error("element.nextSibling.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -15,7 +15,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("element.nodeName.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -15,7 +15,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("element.nodeType.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -15,7 +15,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("element.nodeValue.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -26,7 +26,7 @@ function bb()
|
||||
console.error('element.outerHTML.html');
|
||||
aa();
|
||||
bb();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -22,7 +22,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("element.parentElement.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -22,7 +22,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("element.parentNode.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -24,7 +24,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("element.previousElementSibling.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -24,7 +24,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("element.previousSibling.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -24,7 +24,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.querySelector.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -20,7 +20,7 @@ function myFunction() {
|
||||
|
||||
console.error('element.querySelectorAll.html');
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -25,7 +25,7 @@ function myFunction() {
|
||||
}
|
||||
console.error("element.setAttribute.html");
|
||||
myFunction();
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
@ -8,5 +8,5 @@ console.assert(!e.defaultPrevented, 'false');
|
||||
e.preventDefault();
|
||||
console.assert(e.defaultPrevented, 'true');
|
||||
console.assert(e.type === 'message', 'message');
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
@ -3,7 +3,7 @@
|
||||
function ff(ev)
|
||||
{
|
||||
console.assert(ev.type === 'message', ev.type);
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
}
|
||||
|
||||
var e = new Event('message', { cancelable: true });
|
||||
|
@ -13,5 +13,5 @@ console.assert(e.keyCode === 13, 'ENTER = 13');
|
||||
var e = new KeyboardEvent('keydown', { cancelable: true, key: "F12" });
|
||||
console.assert(e.keyCode === 123, e.keyCode);
|
||||
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script>
|
||||
console.error("navigator.appCodeName.html");
|
||||
console.assert(navigator.appCodeName === 'Mozilla', 'Mozilla');
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
</script>
|
||||
|
@ -17,6 +17,6 @@ birds.forEach(function(b) {
|
||||
});
|
||||
console.assert(counter === 3, counter);
|
||||
|
||||
console.exit(0);
|
||||
console.exit();
|
||||
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user