Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-4 / undo-add-rule-crash.html
blob34d8445cefab26efdb67190a2b39cf1b40656fc4
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>
7 function test()
9 InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
11 function step1()
13 addNewRuleAndSelectNode("other", step2);
16 function step2()
18 InspectorTest.domModel.undo();
19 InspectorTest.waitForStyles("other", step3);
22 function step3()
24 InspectorTest.completeTest();
27 function addNewRuleAndSelectNode(nodeId, next)
29 InspectorTest.addNewRule(null, ruleAdded);
31 function ruleAdded()
33 InspectorTest.selectNodeAndWaitForStyles(nodeId, next);
38 </script>
39 </head>
41 <body onload="runTest()">
42 Tests that the inspected page does not crash after undoing a new rule addition. <a href="https://bugs.webkit.org/show_bug.cgi?id=104806">Bug 104806</a>
44 <p>The test has passed (no crash).</p>
45 <div id="inspected"><div id="other" /></div>
46 <style>
47 @-webkit-keyframes cfpulse1 { 0% { opacity: 0.1; } }
48 .c1 { -webkit-animation-name: cfpulse1; }
49 </style>
50 </html>