| Index: LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html
|
| diff --git a/LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html b/LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html
|
| deleted file mode 100644
|
| index 81879a110c808b8e3ba415af752bed2a92875b94..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html
|
| +++ /dev/null
|
| @@ -1,75 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/elements-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script>
|
| -
|
| -function test()
|
| -{
|
| - var inspectorResource;
|
| -
|
| - InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
|
| -
|
| - function step1(node)
|
| - {
|
| - InspectorTest.addNewRule("#inspected", stylesReceived);
|
| -
|
| - function stylesReceived()
|
| - {
|
| - // UISourceCode.prototype.addRevision() must finish before step2 is called.
|
| - InspectorTest.showScriptSource("inspector-stylesheet", step2);
|
| - }
|
| - }
|
| -
|
| - function step2(sourceFrame)
|
| - {
|
| - var uiSourceCode = sourceFrame._uiSourceCode;
|
| - InspectorTest.addResult("Inspector stylesheet URL: " + uiSourceCode.displayName());
|
| - uiSourceCode.requestContent(printContent());
|
| -
|
| - InspectorTest.addResult("\nSetting new content");
|
| - uiSourceCode.setWorkingCopy("#inspected { background-color: green; }");
|
| - uiSourceCode.commitWorkingCopy();
|
| - step3(uiSourceCode);
|
| - }
|
| -
|
| - function step3(uiSourceCode)
|
| - {
|
| - uiSourceCode.requestContent(printContent(selectNode));
|
| - function selectNode()
|
| - {
|
| - InspectorTest.selectNodeAndWaitForStyles("inspected", dumpStyles);
|
| - }
|
| -
|
| - function dumpStyles()
|
| - {
|
| - InspectorTest.dumpSelectedElementStyles(true, false, true);
|
| - InspectorTest.completeTest();
|
| - }
|
| - }
|
| -
|
| - function printContent(next)
|
| - {
|
| - function result(content)
|
| - {
|
| - InspectorTest.addResult("Inspector stylesheet content:");
|
| - InspectorTest.addResult(content);
|
| - if (next)
|
| - next();
|
| - }
|
| - return result;
|
| - }
|
| -}
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests that adding a new rule creates inspector stylesheet resource and allows its live editing.
|
| -</p>
|
| -
|
| -<div id="inspected">Text</div>
|
| -
|
| -</body>
|
| -</html>
|
|
|