| Index: LayoutTests/inspector/timeline/focus-recalc-002.html
|
| diff --git a/LayoutTests/inspector/timeline/focus-recalc-002.html b/LayoutTests/inspector/timeline/focus-recalc-002.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c4365eae28d317ecdb198cab8360f9e5a336f049
|
| --- /dev/null
|
| +++ b/LayoutTests/inspector/timeline/focus-recalc-002.html
|
| @@ -0,0 +1,42 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>recalcStyle for children when childrenAffectedByFocus</title>
|
| + <style>:focus * { border: 1px solid lime; }</style>
|
| + <script src="../../http/tests/inspector/inspector-test.js"></script>
|
| + <script src="../../http/tests/inspector/timeline-test.js"></script>
|
| + <script>
|
| + function focusBody() {
|
| + document.body.focus();
|
| + document.body.offsetWidth;
|
| + }
|
| + function test() {
|
| + InspectorTest.startTimeline(function() {
|
| + InspectorTest.evaluateInPage("focusBody()");
|
| + });
|
| +
|
| + InspectorTest.waitForRecordType("RecalculateStyles", finish);
|
| + function finish() {
|
| + InspectorTest.printTimelineRecords("RecalculateStyles");
|
| + InspectorTest.completeTest();
|
| + }
|
| + }
|
| + </script>
|
| +</head>
|
| +<body onload="runTest()" tabIndex="1">
|
| + <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>
|
|
|