Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-breakpoints / dom-breakpoints-editing-dom-from-inspector.html
blob7c125ece0383d274e846e0c2409187e0eda8f274
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 src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script>
8 function test()
11 var pane = WebInspector.domBreakpointsSidebarPane;
12 InspectorTest.runDebuggerTestSuite([
13 function testRemoveNode(next)
15 InspectorTest.addResult("Testing NodeRemoved DOM breakpoint.");
16 InspectorTest.nodeWithId("elementToRemove", step2);
18 function step2(node)
20 pane._setBreakpoint(node, pane._breakpointTypes.NodeRemoved, true);
21 InspectorTest.addResult("Set NodeRemoved DOM breakpoint.");
22 node.removeNode(next);
26 function testModifyAttribute(next)
28 InspectorTest.addResult("Testing AttributeModified DOM breakpoint.");
29 InspectorTest.nodeWithId("rootElement", step2);
31 function step2(node)
33 pane._setBreakpoint(node, pane._breakpointTypes.AttributeModified, true);
34 InspectorTest.addResult("Set AttributeModified DOM breakpoint.");
35 node.setAttribute("title", "a title", next);
38 ]);
41 </script>
42 </head>
44 <body onload="runTest()">
45 <p>
46 Tests that DOM debugger will not crash when editing DOM nodes from the Web Inspector. <a href="https://code.google.com/p/chromium/issues/detail?id=249655">Chromium bug 249655</a>
47 </p>
49 <div id="rootElement" style="color: red">
50 <div id="elementToRemove"></div>
51 </div>
53 </body>
54 </html>