Chromium Code Reviews| Index: LayoutTests/inspector/timeline/recalc-inherit-001.html |
| diff --git a/LayoutTests/inspector/timeline/recalc-inherit-001.html b/LayoutTests/inspector/timeline/recalc-inherit-001.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e8298c6acd9dfc7b7fa52717646bcb9d7dddb191 |
| --- /dev/null |
| +++ b/LayoutTests/inspector/timeline/recalc-inherit-001.html |
| @@ -0,0 +1,46 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| + <title>Elements affected by LocalStyleChange Inherit</title> |
| + <script src="../../http/tests/inspector/inspector-test.js"></script> |
| + <script src="../../http/tests/inspector/timeline-test.js"></script> |
| + <script> |
| + function setBodyColor() { |
| + document.body.style.color = "pink"; |
| + document.body.offsetTop; |
| + } |
| + function test() { |
| + InspectorTest.startTimeline(function() { |
|
caseq
2014/01/23 11:11:19
This looks a bit like abuse of timeline tests (we
rune
2014/01/23 13:11:33
I am using window.internals.updateStyleAndReturnAf
|
| + InspectorTest.evaluateInPage("setBodyColor()"); |
| + }); |
| + |
| + InspectorTest.waitForRecordType("RecalculateStyles", finish); |
| + function finish() { |
| + InspectorTest.printTimelineRecords("RecalculateStyles"); |
| + InspectorTest.completeTest(); |
| + } |
| + } |
| + </script> |
| + <style> |
| + div { color: black; } |
| + </style> |
| +</head> |
| +<body onload="runTest()"> |
| + <div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + </div> |
| +</body> |
| +</html> |