| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/timeline-test.js"></script> | 4 <script src="../../../http/tests/inspector/timeline-test.js"></script> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function performActions() | 8 function performActions() |
| 9 { | 9 { |
| 10 var testDiv = document.querySelector("#testDiv"); | 10 var testDiv = document.querySelector("#testDiv"); |
| 11 for (var i = 0; i < 20; ++i) | 11 for (var i = 0; i < 20; ++i) |
| 12 testDiv.style.visibility = ""; | 12 testDiv.style.visibility = ""; |
| 13 } | 13 } |
| 14 | 14 |
| 15 function test() | 15 function test() |
| 16 { | 16 { |
| 17 InspectorTest.performActionsAndPrint("performActions()", "RecalculateStyles"
); | 17 InspectorTest.performActionsAndPrint("performActions()", "RecalculateStyles"
); |
| 18 } | 18 } |
| 19 | 19 |
| 20 </script> | 20 </script> |
| 21 </head> | 21 </head> |
| 22 | 22 |
| 23 <body onload="runTest()"> | 23 <body onload="runTest()"> |
| 24 <p>Tests that inspector doesn't force styles recalc on operations with inline el
ement styles that result in no changes.</p> | 24 <p>Tests that inspector doesn't force styles recalc on operations with inline el
ement styles that result in no changes.</p> |
| 25 <div id="testDiv" style="color: green">testDiv</div> | 25 <div id="testDiv" style="color: green">testDiv</div> |
| 26 </body> | 26 </body> |
| 27 </html> | 27 </html> |
| OLD | NEW |