| OLD | NEW | 
|---|
| 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  Loading... | 
| 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> | 
| OLD | NEW | 
|---|