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

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

Issue 1577723002: Devtools: Add editable keyframes to the styles sidebar pane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].se ctions[0]; 7 return WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].se ctions[0];
8 } 8 }
9 9
10 InspectorTest.computedStyleWidget = function() 10 InspectorTest.computedStyleWidget = function()
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 { 372 {
373 if (!section) 373 if (!section)
374 return; 374 return;
375 InspectorTest.addResult("[expanded] " + (section.element.classList.contains( "no-affect") ? "[no-affect] " : "")); 375 InspectorTest.addResult("[expanded] " + (section.element.classList.contains( "no-affect") ? "[no-affect] " : ""));
376 376
377 var medias = section._titleElement.querySelectorAll(".media-list .media"); 377 var medias = section._titleElement.querySelectorAll(".media-list .media");
378 for (var i = 0; i < medias.length; ++i) { 378 for (var i = 0; i < medias.length; ++i) {
379 var media = medias[i]; 379 var media = medias[i];
380 InspectorTest.addResult(media.textContent); 380 InspectorTest.addResult(media.textContent);
381 } 381 }
382 var selector = section._titleElement.querySelector(".selector"); 382 var selector = section._titleElement.querySelector(".selector") || section._ titleElement.querySelector(".keyframe-key");
383 var selectorText = includeSelectorGroupMarks ? buildMarkedSelectors(selector ) : selector.textContent; 383 var selectorText = includeSelectorGroupMarks ? buildMarkedSelectors(selector ) : selector.textContent;
384 // Dump " {". 384 // Dump " {".
385 selectorText += selector.nextSibling.textContent; 385 selectorText += selector.nextSibling.textContent;
386 var anchor = section._titleElement.querySelector(".styles-section-subtitle") ; 386 var anchor = section._titleElement.querySelector(".styles-section-subtitle") ;
387 if (anchor) { 387 if (anchor) {
388 var anchorText = extractText(anchor); 388 var anchorText = extractText(anchor);
389 selectorText += String.sprintf(" (%s)", anchorText); 389 selectorText += String.sprintf(" (%s)", anchorText);
390 } 390 }
391 InspectorTest.addResult(selectorText); 391 InspectorTest.addResult(selectorText);
392 392
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 InspectorTest.dumpAnimationTimeline = function(timeline) 970 InspectorTest.dumpAnimationTimeline = function(timeline)
971 { 971 {
972 for (var ui of timeline._uiAnimations) { 972 for (var ui of timeline._uiAnimations) {
973 InspectorTest.addResult(ui.animation().type()); 973 InspectorTest.addResult(ui.animation().type());
974 InspectorTest.addResult(ui._nameElement.innerHTML); 974 InspectorTest.addResult(ui._nameElement.innerHTML);
975 InspectorTest.addResult(ui._svg.innerHTML); 975 InspectorTest.addResult(ui._svg.innerHTML);
976 } 976 }
977 } 977 }
978 978
979 }; 979 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698