| Index: third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html b/third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html
|
| deleted file mode 100644
|
| index 9552bbba1ec1623808183d4e1268150e006cb85e..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html
|
| +++ /dev/null
|
| @@ -1,64 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../inspector-test.js"></script>
|
| -<script src="../../isolated-filesystem-test.js"></script>
|
| -<script>
|
| -function loadCSS()
|
| -{
|
| - var link = document.createElement("link");
|
| - link.rel = "stylesheet";
|
| - link.type = "text/css";
|
| - link.href = "resources/update-locations-on-filesystem-scss-load.css";
|
| - document.head.appendChild(link);
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.addResult("Creating filesystem with the SCSS file...");
|
| - var fs = new InspectorTest.TestFileSystem("file:///var/www");
|
| - fs.root.addFile("update-locations-on-filesystem-scss-load.scss", ["a {", " foo: bar;", "/* COMMENT */", " font-size: 12px;", "}"].join("\n"));
|
| - fs.addFileMapping(Common.ParsedURL.completeURL(InspectorTest.mainTarget.inspectedURL(), "resources/source/"), "/");
|
| - fs.reportCreated(fileSystemCreated);
|
| -
|
| - function fileSystemCreated()
|
| - {
|
| - InspectorTest.addResult("Loading raw css with mapping...");
|
| - InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, styleSheetAdded);
|
| - InspectorTest.evaluateInPage("loadCSS()");
|
| - }
|
| -
|
| - var liveLocation;
|
| -
|
| - function styleSheetAdded(event)
|
| - {
|
| - InspectorTest.addResult("Stylesheet was added, dumping location:");
|
| - var header = event.data;
|
| - var cssLocation = new SDK.CSSLocation(header, 0, 1);
|
| - liveLocation = Bindings.cssWorkspaceBinding.createLiveLocation(cssLocation, function() {}, new Bindings.LiveLocationPool());
|
| - InspectorTest.cssModel.sourceMapManager().addEventListener(SDK.SourceMapManager.Events.SourceMapAttached, afterBind);
|
| - dumpLiveLocation();
|
| - }
|
| -
|
| - function afterBind()
|
| - {
|
| - InspectorTest.addResult("Source map was bound to the file loaded from filesystem:");
|
| - dumpLiveLocation();
|
| - InspectorTest.completeTest();
|
| - }
|
| -
|
| - function dumpLiveLocation()
|
| - {
|
| - var uiLocation = liveLocation.uiLocation();
|
| - if (!uiLocation) {
|
| - InspectorTest.addResult("Null uiLocation");
|
| - return;
|
| - }
|
| - InspectorTest.addResult(uiLocation.uiSourceCode.url() + ":" + uiLocation.lineNumber + ":" + uiLocation.columnNumber);
|
| - }
|
| -};
|
| -</script>
|
| -</head>
|
| -<body onload="runTest()">
|
| -<p>Tests that stylesheet LiveLocations are updated when an SCSS file is loaded from the filesystem.</p>
|
| -</body>
|
| -</html>
|
|
|