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

Unified Diff: LayoutTests/inspector/tracing/parse-author-style-sheet.html

Issue 717573003: DevTools: add ParseAuthorStyleSheet events to Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test expectations Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/parse-author-style-sheet-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/tracing/parse-author-style-sheet.html
diff --git a/LayoutTests/inspector/tracing/parse-author-style-sheet.html b/LayoutTests/inspector/tracing/parse-author-style-sheet.html
new file mode 100644
index 0000000000000000000000000000000000000000..51e6b6680f90e0ba15a9d5636a88b67169f57730
--- /dev/null
+++ b/LayoutTests/inspector/tracing/parse-author-style-sheet.html
@@ -0,0 +1,41 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/timeline-test.js"></script>
+<script src="../tracing-test.js"></script>
+<script>
+
+function importStyle(onComplete)
+{
+ var link = document.createElement('link');
+ link.setAttribute('rel', 'stylesheet');
+ link.type = 'text/css';
+ link.href = 'resources/style.css';
+ document.head.appendChild(link);
+ link.onload = onComplete.bind(this, null);
+}
+
+function test()
+{
+ InspectorTest.invokeWithTracing("importStyle", processTracingEvents);
+
+ function processTracingEvents()
+ {
+ var record = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.ParseAuthorStyleSheet);
+ if (record)
+ InspectorTest.addResult("SUCCESS: found ParseAuthorStyleSheet record");
+ else
+ InspectorTest.addResult("FAIL: ParseAuthorStyleSheet record not found");
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests that ParseAuthorStyleSheet trace event is recorded.
+</p>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/parse-author-style-sheet-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698