17 lines
452 B
HTML
17 lines
452 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
var d = document.createElement('div');
|
|
var s = document.createElement('script');
|
|
s.textContent = 'document.currentScript.parentNode.remove();';
|
|
d.appendChild(s);
|
|
d.appendChild(document.createElement('input'));
|
|
document.body.appendChild(d);
|
|
document.body.innerHTML = 'PASS';
|
|
</script>
|
|
Test passes if we do not crash or assert in debug builds.
|
|
</body>
|
|
</html> |