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

Unified Diff: LayoutTests/inspector/timeline-dfs.html

Issue 180273023: DevTools: encapsulate presentation model in timeline view. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 10 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-dfs.html
diff --git a/LayoutTests/inspector/timeline-dfs.html b/LayoutTests/inspector/timeline-dfs.html
index e09afadf1f3f7aedad943647c2509e021389e0b8..d2353ff09204a2e1f186f910b4ceb674fe8b1a86 100644
--- a/LayoutTests/inspector/timeline-dfs.html
+++ b/LayoutTests/inspector/timeline-dfs.html
@@ -1,6 +1,7 @@
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
+<script src="../http/tests/inspector/timeline-test.js"></script>
<script type="text/javascript">
var test = function()
@@ -9,38 +10,39 @@ var test = function()
function dumper(record)
{
- InspectorTest.addResult(record.name);
+ InspectorTest.addResult(record.type);
}
var records = [
- {"name" : "a", "children" : [
- {"name" : "aa", "children": [
- {"name" : "aaa"},
- {"name" : "aab"},
+ {"type" : "a", "children" : [
+ {"type" : "aa", "children": [
+ {"type" : "aaa"},
+ {"type" : "aab"},
]},
- {"name" : "ab", "children":[
- {"name" : "aba"},
- {"name" : "abb"},
+ {"type" : "ab", "children":[
+ {"type" : "aba"},
+ {"type" : "abb"},
]}
]},
- {"name" : "b", "children" : [
- {"name" : "ba", "children" : [
- {"name" : "baa"},
- {"name" : "bab"},
+ {"type" : "b", "children" : [
+ {"type" : "ba", "children" : [
+ {"type" : "baa"},
+ {"type" : "bab"},
]},
- {"name" : "bb", "children":[
- {"name" : "bba"},
- {"name" : "bbb"},
+ {"type" : "bb", "children":[
+ {"type" : "bba"},
+ {"type" : "bbb"},
]}
]},
];
+ InspectorTest.loadTimelineRecords(records);
InspectorTest.addResult("DFS preorder:");
- WebInspector.TimelineModel.forAllRecords(records, dumper);
+ InspectorTest.timelineModel().forAllRecords(dumper);
InspectorTest.addResult("");
InspectorTest.addResult("DFS postorder:");
- WebInspector.TimelineModel.forAllRecords(records, null, dumper);
+ InspectorTest.timelineModel().forAllRecords(null, dumper);
InspectorTest.completeTest();
}
« no previous file with comments | « LayoutTests/http/tests/inspector/timeline-test.js ('k') | LayoutTests/inspector/timeline/timeline-filtering.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698