Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / inspect-pseudo-element.html
blobab7b5e028bba8c75dddad51e7fba5802a4f5f33a
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script>
6 function clickPseudo()
8 if (!window.eventSender) {
9 console.log("This test requires test shell");
10 return;
12 eventSender.mouseMoveTo(2, 2);
13 eventSender.mouseDown(0);
14 eventSender.mouseUp(0);
17 function test()
19 InspectorTest.domModel.setInspectMode(DOMAgent.InspectMode.SearchForNode, inspectModeEnabled.bind(this));
21 function inspectModeEnabled()
23 WebInspector.notifications.addEventListener(WebInspector.NotificationService.Events.SelectedNodeChanged, selectedNodeChanged, this);
24 InspectorTest.evaluateInPage("clickPseudo()");
27 function selectedNodeChanged()
29 var selectedNode = InspectorTest.firstElementsTreeOutline().selectedDOMNode();
30 if (!selectedNode)
31 InspectorTest.addResult("<no selected node>");
32 else
33 InspectorTest.addResult("Selected node pseudo type: " + selectedNode.pseudoType());
34 InspectorTest.completeTest();
38 </script>
39 <style>
40 body {
41 margin: 0;
42 padding: 0;
45 #inspected::before {
46 content: "BEFORE"
48 </style>
49 </head>
51 <body onload="runTest()">
52 <div id="inspected">Test</div>
53 </body>
54 </html>