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

Unified Diff: LayoutTests/inspector/elements/styles/multiple-imports-edit-crash.html

Issue 221833004: Cleanup inspector test expectations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
index 61526fd4199e6fac791316a0b96b3e53f881b086..1fde874179bec5699f79909353e215f62e19b88b 100644
--- a/LayoutTests/inspector/elements/styles/multiple-imports-edit-crash.html
+++ b/LayoutTests/inspector/elements/styles/multiple-imports-edit-crash.html
@@ -14,7 +14,6 @@
function test()
{
- WebInspector.inspectorView.showPanel("elements");
WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, styleSheetAdded, this);
WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemoved, styleSheetRemoved, this);
InspectorTest.nodeWithId("inspected", nodeFound);
@@ -29,17 +28,11 @@ function test()
function matchedStylesCallback(styles)
{
styleSheetId = styles.matchedCSSRules[1].id.styleSheetId;
+ InspectorTest.addResult("Setting stylesheet text...");
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");
}
- function modifiedCallback()
- {
- WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, styleSheetAdded, this);
- WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemoved, styleSheetRemoved, this);
- InspectorTest.completeTest();
- }
-
var addsExpected = 2;
var removesExpected = 3;
var added = [];
@@ -53,6 +46,7 @@ function test()
added.sort();
InspectorTest.addResult("Added:");
InspectorTest.addResult(added.join("\n"));
+ InspectorTest.completeTest();
}
}
@@ -64,7 +58,6 @@ function test()
removed.sort();
InspectorTest.addResult("Removed:");
InspectorTest.addResult(removed.join("\n"));
- InspectorTest.completeTest();
}
}

Powered by Google App Engine
This is Rietveld 408576698