Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / tracing / parse-author-style-sheet.html
blob51e6b6680f90e0ba15a9d5636a88b67169f57730
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 src="../tracing-test.js"></script>
6 <script>
8 function importStyle(onComplete)
10 var link = document.createElement('link');
11 link.setAttribute('rel', 'stylesheet');
12 link.type = 'text/css';
13 link.href = 'resources/style.css';
14 document.head.appendChild(link);
15 link.onload = onComplete.bind(this, null);
18 function test()
20 InspectorTest.invokeWithTracing("importStyle", processTracingEvents);
22 function processTracingEvents()
24 var record = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.ParseAuthorStyleSheet);
25 if (record)
26 InspectorTest.addResult("SUCCESS: found ParseAuthorStyleSheet record");
27 else
28 InspectorTest.addResult("FAIL: ParseAuthorStyleSheet record not found");
29 InspectorTest.completeTest();
33 </script>
34 </head>
36 <body onload="runTest()">
37 <p>
38 Tests that ParseAuthorStyleSheet trace event is recorded.
39 </p>
40 </body>
41 </html>