| Index: LayoutTests/http/tests/inspector/elements-test.js
|
| diff --git a/LayoutTests/http/tests/inspector/elements-test.js b/LayoutTests/http/tests/inspector/elements-test.js
|
| index a94515ac8afa25a70061c62795453118d370f2f8..601dc04c0a28b1399e0a7face55a7d36116cfa92 100644
|
| --- a/LayoutTests/http/tests/inspector/elements-test.js
|
| +++ b/LayoutTests/http/tests/inspector/elements-test.js
|
| @@ -669,6 +669,17 @@ InspectorTest.matchingSelectors = function(rule)
|
| return "[" + selectors.join(", ") + "]";
|
| }
|
|
|
| +InspectorTest.addNewRule = function(selector, callback)
|
| +{
|
| + // Click "Add new rule".
|
| + document.getElementById("add-style-button-test-id").click();
|
| + var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][2];
|
| + if (typeof selector === "string")
|
| + section._selectorElement.textContent = selector;
|
| + section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
|
| + InspectorTest.addSniffer(WebInspector.BlankStylePropertiesSection.prototype, "makeNormal", callback);
|
| +}
|
| +
|
| };
|
|
|
| function dumpInspectorHighlightRects()
|
|
|