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

Unified Diff: LayoutTests/inspector/elements/styles/property-ui-location.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/property-ui-location.html
diff --git a/LayoutTests/inspector/elements/styles/property-ui-location.html b/LayoutTests/inspector/elements/styles/property-ui-location.html
deleted file mode 100644
index 66fabd9b6971041218d298b3891ae482c9b2232e..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/property-ui-location.html
+++ /dev/null
@@ -1,54 +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>
-<link rel="stylesheet" href="resources/empty-background-url.css">
-<style>
-#inspected {
- color: blue;
-}
-</style>
-<style>#inspected { margin: 10px; }
-#inspected {
- font-family: arial;
-}
-/*# sourceURL=source-url.css */
-</style>
-<script>
-function test()
-{
- InspectorTest.waitForScriptSource("source-url.css", onUISourceCodeCreated);
-
- function onUISourceCodeCreated()
- {
- InspectorTest.nodeWithId("inspected", onNodeFound);
- }
-
- function onNodeFound(node)
- {
- InspectorTest.cssModel.getMatchedStylesAsync(node.id, true, false, onMatchedStyles);
- }
-
- function onMatchedStyles(styles)
- {
- var rules = styles.matchedCSSRules;
- for (var rule of rules) {
- var properties = rule.style.allProperties;
- for (var property of properties) {
- if (property.styleBased)
- continue;
- var uiLocation = WebInspector.cssWorkspaceBinding.propertyUILocation(property, true);
- InspectorTest.addResult(String.sprintf("%s -> %s:%d:%d", property.text, uiLocation.uiSourceCode.name(), uiLocation.lineNumber, uiLocation.columnNumber));
- }
- }
- InspectorTest.completeTest();
- }
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>Verifies WebInspector.cssWorkspaceBinding.propertyUILocation functionality</p>
-<div id="inspected"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698