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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/inspect-pointer-events-none.html

Issue 2819183002: [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: rebased bad merge Created 3 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <style> 5 <style>
6 div { 6 div {
7 margin: 0; 7 margin: 0;
8 padding: 0; 8 padding: 0;
9 border: none; 9 border: none;
10 } 10 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 { 52 {
53 var id = selectedNodeId(); 53 var id = selectedNodeId();
54 if (id === expectedId) 54 if (id === expectedId)
55 InspectorTest.addResult("PASS: selected node with id '" + id + "'"); 55 InspectorTest.addResult("PASS: selected node with id '" + id + "'");
56 else 56 else
57 InspectorTest.addResult("FAIL: unexpected selection " + id); 57 InspectorTest.addResult("FAIL: unexpected selection " + id);
58 } 58 }
59 59
60 function step1() 60 function step1()
61 { 61 {
62 InspectorTest.domModel.setInspectMode(Protocol.DOM.InspectMode.SearchFor Node, step2); 62 InspectorTest.overlayModel.setInspectMode(Protocol.Overlay.InspectMode.S earchForNode).then(step2);
63 } 63 }
64 64
65 function step2() 65 function step2()
66 { 66 {
67 InspectorTest.firstElementsTreeOutline().addEventListener(Elements.Eleme ntsTreeOutline.Events.SelectedNodeChanged, step3); 67 InspectorTest.firstElementsTreeOutline().addEventListener(Elements.Eleme ntsTreeOutline.Events.SelectedNodeChanged, step3);
68 InspectorTest.evaluateInPage("clickInner(true)"); 68 InspectorTest.evaluateInPage("clickInner(true)");
69 } 69 }
70 70
71 function step3() 71 function step3()
72 { 72 {
73 InspectorTest.firstElementsTreeOutline().removeEventListener(Elements.El ementsTreeOutline.Events.SelectedNodeChanged, step3); 73 InspectorTest.firstElementsTreeOutline().removeEventListener(Elements.El ementsTreeOutline.Events.SelectedNodeChanged, step3);
74 expectSelectedNode("inner"); 74 expectSelectedNode("inner");
75 InspectorTest.domModel.setInspectMode(Protocol.DOM.InspectMode.SearchFor Node, step4); 75 InspectorTest.overlayModel.setInspectMode(Protocol.Overlay.InspectMode.S earchForNode).then(step4);
76 } 76 }
77 77
78 function step4() 78 function step4()
79 { 79 {
80 InspectorTest.firstElementsTreeOutline().addEventListener(Elements.Eleme ntsTreeOutline.Events.SelectedNodeChanged, step5); 80 InspectorTest.firstElementsTreeOutline().addEventListener(Elements.Eleme ntsTreeOutline.Events.SelectedNodeChanged, step5);
81 InspectorTest.evaluateInPage("clickInner(false)"); 81 InspectorTest.evaluateInPage("clickInner(false)");
82 } 82 }
83 83
84 function step5() 84 function step5()
85 { 85 {
86 InspectorTest.firstElementsTreeOutline().removeEventListener(Elements.El ementsTreeOutline.Events.SelectedNodeChanged, step5); 86 InspectorTest.firstElementsTreeOutline().removeEventListener(Elements.El ementsTreeOutline.Events.SelectedNodeChanged, step5);
87 expectSelectedNode("outer"); 87 expectSelectedNode("outer");
88 InspectorTest.completeTest(); 88 InspectorTest.completeTest();
89 } 89 }
90 90
91 step1(); 91 step1();
92 } 92 }
93 93
94 </script> 94 </script>
95 </head> 95 </head>
96 96
97 <body onload="runTest()"> 97 <body onload="runTest()">
98 <p>Test that Web Inspector can inspect element with <code>pointer-events:none</c ode>. 98 <p>Test that Web Inspector can inspect element with <code>pointer-events:none</c ode>.
99 </p> 99 </p>
100 <div id="outer"><div id="inner"></div></div> 100 <div id="outer"><div id="inner"></div></div>
101 </body> 101 </body>
102 </html> 102 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698