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

Unified Diff: LayoutTests/inspector/elements/styles/disable-property-workingcopy-update.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/disable-property-workingcopy-update.html
diff --git a/LayoutTests/inspector/elements/styles/disable-property-workingcopy-update.html b/LayoutTests/inspector/elements/styles/disable-property-workingcopy-update.html
deleted file mode 100644
index 0ec1d126b016450336156f3f5db53490e9919eab..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/disable-property-workingcopy-update.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="resources/disable-property-workingcopy-update.css">
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function test()
-{
- var cssSourceFrame;
- WebInspector.StylesSourceMapping.MinorChangeUpdateTimeoutMs = 10;
-
- InspectorTest.runTestSuite([
- function selectContainer(next)
- {
- InspectorTest.selectNodeAndWaitForStyles("inspected", next);
- },
-
- function showEditor(next)
- {
- var headers = InspectorTest.cssModel.styleSheetHeaders();
- for (var i = 0; i < headers.length; ++i) {
- if (headers[i].sourceURL.endsWith(".css")) {
- var cssLocation = new WebInspector.CSSLocation(InspectorTest.cssModel, headers[i].id, headers[i].sourceURL, 0);
- InspectorTest.showUISourceCode(WebInspector.cssWorkspaceBinding.rawLocationToUILocation(cssLocation).uiSourceCode, callback);
- break;
- }
- }
-
- function callback(sourceFrame)
- {
- cssSourceFrame = sourceFrame;
- InspectorTest.dumpSourceFrameContents(cssSourceFrame);
- next();
- }
- },
-
- function togglePropertyOff(next)
- {
- toggleProperty(false, next);
- },
-
- function dumpDisabledText(next)
- {
- InspectorTest.dumpSourceFrameContents(cssSourceFrame);
- InspectorTest.dumpSelectedElementStyles(true);
- next();
- },
-
- function togglePropertyOn(next)
- {
- toggleProperty(true, next);
- },
-
- function dumpEnabledText(next)
- {
- InspectorTest.dumpSourceFrameContents(cssSourceFrame);
- InspectorTest.dumpSelectedElementStyles(true);
- next();
- }
- ]);
-
- function toggleProperty(value, next)
- {
- InspectorTest.addSniffer(WebInspector.UISourceCode.prototype, "addRevision", callback);
- InspectorTest.waitForStyles("inspected", callback);
- InspectorTest.toggleMatchedStyleProperty("font-weight", value);
-
- var barrierCounter = 2;
- function callback()
- {
- if (!--barrierCounter)
- next();
- }
- }
-}
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that style property disablement is propagated into the stylesheet UISourceCode working copy.
-</p>
-
-<div id="inspected">
-</div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698