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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js

Issue 2955943002: DevTools: migrate inspector-protocol/dom tests to a new test runner (Closed)
Patch Set: rebaseline Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js b/third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js
new file mode 100644
index 0000000000000000000000000000000000000000..196e70380ec4d9766ccb17e38863930627e78bd7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/resources/dom-helper.js
@@ -0,0 +1,10 @@
+(class DOMHelper {
+ static attributes(node) {
+ var attr = new Map();
+ if (!node.attributes)
+ return attr;
+ for (var i = 0; i < node.attributes.length; i += 2)
+ attr.set(node.attributes[i], node.attributes[i + 1]);
+ return attr;
+ }
+})

Powered by Google App Engine
This is Rietveld 408576698