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

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

Issue 2819183002: [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: rebased bad merge Created 3 years, 7 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
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 UI.panels.elements._stylesWidget._sectionBlocks[0].sections[0]; 7 return UI.panels.elements._stylesWidget._sectionBlocks[0].sections[0];
8 } 8 }
9 9
10 InspectorTest.computedStyleWidget = function() 10 InspectorTest.computedStyleWidget = function()
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter") ); 960 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter") );
961 InspectorTest.waitForSelectorCommitted(callback.bind(null, section)); 961 InspectorTest.waitForSelectorCommitted(callback.bind(null, section));
962 } 962 }
963 963
964 InspectorTest.dumpInspectorHighlightJSON = function(idValue, callback) 964 InspectorTest.dumpInspectorHighlightJSON = function(idValue, callback)
965 { 965 {
966 InspectorTest.nodeWithId(idValue, nodeResolved); 966 InspectorTest.nodeWithId(idValue, nodeResolved);
967 967
968 function nodeResolved(node) 968 function nodeResolved(node)
969 { 969 {
970 InspectorTest.DOMAgent.getHighlightObjectForTest(node.id, report); 970 InspectorTest.OverlayAgent.getHighlightObjectForTest(node.id, report);
971 } 971 }
972 972
973 function report(error, result) 973 function report(error, result)
974 { 974 {
975 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2)); 975 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2));
976 callback(); 976 callback();
977 } 977 }
978 } 978 }
979 979
980 InspectorTest.waitForAnimationAdded = function(callback) 980 InspectorTest.waitForAnimationAdded = function(callback)
981 { 981 {
982 InspectorTest.addSniffer(Animation.AnimationTimeline.prototype, "_addAnimati onGroup", callback); 982 InspectorTest.addSniffer(Animation.AnimationTimeline.prototype, "_addAnimati onGroup", callback);
983 } 983 }
984 984
985 InspectorTest.dumpAnimationTimeline = function(timeline) 985 InspectorTest.dumpAnimationTimeline = function(timeline)
986 { 986 {
987 for (var ui of timeline._uiAnimations) { 987 for (var ui of timeline._uiAnimations) {
988 InspectorTest.addResult(ui.animation().type()); 988 InspectorTest.addResult(ui.animation().type());
989 InspectorTest.addResult(ui._nameElement.innerHTML); 989 InspectorTest.addResult(ui._nameElement.innerHTML);
990 InspectorTest.addResult(ui._svg.innerHTML); 990 InspectorTest.addResult(ui._svg.innerHTML);
991 } 991 }
992 } 992 }
993 993
994 }; 994 };
OLDNEW
« no previous file with comments | « headless/public/headless_devtools_client.h ('k') | third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698