blob: ce534ce5e608fbc212d44f21d6156d6789e3e814 [file] [log] [blame]
<!DOCTYPE html>
<body>
<style>
textarea:valid {
background-color: lime;
}
textarea:invalid {
background-color: red;
}
</style>
<script src="../resources/runner.js"></script>
<div id="container"></div>
<script>
var htmlText = "<textarea maxlength=2147483647>";
for (var i = 0; i < 1000; ++i) {
htmlText += "A quick brown fox jumps over the lazy dog.\n" +
"A quick brown fox jumps over the lazy dog.\n" +
"<!-- comment -->\n";
}
htmlText += "</textarea>"
var container = document.getElementById('container');
PerfTestRunner.measureRunsPerSecond({run: function() {
container.innerHTML = htmlText;
}});
</script>
</body>