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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getNodeForLocation-skip-shadow.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/dom/dom-getNodeForLocation-skip-shadow.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getNodeForLocation-skip-shadow.js b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getNodeForLocation-skip-shadow.js
new file mode 100644
index 0000000000000000000000000000000000000000..8d1fa449f311da2e0690692d1ccc32ebdce5e501
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getNodeForLocation-skip-shadow.js
@@ -0,0 +1,16 @@
+(async function(testRunner) {
+ var {page, session, dp} = await testRunner.startHTML(`
+ <form action='#'>
+ <input type='text' style='position:absolute;top:0;left:0;width:100;height:100' />
+ </form>
+ `, '');
+
+ var NodeTracker = await testRunner.loadScript('../resources/node-tracker.js');
+ var nodeTracker = new NodeTracker(dp);
+
+ dp.DOM.enable();
+ var message = await dp.DOM.getNodeForLocation({x: 10, y: 10, includeUserAgentShadowDOM: false});
+ var nodeId = message.result.nodeId;
+ testRunner.logMessage(nodeTracker.nodeForId(nodeId), 'Node: ');
+ testRunner.completeTest();
+})

Powered by Google App Engine
This is Rietveld 408576698