haikuwebkit/LayoutTests/editing/selection/select-all-user-select-none...

22 lines
555 B
HTML

<html>
<head>
<style>
body {
-webkit-user-select: none;
}
</style>
<script>
function test() {
if (window.testRunner)
testRunner.dumpAsText();
document.execCommand('SelectAll');
if (window.getSelection().toString() == "")
document.body.innerHTML = "Test Passed";
}
</script>
</head>
<body onload="test()">
Test Failed (this should not be selected)
</body>
</html>