Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: LayoutTests/inspector/elements/styles/edit-inspector-stylesheet.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698