mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
22
tests/html/test_hammer_layout.html
Normal file
22
tests/html/test_hammer_layout.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="test_hammer_layout.css">
|
||||
<script>
|
||||
var divs = window.document.getElementsByTagName("div");
|
||||
var div = divs[0];
|
||||
|
||||
var count = 1000000;
|
||||
var start = new Date();
|
||||
for (var i = 0; i < count; i++) {
|
||||
div.setAttribute('id', 'styled');
|
||||
//div.getBoundingClientRect();
|
||||
}
|
||||
var stop = new Date();
|
||||
window.alert((stop - start) / count * 1e6);
|
||||
window.close();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="">This text is unstyled.</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue