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

Unified Diff: LayoutTests/inspector/styles/stylesheet-removal.html

Issue 25879002: DevTools: Get rid of styleFile on UISourceCode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed test Created 7 years, 2 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/styles/stylesheet-removal.html
diff --git a/LayoutTests/inspector/styles/stylesheet-removal.html b/LayoutTests/inspector/styles/stylesheet-removal.html
deleted file mode 100644
index 318f7083a59a47ee4eede0d3aaca76c25ddc5555..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/styles/stylesheet-removal.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<link id="link1" rel="stylesheet" href="resources/stylesheet-removal.css" />
-<link id="link2" rel="stylesheet" href="resources/stylesheet-removal.css" />
-<script>
-function removeStyleSheetOne()
-{
- var link = document.getElementById("link1");
- link.parentElement.removeChild(link);
-}
-
-function removeStyleSheetTwo()
-{
- var link = document.getElementById("link2");
- link.parentElement.removeChild(link);
-}
-
-function test()
-{
- var uiSourceCode;
-
- function headerOneRemoved(header)
- {
- InspectorTest.addResult("Style file is " + (uiSourceCode.styleFile() ? "" : "not ") + "present");
- WebInspector.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemoved, headerOneRemoved, this);
- WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemoved, headerTwoRemoved, this);
- InspectorTest.evaluateInPage("removeStyleSheetTwo()");
- }
-
- function headerTwoRemoved(header)
- {
- InspectorTest.addResult("Style file is " + (uiSourceCode.styleFile() ? "" : "not ") + "present");
- InspectorTest.completeTest();
- }
-
- uiSourceCode = WebInspector.workspace.uiSourceCodeForURL(WebInspector.ParsedURL.completeURL(WebInspector.inspectedPageURL, "resources/stylesheet-removal.css"));
- WebInspector.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemoved, headerOneRemoved, this);
- InspectorTest.evaluateInPage("removeStyleSheetOne()");
-}
-
-</script>
-
-</head>
-
-<body onload="runTest()">
-<p>Tests that things are cleaned up properly upon stylesheet header removal.</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698