InspectorTest.runTestSuite([
function init(next)
{
- WebInspector.showPanel("elements");
+ WebInspector.inspectorView.showPanel("elements");
InspectorTest.selectNodeAndWaitForStyles("inspected", next);
},
function keyframesRuleSelector(next)
{
- // Click "Add new rule".
- document.getElementById("add-style-button-test-id").click();
- var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][2];
- section._selectorElement.textContent = "@-webkit-keyframes shake";
- section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- InspectorTest.runAfterPendingDispatches(callback);
+ InspectorTest.addNewRule("@-webkit-keyframes shake", callback);
function callback()
{