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

Side by Side Diff: LayoutTests/http/tests/inspector/elements-test.js

Issue 967213002: Devtools Animations: Represent delay and end-delay on the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test Created 5 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 var initialize_ElementTest = function() { 1 var initialize_ElementTest = function() {
2 2
3 InspectorTest.preloadPanel("elements"); 3 InspectorTest.preloadPanel("elements");
4 4
5 InspectorTest.inlineStyleSection = function() 5 InspectorTest.inlineStyleSection = function()
6 { 6 {
7 return WebInspector.panels.elements.sidebarPanes.styles.sections[0][0]; 7 return WebInspector.panels.elements.sidebarPanes.styles.sections[0][0];
8 } 8 }
9 9
10 InspectorTest.computedStyleSection = function() 10 InspectorTest.computedStyleSection = function()
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 InspectorTest.DOMAgent.getHighlightObjectForTest(node.id, report); 869 InspectorTest.DOMAgent.getHighlightObjectForTest(node.id, report);
870 } 870 }
871 871
872 function report(error, result) 872 function report(error, result)
873 { 873 {
874 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2)); 874 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2));
875 callback(); 875 callback();
876 } 876 }
877 } 877 }
878 878
879 InspectorTest.dumpAnimationTimeline = function(callback)
880 {
881 var sidebarPane = WebInspector.panels.elements.sidebarPanes.animations;
882 sidebarPane.expand();
883 var timeline = sidebarPane._timeline;
884
885 // Dump timeline
886 for (var nodeUI of timeline._nodesMap.values()) {
887 InspectorTest.addResult("Node: " + nodeUI._description.lastChild.shadowR oot.lastChild.textContent);
888 for (nodeRow of nodeUI._rows) {
889 for (var ui of nodeRow.animations) {
890 InspectorTest.addResult(ui._svg.innerHTML);
891 }
892 }
893 }
894
895 callback();
896 }
897
879 }; 898 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698