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>
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);
20 InspectorTest
.invokeWithTracing("importStyle", processTracingEvents
);
22 function processTracingEvents()
24 var record
= InspectorTest
.findFirstTimelineRecord(WebInspector
.TimelineModel
.RecordType
.ParseAuthorStyleSheet
);
26 InspectorTest
.addResult("SUCCESS: found ParseAuthorStyleSheet record");
28 InspectorTest
.addResult("FAIL: ParseAuthorStyleSheet record not found");
29 InspectorTest
.completeTest();
36 <body onload=
"runTest()">
38 Tests that ParseAuthorStyleSheet trace event is recorded.