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

Unified Diff: LayoutTests/inspector/timeline/timeline-test.js

Issue 8021012: Merge 95410 - Web Inspector: didMarkDOMContentEvent() should send event of MarkDOMContent type. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 months 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
Index: LayoutTests/inspector/timeline/timeline-test.js
===================================================================
--- LayoutTests/inspector/timeline/timeline-test.js (revision 95841)
+++ LayoutTests/inspector/timeline/timeline-test.js (working copy)
@@ -31,6 +31,24 @@
});
};
+
+InspectorTest.waitForRecordType = function(recordType, callback)
+{
+ WebInspector.timelineManager.addEventListener(WebInspector.TimelineManager.EventTypes.TimelineEventRecorded, function(event) {
+ addRecord(event.data);
+ });
+
+ function addRecord(record)
+ {
+ if (record.type !== WebInspector.TimelineAgent.RecordType[recordType]) {
+ for (var i = 0; record.children && i < record.children.length; ++i)
+ addRecord(record.children[i]);
+ return ;
+ }
+ callback(record);
+ }
+}
+
InspectorTest.stopTimeline = function(callback)
{
function didStop()
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-load-event-expected.txt ('k') | Source/WebCore/inspector/InspectorTimelineAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698