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

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

Issue 237313003: CSS shapes support in Web Inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed review comment Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/highlight-css-shapes-outside.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_ElementTest = function() { 1 var initialize_ElementTest = function() {
2 2
3 InspectorTest.findNode = function(matchFunction, callback) 3 InspectorTest.findNode = function(matchFunction, callback)
4 { 4 {
5 callback = InspectorTest.safeWrap(callback); 5 callback = InspectorTest.safeWrap(callback);
6 var result = null; 6 var result = null;
7 var pendingRequests = 0; 7 var pendingRequests = 0;
8 function processChildren(node) 8 function processChildren(node)
9 { 9 {
10 try { 10 try {
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 { 741 {
742 var rectNames = ["margin", "border", "padding", "content"]; 742 var rectNames = ["margin", "border", "padding", "content"];
743 var rects = window.internals.inspectorHighlightRects(document); 743 var rects = window.internals.inspectorHighlightRects(document);
744 for (var i = 0; i < rects.length; i++) 744 for (var i = 0; i < rects.length; i++)
745 { 745 {
746 var rectName = (i < rectNames.length ? rectNames[i] : "untitled"); 746 var rectName = (i < rectNames.length ? rectNames[i] : "untitled");
747 var rect = rects.item(i); 747 var rect = rects.item(i);
748 output(rectName + " rect is " + rect.width + " x " + rect.height + " at (" + rect.left + ", " + rect.top + ")"); 748 output(rectName + " rect is " + rect.width + " x " + rect.height + " at (" + rect.left + ", " + rect.top + ")");
749 } 749 }
750 } 750 }
751
752 function dumpInspectorHighlightShape()
pfeldman 2014/04/25 12:31:01 Testing highlight via internals was not the right
Habib Virji 2014/04/28 15:07:55 Done.
753 {
754 var shapes = window.internals.inspectorHighlightShape(document);
755 var parse = JSON.parse(shapes);
756 output(JSON.stringify(parse.shape));
757 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/highlight-css-shapes-outside.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698