Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-style/parse-author-style-sheet.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../../http/tests/inspector/timeline-test.js"></script>
5 <script src="../../tracing-test.js"></script> 5 <script src="../../tracing-test.js"></script>
6 <script> 6 <script>
7 7
8 function importStyle() 8 function importStyle()
9 { 9 {
10 var link = document.createElement('link'); 10 var link = document.createElement('link');
11 link.setAttribute('rel', 'stylesheet'); 11 link.setAttribute('rel', 'stylesheet');
12 link.type = 'text/css'; 12 link.type = 'text/css';
13 link.href = '../resources/style.css'; 13 link.href = '../resources/style.css';
14 document.head.appendChild(link); 14 document.head.appendChild(link);
15 return new Promise((fulfill) => link.onload = fulfill); 15 return new Promise((fulfill) => link.onload = fulfill);
16 } 16 }
17 17
18 function test() 18 function test()
19 { 19 {
20 InspectorTest.invokeWithTracing("importStyle", processTracingEvents); 20 InspectorTest.invokeWithTracing("importStyle", processTracingEvents);
21 21
22 function processTracingEvents() 22 function processTracingEvents()
23 { 23 {
24 var record = InspectorTest.findFirstTimelineRecord(WebInspector.Timeline Model.RecordType.ParseAuthorStyleSheet); 24 var record = InspectorTest.findFirstTimelineRecord(TimelineModel.Timelin eModel.RecordType.ParseAuthorStyleSheet);
25 if (record) 25 if (record)
26 InspectorTest.addResult("SUCCESS: found ParseAuthorStyleSheet record "); 26 InspectorTest.addResult("SUCCESS: found ParseAuthorStyleSheet record ");
27 else 27 else
28 InspectorTest.addResult("FAIL: ParseAuthorStyleSheet record not foun d"); 28 InspectorTest.addResult("FAIL: ParseAuthorStyleSheet record not foun d");
29 InspectorTest.completeTest(); 29 InspectorTest.completeTest();
30 } 30 }
31 } 31 }
32 32
33 </script> 33 </script>
34 </head> 34 </head>
35 35
36 <body onload="runTest()"> 36 <body onload="runTest()">
37 <p> 37 <p>
38 Tests that ParseAuthorStyleSheet trace event is recorded. 38 Tests that ParseAuthorStyleSheet trace event is recorded.
39 </p> 39 </p>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698