RESOLVED FIXED111793
(tests) make nodesFromRect.js print a list of nodes that were found
https://bugs.webkit.org/show_bug.cgi?id=111793
Summary (tests) make nodesFromRect.js print a list of nodes that were found
Christian Biesinger
Reported 2013-03-07 16:42:50 PST
(tests) make nodesFromRect.js print a list of nodes that were found
Attachments
Patch (1.78 KB, patch)
2013-03-07 16:44 PST, Christian Biesinger
no flags
Patch (4.47 KB, patch)
2013-03-08 09:00 PST, Christian Biesinger
no flags
Christian Biesinger
Comment 1 2013-03-07 16:44:31 PST
Antonio Gomes
Comment 2 2013-03-07 22:05:03 PST
Comment on attachment 192104 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=192104&action=review > LayoutTests/fast/dom/nodesFromRect/resources/nodesFromRect.js:21 > + for (var i = 0; i < nodes.length; i++) { I would have omitted the {}
Allan Sandfeld Jensen
Comment 3 2013-03-08 02:25:21 PST
Comment on attachment 192104 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=192104&action=review > LayoutTests/fast/dom/nodesFromRect/resources/nodesFromRect.js:23 > if (nodes.length != list.length) { > + var foundNodes = []; > + for (var i = 0; i < nodes.length; i++) { > + foundNodes.push(nodes[i].localName); > + } Couldn't you move the logic that makes a string out of a list of nodes from nodesFromRectAsString to a separate method, and reuse that? It would give you more than the localname.
Christian Biesinger
Comment 4 2013-03-08 08:46:08 PST
Comment on attachment 192104 [details] Patch Nice! I didn't notice that prettyprinting code there. I'll reuse it.
Christian Biesinger
Comment 5 2013-03-08 09:00:19 PST
Allan Sandfeld Jensen
Comment 6 2013-03-11 08:24:07 PDT
Comment on attachment 192235 [details] Patch LGTM
WebKit Review Bot
Comment 7 2013-03-11 08:33:46 PDT
Comment on attachment 192235 [details] Patch Clearing flags on attachment: 192235 Committed r145364: <http://trac.webkit.org/changeset/145364>
WebKit Review Bot
Comment 8 2013-03-11 08:33:50 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.