Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / tracing / timeline-load-event.html
blob2f13f994fc5076bbc3ec426e273e8ab0c64803ba
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script>
6 function display(callback)
8 if (window.testRunner)
9 testRunner.setCanOpenWindows(true);
10 var popup = window.open("data:text/html,<b>Hello, world</b>");
11 popup.onload = function()
13 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner, callback));
17 function test()
19 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(pageReloaded); });
21 function pageReloaded()
23 InspectorTest.invokePageFunctionAsync("display", displayDone);
26 function displayDone()
28 InspectorTest.stopTimeline(InspectorTest.safeWrap(finish))
31 function finish()
33 InspectorTest.addResult("Model records:");
34 InspectorTest.printTimelineRecords("MarkDOMContent");
35 InspectorTest.printTimelineRecords("MarkLoad");
36 InspectorTest.addResult("Timestamp records:");
37 InspectorTest.printTimestampRecords("MarkDOMContent");
38 InspectorTest.printTimestampRecords("MarkLoad");
39 InspectorTest.printTimestampRecords("MarkFirstPaint");
41 var eventDividers = InspectorTest.timelineModel().eventDividerRecords();
42 for (var i = 1; i < eventDividers.length; ++i)
43 InspectorTest.assertGreaterOrEqual(eventDividers[i], eventDividers[i - 1], "Event divider timestamps should be monotonically non-decreasing");
45 InspectorTest.completeTest();
49 </script>
50 </head>
52 <body onload="runTest()">
53 <p>
54 Tests the load event.
55 </p>
57 </body>
58 </html>