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

Unified Diff: LayoutTests/inspector/elements/styles/multiple-imports-edit-crash.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/multiple-imports-edit-crash.html
diff --git a/LayoutTests/inspector/elements/styles/multiple-imports-edit-crash.html b/LayoutTests/inspector/elements/styles/multiple-imports-edit-crash.html
deleted file mode 100644
index e68a67494e0978ce87a884e91c0d33dd03fe8782..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/multiple-imports-edit-crash.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<html>
-<head>
-<style>
-@import url(resources/multiple-imports-edit-crash-1.css);
-@import url(resources/multiple-imports-edit-crash-2.css);
-@import url(resources/multiple-imports-edit-crash-1.css);
-#inspected {
- color: green;
-}
-</style>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function test()
-{
- InspectorTest.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, styleSheetAdded, this);
- InspectorTest.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemoved, styleSheetRemoved, this);
- InspectorTest.nodeWithId("inspected", nodeFound);
-
- function nodeFound(node)
- {
- InspectorTest.cssModel.getMatchedStylesAsync(node.id, true, false, matchedStylesCallback);
- }
-
- var styleSheetId;
-
- function matchedStylesCallback(styles)
- {
- styleSheetId = styles.matchedCSSRules[1].styleSheetId;
- InspectorTest.addResult("Setting stylesheet text...");
- InspectorTest.CSSAgent.setStyleSheetText(styleSheetId,
- "@import url(resources/multiple-imports-edit-crash-1.css);\n@import url(resources/multiple-imports-edit-crash-2.css);\n#inspected { color: black }\n");
- }
-
- var addsExpected = 2;
- var removesExpected = 3;
- var added = [];
- var removed = [];
-
- function styleSheetAdded(event)
- {
- added.push(resourceName(event.data.sourceURL));
-
- if (!(--addsExpected)) {
- added.sort();
- InspectorTest.addResult("Added:");
- InspectorTest.addResult(added.join("\n"));
- InspectorTest.completeTest();
- }
- }
-
- function styleSheetRemoved(event)
- {
- removed.push(resourceName(event.data.sourceURL));
-
- if (!(--removesExpected)) {
- removed.sort();
- InspectorTest.addResult("Removed:");
- InspectorTest.addResult(removed.join("\n"));
- }
- }
-
- function resourceName(url)
- {
- return url.substring(url.lastIndexOf("/") + 1);
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that modifying stylesheet text with multiple @import at-rules does not crash.
-</p>
-
-<div id="inspected">Text</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698