OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>Elements affected by LocalStyleChange Inherit</title> | |
5 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
6 <script src="../../http/tests/inspector/timeline-test.js"></script> | |
7 <script> | |
8 function setBodyColor() { | |
9 document.body.style.color = "pink"; | |
10 document.body.offsetTop; | |
11 } | |
12 function test() { | |
13 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
| |
14 InspectorTest.evaluateInPage("setBodyColor()"); | |
15 }); | |
16 | |
17 InspectorTest.waitForRecordType("RecalculateStyles", finish); | |
18 function finish() { | |
19 InspectorTest.printTimelineRecords("RecalculateStyles"); | |
20 InspectorTest.completeTest(); | |
21 } | |
22 } | |
23 </script> | |
24 <style> | |
25 div { color: black; } | |
26 </style> | |
27 </head> | |
28 <body onload="runTest()"> | |
29 <div> | |
30 <div></div> | |
31 <div></div> | |
32 <div></div> | |
33 <div></div> | |
34 <div></div> | |
35 <div></div> | |
36 <div></div> | |
37 <div></div> | |
38 <div></div> | |
39 <div></div> | |
40 <div></div> | |
41 <div></div> | |
42 <div></div> | |
43 <div></div> | |
44 </div> | |
45 </body> | |
46 </html> | |
OLD | NEW |